Feat: footer calculate cashout total
This commit is contained in:
parent
26aaf0c366
commit
bce45d34e0
5 changed files with 74 additions and 11 deletions
|
|
@ -15,6 +15,7 @@ const blacklist = require('../../blacklist')
|
|||
const machineEventsByIdBatch = require('../../postgresql_interface').machineEventsByIdBatch
|
||||
const promoCodeManager = require('../../promo-codes')
|
||||
const notifierQueries = require('../../notifier/queries')
|
||||
const bills = require('../bills')
|
||||
|
||||
const serverVersion = require('../../../package.json').version
|
||||
const transactions = require('../transactions')
|
||||
|
|
@ -259,6 +260,13 @@ const typeDefs = gql`
|
|||
valid: Boolean
|
||||
}
|
||||
|
||||
type Bills {
|
||||
fiat: Int
|
||||
deviceId: ID
|
||||
created: Date
|
||||
cashbox: Int
|
||||
}
|
||||
|
||||
type Query {
|
||||
countries: [Country]
|
||||
currencies: [Currency]
|
||||
|
|
@ -294,6 +302,7 @@ const typeDefs = gql`
|
|||
notifications: [Notification]
|
||||
alerts: [Notification]
|
||||
hasUnreadNotifications: Boolean
|
||||
bills: [Bills]
|
||||
}
|
||||
|
||||
type SupportLogsResponse {
|
||||
|
|
@ -393,7 +402,8 @@ const resolvers = {
|
|||
fiatRates: () => forex.getFiatRates(),
|
||||
notifications: () => notifierQueries.getNotifications(),
|
||||
hasUnreadNotifications: () => notifierQueries.hasUnreadNotifications(),
|
||||
alerts: () => notifierQueries.getAlerts()
|
||||
alerts: () => notifierQueries.getAlerts(),
|
||||
bills: () => bills.getBills()
|
||||
},
|
||||
Mutation: {
|
||||
machineAction: (...[, { deviceId, action, cashbox, cassette1, cassette2, newName }]) => machineAction({ deviceId, action, cashbox, cassette1, cassette2, newName }),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue