1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Prevent credit number from being enabled

This commit is contained in:
Hillel Coren 2017-09-08 17:04:27 +03:00
parent a542a2808f
commit d47175e25c

View File

@ -356,7 +356,7 @@ trait GeneratesNumbers
$this->reset_counter_date = $resetDate->format('Y-m-d');
$this->invoice_number_counter = 1;
$this->quote_number_counter = 1;
$this->credit_number_counter = 1;
$this->credit_number_counter = $this->credit_number_counter > 0 ? 1 : 0;
$this->save();
}
}