mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update credit balances when a payment is deleted
This commit is contained in:
parent
b5f61d22a7
commit
35e21e4551
@ -162,6 +162,7 @@ class DeletePayment
|
|||||||
$client
|
$client
|
||||||
->service()
|
->service()
|
||||||
->updatePaidToDate(($paymentable_credit->pivot->amount) * -1)
|
->updatePaidToDate(($paymentable_credit->pivot->amount) * -1)
|
||||||
|
->adjustCreditBalance($paymentable_credit->pivot->amount)
|
||||||
->save();
|
->save();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user