Fix the same issue in resq 2 app. #750

This commit is contained in:
Korina Cordero 2023-07-19 07:41:48 +00:00
parent 8427b3fb3d
commit 4f70fc437c

View file

@ -673,7 +673,11 @@ class JobOrderController extends ApiController
break; break;
} }
$icrit->addEntry($batt, $trade_in, 1); // right now, the app does not include trade-ins but this might change in the future
if (empty($trade_in))
$icrit->addEntry($batt, null, 1);
else
$icrit->addEntry($batt, $trade_in, 1);
// set taxable // set taxable
$icrit->setIsTaxable(); $icrit->setIsTaxable();