Added parts location to receiving an invoice. BOD-357

This commit is contained in:
Patrick Fic
2020-08-27 10:51:29 -07:00
parent 22ce28dddf
commit 5c643515c0
4 changed files with 52 additions and 9 deletions

View File

@@ -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
}
}
}