Added parts location to receiving an invoice. BOD-357
This commit is contained in:
@@ -76,9 +76,21 @@ export const GET_LINE_TICKET_BY_PK = gql`
|
||||
`;
|
||||
|
||||
export const UPDATE_JOB_LINE_STATUS = gql`
|
||||
mutation UPDATE_JOB_LINE_STATUS($ids: [uuid!]!, $status: String!) {
|
||||
update_joblines(where: { id: { _in: $ids } }, _set: { status: $status }) {
|
||||
mutation UPDATE_JOB_LINE_STATUS(
|
||||
$ids: [uuid!]!
|
||||
$status: String!
|
||||
$location: String
|
||||
) {
|
||||
update_joblines(
|
||||
where: { id: { _in: $ids } }
|
||||
_set: { status: $status, location: $location }
|
||||
) {
|
||||
affected_rows
|
||||
returning {
|
||||
id
|
||||
status
|
||||
location
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -106,6 +118,7 @@ export const UPDATE_JOB_LINE = gql`
|
||||
oem_partno
|
||||
notes
|
||||
location
|
||||
status
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user