Added driveable and tow in flags. IO-719

This commit is contained in:
Patrick Fic
2021-03-02 11:54:24 -08:00
parent 904dc4e29e
commit a026cd0163
19 changed files with 1771 additions and 13 deletions

View File

@@ -350,6 +350,8 @@ export const GET_JOB_BY_PK = gql`
v_make_desc
v_color
vehicleid
driveable
towin
vehicle {
id
plate_no
@@ -735,10 +737,20 @@ export const CONVERT_JOB_TO_RO = gql`
$jobId: uuid!
$class: String
$ins_co_nm: String!
$ca_gst_registrant: Boolean
$driveable: Boolean
$towin: Boolean
) {
update_jobs(
where: { id: { _eq: $jobId } }
_set: { converted: true, ins_co_nm: $ins_co_nm, class: $class }
_set: {
converted: true
ins_co_nm: $ins_co_nm
class: $class
ca_gst_registrant: $ca_gst_registrant
towin: $towin
driveable: $driveable
}
) {
returning {
id
@@ -1092,6 +1104,8 @@ export const QUERY_ALL_JOB_FIELDS = gql`
employee_body
employee_refinish
employee_prep
driveable
towin
}
}
`;