Merge branch '750-resq-2-fix-computation-issue-for-jo-from-resq-1-app' into '746-resq-2-0-final'

Fix the same issue in resq 2 app. #750

See merge request jankstudio/resq!865
This commit is contained in:
Ramon Gutierrez 2023-07-19 07:43:33 +00:00
commit c2ff927f1f

View file

@ -673,7 +673,11 @@ class JobOrderController extends ApiController
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
$icrit->setIsTaxable();