mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-11 15:34:21 -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)
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user