mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01: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->quote_number_counter = 1;
|
||||
$account->client_number_counter = 1;
|
||||
$account->client_number_counter = $account->client_number_counter > 0 ? 1 : 0;
|
||||
$account->save();
|
||||
|
||||
if (env('MULTI_DB_ENABLED')) {
|
||||
|
Loading…
Reference in New Issue
Block a user