mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Adjustments to check data
This commit is contained in:
parent
d41e0b4759
commit
5e7ee641a6
@ -427,7 +427,7 @@ class CheckData extends Command
|
|||||||
$queueDB = config('queue.connections.database.connection');
|
$queueDB = config('queue.connections.database.connection');
|
||||||
$count = DB::connection($queueDB)->table('failed_jobs')->count();
|
$count = DB::connection($queueDB)->table('failed_jobs')->count();
|
||||||
|
|
||||||
if ($count > 0) {
|
if ($count > 25) {
|
||||||
$this->isValid = false;
|
$this->isValid = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -676,6 +676,8 @@ class CheckData extends Command
|
|||||||
|
|
||||||
foreach ($clients as $client) {
|
foreach ($clients as $client) {
|
||||||
$this->logMessage("=== Company: {$client->company_id} Account:{$client->account_id} Client:{$client->id} Balance:{$client->balance} Actual Balance:{$client->actual_balance} ===");
|
$this->logMessage("=== Company: {$client->company_id} Account:{$client->account_id} Client:{$client->id} Balance:{$client->balance} Actual Balance:{$client->actual_balance} ===");
|
||||||
|
|
||||||
|
/*
|
||||||
$foundProblem = false;
|
$foundProblem = false;
|
||||||
$lastBalance = 0;
|
$lastBalance = 0;
|
||||||
$lastAdjustment = 0;
|
$lastAdjustment = 0;
|
||||||
@ -838,6 +840,7 @@ class CheckData extends Command
|
|||||||
->where('id', $client->id)
|
->where('id', $client->id)
|
||||||
->update($data);
|
->update($data);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user