Resolve instancemgr arg for supplement import.
This commit is contained in:
@@ -125,16 +125,6 @@ export function JobsAvailableContainer({ bodyshop, currentUser, insertAuditTrail
|
|||||||
args: [estData.est_data, bodyshop]
|
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;
|
let existingVehicles;
|
||||||
if (estData.est_data.v_vin) {
|
if (estData.est_data.v_vin) {
|
||||||
//There's vehicle data, need to double-check the VIN.
|
//There's vehicle data, need to double-check the VIN.
|
||||||
@@ -148,9 +138,6 @@ export function JobsAvailableContainer({ bodyshop, currentUser, insertAuditTrail
|
|||||||
|
|
||||||
const newJob = {
|
const newJob = {
|
||||||
...estData.est_data,
|
...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(),
|
date_open: dayjs(),
|
||||||
status: bodyshop.md_ro_statuses.default_imported,
|
status: bodyshop.md_ro_statuses.default_imported,
|
||||||
notes: {
|
notes: {
|
||||||
@@ -246,13 +233,6 @@ export function JobsAvailableContainer({ bodyshop, currentUser, insertAuditTrail
|
|||||||
let supp = replaceEmpty({ ...estData.est_data });
|
let supp = replaceEmpty({ ...estData.est_data });
|
||||||
//IO-539 Check for Parts Rate on PAL for SGI use case.
|
//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({
|
await InstanceRenderManager({
|
||||||
executeFunction: true,
|
executeFunction: true,
|
||||||
rome: ResolveCCCLineIssues,
|
rome: ResolveCCCLineIssues,
|
||||||
@@ -260,6 +240,14 @@ export function JobsAvailableContainer({ bodyshop, currentUser, insertAuditTrail
|
|||||||
args: [(supp, bodyshop)]
|
args: [(supp, bodyshop)]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await InstanceRenderManager({
|
||||||
|
executeFunction: true,
|
||||||
|
imex: CheckTaxRates,
|
||||||
|
rome: CheckTaxRatesUSA,
|
||||||
|
promanager: CheckTaxRatesUSA,
|
||||||
|
args: [supp, bodyshop]
|
||||||
|
});
|
||||||
|
|
||||||
delete supp.owner;
|
delete supp.owner;
|
||||||
delete supp.vehicle;
|
delete supp.vehicle;
|
||||||
delete supp.ins_co_nm;
|
delete supp.ins_co_nm;
|
||||||
@@ -282,11 +270,6 @@ export function JobsAvailableContainer({ bodyshop, currentUser, insertAuditTrail
|
|||||||
jobId: selectedJob,
|
jobId: selectedJob,
|
||||||
job: {
|
job: {
|
||||||
...supp,
|
...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
|
queued_for_parts: partsQueueToggle
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user