Merge branch 'hotfix/2020-05-26' into hotfix/2020-05-28
This commit is contained in:
@@ -85,6 +85,7 @@ export const INSERT_APPOINTMENT = gql`
|
||||
title
|
||||
isintake
|
||||
block
|
||||
color
|
||||
}
|
||||
}
|
||||
update_jobs(
|
||||
@@ -110,6 +111,7 @@ export const QUERY_APPOINTMENT_BY_DATE = gql`
|
||||
title
|
||||
isintake
|
||||
block
|
||||
color
|
||||
job {
|
||||
alt_transport
|
||||
ro_number
|
||||
|
||||
@@ -197,6 +197,28 @@ export const QUERY_INTAKE_CHECKLIST = gql`
|
||||
scheduled_delivery
|
||||
intakechecklist
|
||||
status
|
||||
labhrs: joblines_aggregate(
|
||||
where: {
|
||||
_and: [{ mod_lbr_ty: { _neq: "LAR" } }, { removed: { _eq: false } }]
|
||||
}
|
||||
) {
|
||||
aggregate {
|
||||
sum {
|
||||
mod_lb_hrs
|
||||
}
|
||||
}
|
||||
}
|
||||
larhrs: joblines_aggregate(
|
||||
where: {
|
||||
_and: [{ mod_lbr_ty: { _eq: "LAR" } }, { removed: { _eq: false } }]
|
||||
}
|
||||
) {
|
||||
aggregate {
|
||||
sum {
|
||||
mod_lb_hrs
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -2,6 +2,10 @@ import { gql } from "@apollo/client";
|
||||
|
||||
export const GET_DOCUMENTS_BY_JOB = gql`
|
||||
query GET_DOCUMENTS_BY_JOB($jobId: uuid!) {
|
||||
jobs_by_pk(id: $jobId) {
|
||||
id
|
||||
ro_number
|
||||
}
|
||||
documents_aggregate(where: { jobid: { _eq: $jobId } }) {
|
||||
aggregate {
|
||||
sum {
|
||||
|
||||
Reference in New Issue
Block a user