IO-2520 Kaizen Data Pump

Additional fields requested

Signed-off-by: Allan Carr <allan.carr@thinkimex.com>
This commit is contained in:
Allan Carr
2024-07-10 10:33:53 -07:00
parent c2386f43ef
commit 970c4ee9e1
2 changed files with 9 additions and 2 deletions

View File

@@ -244,6 +244,7 @@ const CreateRepairOrderTag = (job, errorCallback) => {
}, },
InsuranceCompany: job.ins_co_nm || "", InsuranceCompany: job.ins_co_nm || "",
Claim: job.clm_no || "", Claim: job.clm_no || "",
DMSAllocation: job.dms_allocation || "",
Contacts: { Contacts: {
CSR: job.employee_csr_rel CSR: job.employee_csr_rel
? `${ ? `${
@@ -643,7 +644,8 @@ const CreateJobLines = (joblines) => {
part_qty: jobline.part_qty, part_qty: jobline.part_qty,
part_price: jobline.act_price, part_price: jobline.act_price,
labor_type: jobline.mod_lbr_ty, labor_type: jobline.mod_lbr_ty,
labor_hours: jobline.mod_lb_hrs labor_hours: jobline.mod_lb_hrs,
labor_sale: jobline.lbr_amt
}); });
}); });
return repairLines; return repairLines;
@@ -660,7 +662,10 @@ const CreateTimeTickets = (timetickets) => {
.trim(), .trim(),
productive_hrs: ticket.productivehrs, productive_hrs: ticket.productivehrs,
actual_hrs: ticket.actualhrs, actual_hrs: ticket.actualhrs,
cost_center: ticket.cost_center cost_center: ticket.cost_center,
flat_rate: ticket.flat_rate,
rate: ticket.rate,
ticket_cost: ticket.flat_rate ? ticket.rate * ticket.productive_hrs : ticket.rate * ticket.actual_hrs
}); });
}); });
return timeTickets; return timeTickets;

View File

@@ -1139,6 +1139,7 @@ exports.KAIZEN_QUERY = `query KAIZEN_EXPORT($start: timestamptz, $bodyshopid: uu
date_open date_open
date_repairstarted date_repairstarted
date_void date_void
dms_allocation
employee_body_rel { employee_body_rel {
first_name first_name
last_name last_name
@@ -1184,6 +1185,7 @@ exports.KAIZEN_QUERY = `query KAIZEN_EXPORT($start: timestamptz, $bodyshopid: uu
} }
db_price db_price
id id
lbr_amt
lbr_op lbr_op
line_desc line_desc
line_ind line_ind