mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
minor fixes for ledger adjustments
This commit is contained in:
parent
871122d1ba
commit
4a4bdf322d
@ -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…
x
Reference in New Issue
Block a user