Added job line ignore.
This commit is contained in:
23
src/graphql/joblines.queries.js
Normal file
23
src/graphql/joblines.queries.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import gql from "graphql-tag";
|
||||
|
||||
export const UPDATE_JOB_LINE = gql`
|
||||
mutation UPDATE_JOB_LINE($lineId: uuid!, $line: joblines_set_input!) {
|
||||
update_joblines(where: { id: { _eq: $lineId } }, _set: $line) {
|
||||
returning {
|
||||
id
|
||||
line_no
|
||||
act_price
|
||||
db_price
|
||||
line_desc
|
||||
line_ind
|
||||
oem_partno
|
||||
part_qty
|
||||
part_type
|
||||
unq_seq
|
||||
price_diff
|
||||
price_diff_pc
|
||||
ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -10,21 +10,6 @@ export const INSERT_NEW_JOB = gql`
|
||||
}
|
||||
`;
|
||||
|
||||
// on_conflict: {
|
||||
// constraint: jobs_clm_no_bodyshopid_key
|
||||
// update_columns: [
|
||||
// ins_co_nm
|
||||
// clm_no
|
||||
// clm_total
|
||||
// ownr_ln
|
||||
// ownr_fn
|
||||
// v_vin
|
||||
// v_make_desc
|
||||
// v_model_desc
|
||||
// v_type
|
||||
// ]
|
||||
// }
|
||||
|
||||
export const QUERY_ALL_JOBS_PAGINATED = gql`
|
||||
query QUERY_ALL_JOBS_PAGINATED(
|
||||
$offset: Int
|
||||
@@ -106,6 +91,7 @@ export const QUERY_JOB_BY_PK = gql`
|
||||
close_date
|
||||
joblines(order_by: { line_no: asc }) {
|
||||
id
|
||||
line_no
|
||||
act_price
|
||||
db_price
|
||||
line_desc
|
||||
@@ -116,6 +102,7 @@ export const QUERY_JOB_BY_PK = gql`
|
||||
unq_seq
|
||||
price_diff
|
||||
price_diff_pc
|
||||
ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user