mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 00:34:37 -04:00
Fix for invoice number pattern
This commit is contained in:
parent
d9facaa060
commit
34d8b68f63
@ -136,6 +136,10 @@ trait GeneratesNumbers
|
|||||||
*/
|
*/
|
||||||
public function hasClientNumberPattern($invoice)
|
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;
|
$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;
|
return strstr($pattern, '$client') !== false || strstr($pattern, '$idNumber') !== false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user