Add taxable overrides to shop configuration.

This commit is contained in:
Patrick Fic
2023-10-11 10:49:30 -07:00
parent ef146032df
commit 02690b6796
17 changed files with 3197 additions and 165 deletions

View File

@@ -242,6 +242,11 @@ exports.default = async (req, res) => {
(error && error.authResponse && error.authResponse.body) ||
(error && error.message),
});
console.log(error);
logger.log("qbo-receivable-create-error", "ERROR", req.user.email, {
error: error.message,
stack: error.stack,
});
//Add the export log error.
if (elgen) {
const result = await client

View File

@@ -440,8 +440,8 @@ async function CalculateRatesTotals({ job, client }) {
}
//Materials Scrubbing as required by CCC.
let matTotalLine = job.cieca_stl.data.find((l) => l.ttl_typecd === "MAT");
let shopMatLine = job.cieca_stl.data.find((l) => l.ttl_typecd === "MASH");
let matTotalLine = job.cieca_stl?.data?.find((l) => l.ttl_typecd === "MAT");
let shopMatLine = job.cieca_stl?.data?.find((l) => l.ttl_typecd === "MASH");
if (matTotalLine && shopMatLine) {
//Check to see if theyre different