Add source to invoice criteria. Modify invoice rules to get service fees from... #1701

Merged
arcticzero merged 217 commits from 746-resq-2-0-final into master 2023-11-22 08:54:48 +00:00
Showing only changes of commit 4f70fc437c - Show all commits

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();