1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Fix for counter increment

This commit is contained in:
Hillel Coren 2018-04-26 12:01:15 +03:00
parent 310834442a
commit 8c7065af23

View File

@ -62,6 +62,7 @@ trait GeneratesNumbers
// update the counter to be caught up
if ($counterOffset > 1) {
$this->syncOriginal();
if ($entity->isEntityType(ENTITY_CLIENT)) {
if ($this->clientNumbersEnabled()) {
$this->client_number_counter += $counterOffset - 1;