Add taxable overrides to shop configuration.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user