IO-3001 Null Coalesce for some items for better handling.
This commit is contained in:
@@ -850,7 +850,7 @@ function GenerateCostingData(job) {
|
||||
});
|
||||
}
|
||||
//Push adjustments to bottom line.
|
||||
if (job.job_totals.totals.ttl_adjustment) {
|
||||
if (job.job_totals?.totals?.ttl_adjustment) {
|
||||
//Add to totals.
|
||||
const Adjustment = Dinero(job.job_totals.totals.ttl_adjustment); //Need to invert, since this is being assigned as a cost.
|
||||
summaryData.totalAdditionalSales = summaryData.totalAdditionalSales.add(Adjustment);
|
||||
|
||||
Reference in New Issue
Block a user