IO-854 Resolve missing profit centers in job costing

This commit is contained in:
Patrick Fic
2021-04-21 16:02:53 -07:00
parent e57f4b7382
commit e6c7599813
2 changed files with 51 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ export function JobsCloseAutoAllocate({ bodyshop, joblines, form, disabled }) {
} else {
ret.profitcenter_labor = null;
}
//Verify that this is also manually updated in server/job-costing
if (!jl.part_type && !jl.mod_lbr_ty) {
const lineDesc = jl.line_desc.toLowerCase();
if (lineDesc.includes("shop materials")) {