mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Update credit balance
This commit is contained in:
parent
d2d6262941
commit
5101e7cce6
@ -320,8 +320,9 @@ class BaseRepository
|
||||
}
|
||||
|
||||
if ($class->name == Credit::class) {
|
||||
$model = $model->calc()->getCredit();
|
||||
|
||||
$model = $model->calc()->getCredit();
|
||||
|
||||
$model->ledger()->updateCreditBalance(($state['finished_amount'] - $state['starting_amount']));
|
||||
|
||||
if (! $model->design_id) {
|
||||
|
Loading…
Reference in New Issue
Block a user