1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix invoice number counter when mixing standard and recurring

This commit is contained in:
Hillel Coren 2017-06-21 21:11:27 +03:00
parent 73d4d90afb
commit 6fb9621362

View File

@ -282,7 +282,7 @@ trait GeneratesNumbers
public function usesInvoiceCounter() public function usesInvoiceCounter()
{ {
return strpos($this->invoice_number_pattern, '{$counter}') !== false; return ! $this->hasNumberPattern(ENTITY_INVOICE) || strpos($this->invoice_number_pattern, '{$counter}') !== false;
} }
public function usesClientInvoiceCounter() public function usesClientInvoiceCounter()