Removed job status table. Added existing appointments timeline to modal. Refetching on calendar on delete.

This commit is contained in:
Patrick Fic
2020-02-06 15:06:13 -08:00
parent fae1e8cdeb
commit 8761dafdff
32 changed files with 1940 additions and 56 deletions

View File

@@ -74,3 +74,16 @@ export const CANCEL_APPOINTMENT_BY_ID = gql`
}
}
`;
export const QUERY_APPOINTMENTS_BY_JOBID = gql`
query QUERY_APPOINTMENTS_BY_JOBID($jobid: uuid!) {
appointments(where: { jobid: { _eq: $jobid } }) {
start
id
end
arrived
canceled
created_at
}
}
`;

View File

@@ -42,10 +42,7 @@ export const QUERY_ALL_OPEN_JOBS = gql`
scheduled_completion
scheduled_in
scheduled_delivery
job_status {
id
name
}
status
updated_at
clm_total
ded_amt
@@ -195,7 +192,7 @@ export const GET_JOB_BY_PK = gql`
date_invoiced
date_closed
date_exported
status
joblines {
id
unq_seq
@@ -213,6 +210,11 @@ export const GET_JOB_BY_PK = gql`
lbr_amt
op_code_desc
}
appointments_aggregate {
aggregate {
count
}
}
}
}
`;
@@ -253,6 +255,7 @@ export const QUERY_JOB_CARD_DETAILS = gql`
est_ct_fn
est_ct_ln
clm_no
status
ro_number
scheduled_completion
scheduled_in
@@ -264,10 +267,7 @@ export const QUERY_JOB_CARD_DETAILS = gql`
private
created_at
}
job_status {
id
name
}
updated_at
clm_total
ded_amt