Merged in feature/IO-2879-936001-TOWING-to-QB (pull request #1627)

IO-2879 Adjust placement of variable
This commit is contained in:
Allan Carr
2024-08-16 19:25:14 +00:00

View File

@@ -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;
}