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,6 +292,8 @@ class CheckData extends Command
|
|||||||
foreach(Client::cursor() as $client)
|
foreach(Client::cursor() as $client)
|
||||||
{
|
{
|
||||||
$invoice_balance = $client->invoices->where('is_deleted', false)->sum('balance');
|
$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();
|
$ledger = CompanyLedger::where('client_id', $client->id)->orderBy('id', 'DESC')->first();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user