Resolve calculation issue for private jobs.

This commit is contained in:
Patrick Fic
2023-05-17 15:19:11 -07:00
parent 77b72e160b
commit a93bcd6ab6

View File

@@ -368,7 +368,7 @@ async function CalculateRatesTotals({ job, client }) {
rates_subtotal = rates_subtotal.add(ret[property].total);
}
const stlMahw = job.cieca_stl.data.find((c) => c.ttl_typecd === "MAHW");
const stlMahw = job.cieca_stl?.data.find((c) => c.ttl_typecd === "MAHW");
if (
stlMahw &&