mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Fix invoice number counter when mixing standard and recurring
This commit is contained in:
parent
73d4d90afb
commit
6fb9621362
@ -282,7 +282,7 @@ trait GeneratesNumbers
|
||||
|
||||
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()
|
||||
|
Loading…
Reference in New Issue
Block a user