Merge pull request #5987 from turbo124/master
Fixes for quote status on migration
This commit is contained in:
commit
9b00ca926a
1 changed files with 4 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue