Merge pull request #5987 from turbo124/master

Fixes for quote status on migration
This commit is contained in:
David Bomba 2021-06-10 08:13:05 +10:00 committed by GitHub
commit 9b00ca926a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -849,12 +849,13 @@ info("get company");
*/ */
private function transformQuoteStatusId($quote) private function transformQuoteStatusId($quote)
{ {
if(!$quote->is_public)
return 1;
if($quote->quote_invoice_id) if($quote->quote_invoice_id)
return 4; return 4;
if(!$quote->is_public)
return 1;
switch ($quote->invoice_status_id) { switch ($quote->invoice_status_id) {
case 1: case 1:
return 1; return 1;
@ -899,7 +900,7 @@ info("get company");
switch ($status) { switch ($status) {
case 1: case 1:
return 2; return 1;
break; break;
case 2: case 2:
return 2; return 2;