minor fixes for ledger adjustments
This commit is contained in:
parent
871122d1ba
commit
4a4bdf322d
1 changed files with 3 additions and 0 deletions
|
|
@ -64,6 +64,9 @@ class LedgerBalanceUpdate implements ShouldQueue
|
|||
->orderBy('id', 'DESC')
|
||||
->first();
|
||||
|
||||
if(!$last_record)
|
||||
return;
|
||||
|
||||
$company_ledger->balance = $last_record->balance + $company_ledger->adjustment;
|
||||
$company_ledger->save();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue