Added error handling for receivables screen BOD-138
This commit is contained in:
29
client/src/graphql/accounting.queries.js
Normal file
29
client/src/graphql/accounting.queries.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import gql from "graphql-tag";
|
||||
|
||||
export const QUERY_JOBS_FOR_EXPORT = gql`
|
||||
query QUERY_JOBS_FOR_EXPORT($invoicedStatus: String!) {
|
||||
jobs(
|
||||
where: {
|
||||
date_exported: { _is_null: true }
|
||||
status: { _eq: $invoicedStatus }
|
||||
}
|
||||
) {
|
||||
id
|
||||
ro_number
|
||||
ownr_fn
|
||||
ownr_ln
|
||||
ownr_co_nm
|
||||
date_invoiced
|
||||
date_exported
|
||||
status
|
||||
v_model_desc
|
||||
v_make_desc
|
||||
v_model_yr
|
||||
v_color
|
||||
est_number
|
||||
clm_total
|
||||
clm_no
|
||||
ins_co_nm
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -366,8 +366,8 @@ export const UPDATE_JOB = gql`
|
||||
update_jobs(where: { id: { _eq: $jobId } }, _set: $job) {
|
||||
returning {
|
||||
id
|
||||
est_ph1
|
||||
est_ea
|
||||
date_exported
|
||||
status
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -824,7 +824,7 @@ export const QUERY_JOB_CLOSE_DETAILS = gql`
|
||||
rate_mapa
|
||||
rate_mash
|
||||
rate_matd
|
||||
status
|
||||
status
|
||||
owner_owing
|
||||
joblines {
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user