1
0
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:
Hillel Coren 2017-05-07 11:18:04 +03:00
parent 42032f5e9a
commit 697e224bed

View File

@ -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')) {