BOD-17 Added Contracts list page + updates and bugfixes on other pages.

This commit is contained in:
Patrick Fic
2020-04-01 10:48:53 -07:00
parent 28f443277b
commit 2a1cb3fb9f
15 changed files with 253 additions and 16 deletions

View File

@@ -74,3 +74,36 @@ export const QUERY_CONTRACT_BY_PK = gql`
}
}
`;
export const QUERY_ACTIVE_CONTRACTS = gql`
query QUERY_ACTIVE_CONTRACTS {
cccontracts(where: { status: { _neq: "contracts.status.returned" } }) {
agreementnumber
courtesycarid
driver_fn
driver_ln
driver_ph1
id
jobid
job {
id
est_number
ro_number
ownr_fn
ownr_ln
ownr_co_nm
}
scheduledreturn
start
status
courtesycar {
id
fleetnumber
make
model
year
plate
}
}
}
`;

View File

@@ -301,6 +301,7 @@ export const QUERY_JOB_CARD_DETAILS = gql`
ded_amt
cccontracts {
id
agreementnumber
status
start
scheduledreturn