mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Update credit balance
This commit is contained in:
parent
d2d6262941
commit
5101e7cce6
@ -320,6 +320,7 @@ class BaseRepository
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($class->name == Credit::class) {
|
if ($class->name == Credit::class) {
|
||||||
|
|
||||||
$model = $model->calc()->getCredit();
|
$model = $model->calc()->getCredit();
|
||||||
|
|
||||||
$model->ledger()->updateCreditBalance(($state['finished_amount'] - $state['starting_amount']));
|
$model->ledger()->updateCreditBalance(($state['finished_amount'] - $state['starting_amount']));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user