IO-1300 Resolve line desc to lower case error.
This commit is contained in:
@@ -32,7 +32,7 @@ export function JobsCloseAutoAllocate({ bodyshop, joblines, form, disabled }) {
|
|||||||
}
|
}
|
||||||
//Verify that this is also manually updated in server/job-costing
|
//Verify that this is also manually updated in server/job-costing
|
||||||
if (!jl.part_type && !jl.mod_lbr_ty) {
|
if (!jl.part_type && !jl.mod_lbr_ty) {
|
||||||
const lineDesc = jl.line_desc.toLowerCase();
|
const lineDesc = jl.line_desc && jl.line_desc.toLowerCase();
|
||||||
if (lineDesc.includes("shop materials")) {
|
if (lineDesc.includes("shop materials")) {
|
||||||
ret.profitcenter_part = defaults.profits["MASH"];
|
ret.profitcenter_part = defaults.profits["MASH"];
|
||||||
} else if (lineDesc.includes("paint/materials")) {
|
} else if (lineDesc.includes("paint/materials")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user