ES Schema changes & initial upload attempt.

This commit is contained in:
Patrick Fic
2025-07-09 16:01:38 -07:00
parent 661c562a48
commit a1dfcf4457
40 changed files with 289 additions and 77 deletions

View File

@@ -35,14 +35,7 @@ export function EstimateScrubberButton({ bodyshop, jobid }) {
});
const result = await ipcRenderer.invoke(ipcTypes.app.toMain.scrubEstimate, {
job: {
...jobData.data.jobs_by_pk,
sending_entity_id: "87330f61-412b-4251-baaa-d026565b23c5",
sending_entity_clientid: "",
sending_entity_accept_terms_of_use: true,
profileid: "",
association_switch: "ATAM"
}
job: jobData.data.jobs_by_pk
});
} catch (error) {
message.error("Error scrubbing estimate: " + error.message);

View File

@@ -83,7 +83,7 @@ export function JobsDetailOrganism({ selectedJobId, setSelectedJobTargetPc }) {
<Card
title="Estimate Lines"
// extra={[<EstimateScrubberButton key="es" jobid={data ? data.jobs_by_pk?.id : null} />]}
extra={[<EstimateScrubberButton key="es" jobid={data ? data.jobs_by_pk?.id : null} />]}
>
<JobsLinesTableMolecule loading={loading} job={data ? data.jobs_by_pk : {}} />
</Card>

View File

@@ -225,6 +225,16 @@ export const QUERY_JOB_ESTIMATE_SCRUBBER = gql`
requires_reimport
created_at
v_mileage
rates
totals
ded_amt
loss_desc
ownr_addr1
ownr_city
ownr_ph1
v_stage
supp_amt
g_bett_amt
joblines(order_by: {line_no: asc}) {
line_no
line_ind
@@ -245,6 +255,11 @@ export const QUERY_JOB_ESTIMATE_SCRUBBER = gql`
lbr_hrs_j
lbr_amt
misc_amt
price_inc
tax_part
cert_part
alt_partno
lbr_op_j
}
}
}