minor fixes for ledger adjustments

This commit is contained in:
David Bomba 2022-05-07 17:35:56 +10:00
parent 871122d1ba
commit 4a4bdf322d

View File

@ -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();