mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-31 15:42:03 -04:00
Fix invoice number counter when mixing standard and recurring
This commit is contained in:
parent
10907d93b6
commit
1616746267
@ -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…
x
Reference in New Issue
Block a user