mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 10:34:30 -04:00
Fixed is_quote reference
This commit is contained in:
parent
e08e8c1962
commit
53eb0cb127
@ -650,7 +650,7 @@ class Account extends Eloquent
|
|||||||
|
|
||||||
// update the invoice counter to be caught up
|
// update the invoice counter to be caught up
|
||||||
if ($counterOffset > 1) {
|
if ($counterOffset > 1) {
|
||||||
if ($invoice->isType(INVOICE_TYPE_QUOTE) && !$this->share_counter) {
|
if ($invoice->is_quote && !$this->share_counter) {
|
||||||
$this->quote_number_counter += $counterOffset - 1;
|
$this->quote_number_counter += $counterOffset - 1;
|
||||||
} else {
|
} else {
|
||||||
$this->invoice_number_counter += $counterOffset - 1;
|
$this->invoice_number_counter += $counterOffset - 1;
|
||||||
@ -674,7 +674,7 @@ class Account extends Eloquent
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($invoice->isType(INVOICE_TYPE_QUOTE) && !$this->share_counter) {
|
if ($invoice->is_quote && !$this->share_counter) {
|
||||||
$this->quote_number_counter += 1;
|
$this->quote_number_counter += 1;
|
||||||
} else {
|
} else {
|
||||||
$this->invoice_number_counter += 1;
|
$this->invoice_number_counter += 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user