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:
parent
a542a2808f
commit
d47175e25c
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user