mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
check data
This commit is contained in:
parent
cab6f313fe
commit
59ca29d7db
@ -292,7 +292,9 @@ class CheckData extends Command
|
||||
foreach(Client::cursor() as $client)
|
||||
{
|
||||
$invoice_balance = $client->invoices->where('is_deleted', false)->sum('balance');
|
||||
$credt_balances = $client->credits->where('is_deleted', false)->sum('balance');
|
||||
|
||||
|
||||
$ledger = CompanyLedger::where('client_id', $client->id)->orderBy('id', 'DESC')->first();
|
||||
|
||||
if($ledger && number_format($invoice_balance, 4) != number_format($client->balance, 4))
|
||||
|
Loading…
x
Reference in New Issue
Block a user