@@ -515,11 +515,8 @@ exports.default = async (req, res) => {
|
|||||||
{
|
{
|
||||||
TotalType: "LAB",
|
TotalType: "LAB",
|
||||||
TotalTypeDesc: "Body Labor",
|
TotalTypeDesc: "Body Labor",
|
||||||
TotalHours:
|
TotalHours: job.job_totals.rates.lab.hours,
|
||||||
job.job_totals.rates.lab.hours + job.job_totals.rates.la1.hours,
|
TotalAmt: Dinero(job.job_totals.rates.lab.total).toFormat("0.00"),
|
||||||
TotalAmt: Dinero(job.job_totals.rates.lab.total)
|
|
||||||
.add(Dinero(job.job_totals.rates.la1.total))
|
|
||||||
.toFormat("0.00"),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
TotalType: "LAF",
|
TotalType: "LAF",
|
||||||
@@ -856,6 +853,13 @@ exports.default = async (req, res) => {
|
|||||||
fs.writeFileSync(`./logs/arms-request.xml`, rawRequest);
|
fs.writeFileSync(`./logs/arms-request.xml`, rawRequest);
|
||||||
fs.writeFileSync(`./logs/arms-response.xml`, rawResponse);
|
fs.writeFileSync(`./logs/arms-response.xml`, rawResponse);
|
||||||
|
|
||||||
|
logger.log("arms-job-xml-request", "DEBUG", "api", job.id, {
|
||||||
|
xml: rawRequest,
|
||||||
|
});
|
||||||
|
logger.log("arms-job-xml-response", "DEBUG", "api", job.id, {
|
||||||
|
xml: rawResponse,
|
||||||
|
});
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
sendServerEmail({
|
sendServerEmail({
|
||||||
subject: `ARMS Update Failed: ${bodyshop.shopname} - ${job.ro_number}`,
|
subject: `ARMS Update Failed: ${bodyshop.shopname} - ${job.ro_number}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user