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:
parent
73d4d90afb
commit
6fb9621362
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user