mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-07 10:01:47 -04:00
Merge pull request #5987 from turbo124/master
Fixes for quote status on migration
This commit is contained in:
commit
9b00ca926a
@ -849,12 +849,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;
|
||||
@ -899,7 +900,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