Removed job status table. Added existing appointments timeline to modal. Refetching on calendar on delete.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user