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

Fix for counter increment

This commit is contained in:
Hillel Coren 2018-04-26 11:59:55 +03:00
parent 4fc60b02f4
commit d37e513f9f

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;