Resolve "RESQ 2: Set invoice criteria correctly in getEstimate" #1679

Merged
korina.cordero merged 2 commits from 753-resq-2-set-invoice-criteria-correctly-in-getestimate into 746-resq-2-0-final 2023-07-21 06:34:42 +00:00
Showing only changes of commit 7b16738709 - Show all commits

View file

@ -876,9 +876,9 @@ class ResqRiderAPIHandler implements RiderAPIHandlerInterface
{
// right now, the app does not include trade-ins but this might change in the future
if ($trade_in == null)
$icrit->addEntry($batt, null, 1);
$crit->addEntry($battery, null, 1);
else
$icrit->addEntry($batt, $trade_in, 1);
$crit->addEntry($battery, $trade_in, 1);
// error_log('adding entry for battery - ' . $battery->getID());
}