mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fix for client balance when voiding Braintree payment
This commit is contained in:
parent
bb5215b98b
commit
c660ac2d0b
@ -238,12 +238,12 @@ class Payment extends EntityModel
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Event::fire(new PaymentWasVoided($this));
|
||||||
|
|
||||||
$this->refunded = $this->amount;
|
$this->refunded = $this->amount;
|
||||||
$this->payment_status_id = PAYMENT_STATUS_VOIDED;
|
$this->payment_status_id = PAYMENT_STATUS_VOIDED;
|
||||||
$this->save();
|
$this->save();
|
||||||
|
|
||||||
Event::fire(new PaymentWasVoided($this));
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user