From da9ddfc419b7ddbd843df6527a42cd25e4a79715 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Wed, 6 Apr 2022 15:13:23 -0700 Subject: [PATCH] Autohouse update. --- server/data/autohouse.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/server/data/autohouse.js b/server/data/autohouse.js index 417e4caaa..13b58e76b 100644 --- a/server/data/autohouse.js +++ b/server/data/autohouse.js @@ -168,7 +168,6 @@ exports.default = async (req, res) => { sendServerEmail({ subject: `Autohouse Report ${moment().format("MM-DD-YY")}`, text: `Errors: ${allErrors.map((e) => JSON.stringify(e, null, 2))} - Uploaded: ${JSON.stringify( allxmlsToUpload.map((x) => x.filename), null, @@ -755,9 +754,13 @@ const CreateCosts = (job) => { return { PartsTotalCost: Object.keys(billTotalsByCostCenters).reduce((acc, key) => { - if (key !== defaultCosts.PAS && key !== defaultCosts.PASL) + if ( + key !== defaultCosts.PAS && + key !== defaultCosts.PASL && + key !== defaultCosts.MAPA && + key !== defaultCosts.MASH + ) return acc.add(billTotalsByCostCenters[key]); - return acc; }, Dinero()), PartsOemCost: (billTotalsByCostCenters[defaultCosts.PAN] || Dinero()).add(