mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:44:32 -04:00
Prevent purging data from enabling client counter
This commit is contained in:
parent
42032f5e9a
commit
697e224bed
@ -56,7 +56,7 @@ class PurgeAccountData extends Job
|
|||||||
|
|
||||||
$account->invoice_number_counter = 1;
|
$account->invoice_number_counter = 1;
|
||||||
$account->quote_number_counter = 1;
|
$account->quote_number_counter = 1;
|
||||||
$account->client_number_counter = 1;
|
$account->client_number_counter = $account->client_number_counter > 0 ? 1 : 0;
|
||||||
$account->save();
|
$account->save();
|
||||||
|
|
||||||
if (env('MULTI_DB_ENABLED')) {
|
if (env('MULTI_DB_ENABLED')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user