lamassu-server/lib/new-admin/graphql/resolvers/cashbox.resolver.js
Sérgio Salgado 482e1afc3a fix: cashout detection on cash cassette wizard
fix: cashbox wizard onContinue data
fix: cashbox batch creation query
feat: cashbox batch creation flow on UI
2021-07-07 17:46:23 +01:00

13 lines
350 B
JavaScript

const cashbox = require('../../../cashbox-batches')
const resolvers = {
Query: {
cashboxBatches: () => cashbox.getBatches()
},
Mutation: {
createBatch: (...[, { deviceId }]) => cashbox.createCashboxBatch(deviceId),
editBatch: (...[, { id, performedBy }]) => cashbox.editBatchById(id, performedBy)
}
}
module.exports = resolvers