Added job intake process for BOD-114

This commit is contained in:
Patrick Fic
2020-05-13 00:38:10 -07:00
parent cf8e0a918c
commit c470e0ba18
39 changed files with 2508 additions and 37 deletions

View File

@@ -0,0 +1,32 @@
query TEMPLATE_ESTIMATE_DETAIL($id: uuid!) {
jobs_by_pk(id: $id) {
csr
ded_amt
ded_status
id
ownr_co_nm
ownr_ln
ownr_fn
plate_no
plate_st
ro_number
regie_number
tlos_ind
v_color
v_make_desc
v_model_desc
v_model_yr
v_vin
clm_no
joblines(order_by: { line_no: asc }) {
id
mod_lbr_ty
mod_lb_hrs
part_qty
oem_partno
op_code_desc
line_desc
line_no
}
}
}

View File

@@ -0,0 +1,87 @@
<div style="font-family: Arial, Helvetica, sans-serif;">
<h1 style="text-align: center;">
<span><strong>Job Detail Summary</strong></span>
</h1>
<table style="border-collapse: collapse; width: 100%;" border="1">
<tbody>
<tr>
<td style="width: 33.3333%; vertical-align: top;">
<strong>Owner:</strong> {{jobs_by_pk.ownr_fn}} {{jobs_by_pk.ownr_ln}}
{{jobs_by_pk.ownr_co_nm}}
</td>
<td style="width: 33.3333%; vertical-align: top;">
<strong>Vehicle: </strong>{{jobs_by_pk.v_model_yr}}
{{jobs_by_pk.v_color}}{{jobs_by_pk.v_make_desc}}
{{jobs_by_pk.v_model_desc}}
</td>
<td style="width: 33.3333%; vertical-align: top;">
<p>
<strong>Claim Number: </strong>{{jobs_by_pk.clm_no}}<br /><strong
>Regie Number:&lt;/strong &gt; {{jobs_by_pk.regie_number}}
</strong>
</p>
<p>
<strong>Deductible:</strong> {{jobs_by_pk.ded_amt}}
{{jobs_by_pk.ded_status}}
</p>
</td>
</tr>
</tbody>
</table>
<h2 style="text-align: center;"><span>Job Lines</span></h2>
<table
style="border-collapse: collapse; width: 100%; height: 88px;"
border="1"
>
<tbody>
<tr style="height: 22px;">
<td style="width: 14.2857%; text-align: center; height: 22px;">
<strong>Line No.</strong>
</td>
<td style="width: 14.2857%; text-align: center; height: 22px;">
<strong>Line Desc.</strong>
</td>
<td style="width: 14.2857%; text-align: center; height: 22px;">
<strong>OEM Part #</strong>
</td>
<td style="width: 14.2857%; text-align: center; height: 22px;">
<strong>Qty.</strong>
</td>
<td style="width: 14.2857%; text-align: center; height: 22px;">
<strong>Labor Type</strong>
</td>
<td style="width: 14.2857%; text-align: center; height: 22px;">
<strong>Hours</strong>
</td>
</tr>
<tr style="height: 22px; display: none;">
<td style="width: 100%; height: 22px;">
<span>{{#each jobs_by_pk.joblines}}</span>
</td>
</tr>
<tr style="height: 22px;">
<td style="width: 14.2857%; height: 22px; text-align: justify;">
{{this.line_no}}
</td>
<td style="width: 14.2857%; height: 22px; text-align: justify;">
{{this.line_desc}}
</td>
<td style="width: 14.2857%; height: 22px; text-align: justify;">
{{this.oem_partno}}
</td>
<td style="width: 14.2857%; height: 22px; text-align: justify;">
{{this.part_qty}}
</td>
<td style="width: 14.2857%; height: 22px; text-align: justify;">
{{this.mod_lbr_ty}}
</td>
<td style="width: 14.2857%; height: 22px; text-align: justify;">
{{this.mod_lb_hrs}}
</td>
</tr>
<tr style="height: 22px; display: none;">
<td style="width: 100%; height: 22px;"><span>{{/each}}</span></td>
</tr>
</tbody>
</table>
</div>