IO-1023 receive parts modal updates.
This commit is contained in:
@@ -111,6 +111,42 @@ export const INSERT_NEW_JOB_LINE = gql`
|
||||
}
|
||||
`;
|
||||
|
||||
export const RECEIVE_PARTS_LINE = gql`
|
||||
mutation RECEIVE_PARTS_LINE(
|
||||
$lineId: uuid!
|
||||
$line: joblines_set_input!
|
||||
$orderLineId: uuid!
|
||||
$orderLine: parts_order_lines_set_input!
|
||||
) {
|
||||
update_joblines(where: { id: { _eq: $lineId } }, _set: $line) {
|
||||
returning {
|
||||
id
|
||||
notes
|
||||
mod_lbr_ty
|
||||
part_qty
|
||||
db_price
|
||||
act_price
|
||||
line_desc
|
||||
oem_partno
|
||||
notes
|
||||
location
|
||||
status
|
||||
removed
|
||||
}
|
||||
}
|
||||
update_parts_order_lines_by_pk(
|
||||
pk_columns: { id: $orderLineId }
|
||||
_set: $orderLine
|
||||
) {
|
||||
id
|
||||
line_desc
|
||||
backordered_on
|
||||
backordered_eta
|
||||
status
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_JOB_LINE = gql`
|
||||
mutation UPDATE_JOB_LINE($lineId: uuid!, $line: joblines_set_input!) {
|
||||
update_joblines(where: { id: { _eq: $lineId } }, _set: $line) {
|
||||
|
||||
Reference in New Issue
Block a user