ES Schema changes & initial upload attempt.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user