mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:44:29 -04:00
Prevent credit number from being enabled
This commit is contained in:
parent
7c140d1f0e
commit
8a8dc09e53
@ -356,7 +356,7 @@ trait GeneratesNumbers
|
|||||||
$this->reset_counter_date = $resetDate->format('Y-m-d');
|
$this->reset_counter_date = $resetDate->format('Y-m-d');
|
||||||
$this->invoice_number_counter = 1;
|
$this->invoice_number_counter = 1;
|
||||||
$this->quote_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();
|
$this->save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user