BOD-17 Added header blocks to contract detail.

This commit is contained in:
Patrick Fic
2020-03-31 17:22:18 -07:00
parent 1c02c063b9
commit 6e6dd9d5ae
10 changed files with 181 additions and 29 deletions

View File

@@ -15,10 +15,7 @@ export const UPDATE_CONTRACT = gql`
$contractId: uuid!
$cccontract: cccontracts_set_input!
) {
update_cccontracts(
where: { id: { _eq: $contractId } }
_set: $cccontract
) {
update_cccontracts(where: { id: { _eq: $contractId } }, _set: $cccontract) {
returning {
id
}
@@ -49,12 +46,31 @@ export const QUERY_CONTRACT_BY_PK = gql`
driver_zip
id
jobid
job {
id
est_number
ro_number
v_make_desc
v_model_desc
ownr_fn
ownr_ln
ownr_co_nm
scheduled_completion
}
kmend
kmstart
scheduledreturn
start
status
updated_at
courtesycar {
id
fleetnumber
make
model
year
plate
}
}
}
`;