mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for quote number prefix
This commit is contained in:
parent
40f18ed19f
commit
bef4e5faea
@ -633,11 +633,11 @@ class Account extends Eloquent
|
|||||||
|
|
||||||
public function getNextInvoiceNumber($invoice)
|
public function getNextInvoiceNumber($invoice)
|
||||||
{
|
{
|
||||||
if ($this->hasNumberPattern($invoice->invoice_type_id)) {
|
if ($this->hasNumberPattern($invoice->is_quote)) {
|
||||||
$number = $this->getNumberPattern($invoice);
|
$number = $this->getNumberPattern($invoice);
|
||||||
} else {
|
} else {
|
||||||
$counter = $this->getCounter($invoice->invoice_type_id);
|
$counter = $this->getCounter($invoice->is_quote);
|
||||||
$prefix = $this->getNumberPrefix($invoice->invoice_type_id);
|
$prefix = $this->getNumberPrefix($invoice->is_quote);
|
||||||
$counterOffset = 0;
|
$counterOffset = 0;
|
||||||
|
|
||||||
// confirm the invoice number isn't already taken
|
// confirm the invoice number isn't already taken
|
||||||
|
Loading…
x
Reference in New Issue
Block a user