mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for invoice status
This commit is contained in:
parent
32bddeca44
commit
515756f08a
@ -843,12 +843,13 @@ info("get company");
|
||||
|
||||
private function transformQuoteStatusId($quote)
|
||||
{
|
||||
if(!$quote->is_public)
|
||||
return 1;
|
||||
|
||||
if($quote->quote_invoice_id)
|
||||
return 4;
|
||||
|
||||
if(!$quote->is_public)
|
||||
return 1;
|
||||
|
||||
switch ($quote->invoice_status_id) {
|
||||
case 1:
|
||||
return 1;
|
||||
@ -893,7 +894,7 @@ info("get company");
|
||||
|
||||
switch ($status) {
|
||||
case 1:
|
||||
return 2;
|
||||
return 1;
|
||||
break;
|
||||
case 2:
|
||||
return 2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user