From 1b8a76d5e0aa9cf864893c4cfc72c995c51dfb34 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Wed, 15 Dec 2021 14:31:16 -0800 Subject: [PATCH 1/3] IO-1552 Autohouse Validation Updates --- server/data/autohouse.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/server/data/autohouse.js b/server/data/autohouse.js index 45fdf5f5c..e651ed63b 100644 --- a/server/data/autohouse.js +++ b/server/data/autohouse.js @@ -72,8 +72,8 @@ exports.default = async (req, res) => { var ret = builder .create( { - version: "1.0", - encoding: "UTF-8", + // version: "1.0", + // encoding: "UTF-8", //keepNullNodes: true, }, autoHouseObject @@ -111,9 +111,9 @@ exports.default = async (req, res) => { } } res.json(allxmlsToUpload); - return; + if (process.env.NODE_ENV !== "production") { - res.sendStatus(200); + res.json(allxmlsToUpload); return; } @@ -691,7 +691,7 @@ const GenerateDetailLines = (line, statuses) => { 0, //Critical: null, Description: line.line_desc || "", - DiscountMarkup: line.prt_dsmk_m || "", + DiscountMarkup: line.prt_dsmk_m || 0, InvoiceNumber: line.billlines[0] && line.billlines[0].bill.invoice_number, IOUPart: 0, LineNumber: line.line_no || 0, @@ -746,12 +746,12 @@ const generateNullDetailLine = () => { Vendor: "", VendorPaid: null, VendorPrice: 0, - Deleted: null, - ExpectedOn: null, - ReceivedOn: null, - OrderedBy: null, - ShipVia: null, - VendorContact: null, - EstimateAmount: null, + Deleted: 0, + ExpectedOn: "", + ReceivedOn: "", + OrderedBy: "", + ShipVia: "", + VendorContact: "", + EstimateAmount: 0, }; }; From e46d5b833b3767c8fcb705a2546ffdfe0a2d5b8f Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Wed, 15 Dec 2021 14:34:24 -0800 Subject: [PATCH 2/3] IO-244 Resolve IOU --- .vscode/settings.json | 8 +++++++ .../job-create-iou.component.jsx | 3 +++ ...bs-detail-header-actions.duplicate.util.js | 4 +++- .../profile-shops/profile-shops.container.jsx | 24 ++++++++++++++++++- client/src/firebase/firebase.utils.js | 1 + client/src/redux/user/user.sagas.js | 13 +++++++++- server.js | 5 ++++ server/firebase/firebase-handler.js | 15 ++++++++++++ server/graphql-client/queries.js | 2 +- 9 files changed, 71 insertions(+), 4 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..75e6b0da2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "xml.fileAssociations": [ + { + "pattern": "**/Test.xml", + "systemId": "file:///Users/pfic/Downloads/IMEX.xsd" + } + ] +} diff --git a/client/src/components/job-create-iou/job-create-iou.component.jsx b/client/src/components/job-create-iou/job-create-iou.component.jsx index 9a7995077..8ebc8fb75 100644 --- a/client/src/components/job-create-iou/job-create-iou.component.jsx +++ b/client/src/components/job-create-iou/job-create-iou.component.jsx @@ -78,6 +78,9 @@ export function JobCreateIOU({ bodyshop, currentUser, job, selectedJobLines }) {