feat: cashbox batch creation on machine cashbox removal
fix: cashbox batch creation with empty cashbox
This commit is contained in:
parent
482e1afc3a
commit
61cc772816
5 changed files with 15 additions and 13 deletions
|
|
@ -5,7 +5,7 @@ const resolvers = {
|
|||
cashboxBatches: () => cashbox.getBatches()
|
||||
},
|
||||
Mutation: {
|
||||
createBatch: (...[, { deviceId }]) => cashbox.createCashboxBatch(deviceId),
|
||||
createBatch: (...[, { deviceId, cashboxCount }]) => cashbox.createCashboxBatch(deviceId, cashboxCount),
|
||||
editBatch: (...[, { id, performedBy }]) => cashbox.editBatchById(id, performedBy)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ const typeDef = gql`
|
|||
}
|
||||
|
||||
type Mutation {
|
||||
createBatch(deviceId: ID): CashboxBatch
|
||||
createBatch(deviceId: ID, cashboxCount: Int): CashboxBatch
|
||||
editBatch(id: ID, performedBy: String): CashboxBatch
|
||||
}
|
||||
`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue