IO-2879 Adjust placement of variable
Signed-off-by: Allan Carr <allan.carr@thinkimex.com>
This commit is contained in:
@@ -20,7 +20,6 @@ exports.default = function ({ bodyshop, jobs_by_pk, qbo = false, items, taxCodes
|
||||
//Otherwise, calculate them and add them to the default MAPA and MASH centers.
|
||||
let hasMapaLine = false;
|
||||
let hasMashLine = false;
|
||||
let isTowingLine = false;
|
||||
|
||||
//Create the invoice lines mapping.
|
||||
jobs_by_pk.joblines.map((jobline) => {
|
||||
@@ -31,6 +30,9 @@ exports.default = function ({ bodyshop, jobs_by_pk, qbo = false, items, taxCodes
|
||||
if (jobline.db_ref === "936007") {
|
||||
hasMashLine = true;
|
||||
}
|
||||
|
||||
//Check if the line is a Towing Line and flag as such.
|
||||
let isTowingLine = false;
|
||||
if (jobline.db_ref === "936001" && jobline.line_desc.includes("Towing")) {
|
||||
isTowingLine = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user