Merge branch 'hotfix/AIO/2024-04-04' into test-AIO
This commit is contained in:
@@ -125,16 +125,6 @@ export function JobsAvailableContainer({ bodyshop, currentUser, insertAuditTrail
|
||||
args: [estData.est_data, bodyshop]
|
||||
});
|
||||
|
||||
// }
|
||||
// const newTotals = (
|
||||
// await Axios.post("/job/totals", {
|
||||
// job: {
|
||||
// ...estData.est_data,
|
||||
// joblines: estData.est_data.joblines.data,
|
||||
// },
|
||||
// })
|
||||
// ).data;
|
||||
|
||||
let existingVehicles;
|
||||
if (estData.est_data.v_vin) {
|
||||
//There's vehicle data, need to double-check the VIN.
|
||||
@@ -148,9 +138,6 @@ export function JobsAvailableContainer({ bodyshop, currentUser, insertAuditTrail
|
||||
|
||||
const newJob = {
|
||||
...estData.est_data,
|
||||
// clm_total: Dinero(newTotals.totals.total_repairs).toFormat("0.00"),
|
||||
// owner_owing: Dinero(newTotals.totals.custPayable.total).toFormat("0.00"),
|
||||
// job_totals: newTotals,
|
||||
date_open: dayjs(),
|
||||
status: bodyshop.md_ro_statuses.default_imported,
|
||||
notes: {
|
||||
@@ -246,13 +233,6 @@ export function JobsAvailableContainer({ bodyshop, currentUser, insertAuditTrail
|
||||
let supp = replaceEmpty({ ...estData.est_data });
|
||||
//IO-539 Check for Parts Rate on PAL for SGI use case.
|
||||
|
||||
await InstanceRenderManager({
|
||||
executeFunction: true,
|
||||
imex: CheckTaxRates,
|
||||
rome: CheckTaxRatesUSA,
|
||||
promanager: CheckTaxRatesUSA,
|
||||
args: [(supp, bodyshop)]
|
||||
});
|
||||
await InstanceRenderManager({
|
||||
executeFunction: true,
|
||||
rome: ResolveCCCLineIssues,
|
||||
@@ -260,6 +240,14 @@ export function JobsAvailableContainer({ bodyshop, currentUser, insertAuditTrail
|
||||
args: [(supp, bodyshop)]
|
||||
});
|
||||
|
||||
await InstanceRenderManager({
|
||||
executeFunction: true,
|
||||
imex: CheckTaxRates,
|
||||
rome: CheckTaxRatesUSA,
|
||||
promanager: CheckTaxRatesUSA,
|
||||
args: [supp, bodyshop]
|
||||
});
|
||||
|
||||
delete supp.owner;
|
||||
delete supp.vehicle;
|
||||
delete supp.ins_co_nm;
|
||||
@@ -282,11 +270,6 @@ export function JobsAvailableContainer({ bodyshop, currentUser, insertAuditTrail
|
||||
jobId: selectedJob,
|
||||
job: {
|
||||
...supp,
|
||||
// clm_total: Dinero(newTotals.totals.total_repairs).toFormat("0.00"),
|
||||
// owner_owing: Dinero(newTotals.totals.custPayable.total).toFormat(
|
||||
// "0.00"
|
||||
// ),
|
||||
// job_totals: newTotals,
|
||||
queued_for_parts: partsQueueToggle
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user