mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for invoice number pattern
This commit is contained in:
parent
787602a992
commit
3115656cea
@ -136,6 +136,10 @@ trait GeneratesNumbers
|
||||
*/
|
||||
public function hasClientNumberPattern($invoice)
|
||||
{
|
||||
if (! $this->isPro()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$pattern = $invoice->invoice_type_id == INVOICE_TYPE_QUOTE ? $this->quote_number_pattern : $this->invoice_number_pattern;
|
||||
|
||||
return strstr($pattern, '$client') !== false || strstr($pattern, '$idNumber') !== false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user