Fix invoice number counter when mixing standard and recurring
This commit is contained in:
parent
73d4d90afb
commit
6fb9621362
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue