Update credit balance
This commit is contained in:
parent
d2d6262941
commit
5101e7cce6
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue