Added vehicle groups and age calculations.

This commit is contained in:
Patrick Fic
2020-10-16 11:51:53 -07:00
parent 827243e11f
commit 4582bd0f4d
70 changed files with 1793 additions and 213 deletions

View File

@@ -68,6 +68,8 @@ export const QUERY_JOB_BY_PK = gql`
clm_total
ro_number
updated_at
group
v_age
joblines(order_by: { unq_seq: asc }) {
id
act_price

View File

@@ -0,0 +1,14 @@
import gql from "graphql-tag";
export const QUERY_GROUPS_BY_MAKE_TYPE = gql`
query QUERY_GROUPS_BY_MAKE_TYPE($make: String!, $type: String) {
veh_groups(
where: { _and: { make: { _eq: $make } }, type: { _eq: $type } }
) {
id
group
make
type
}
}
`;