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