feat: create cashbox removal notifications
This commit is contained in:
parent
73bd11b38b
commit
598135ccaf
6 changed files with 92 additions and 4 deletions
|
|
@ -9,7 +9,8 @@ const {
|
|||
LOW_CRYPTO_BALANCE,
|
||||
HIGH_CRYPTO_BALANCE,
|
||||
CASH_BOX_FULL,
|
||||
LOW_CASH_OUT
|
||||
LOW_CASH_OUT,
|
||||
SECURITY
|
||||
} = require('./codes')
|
||||
|
||||
function alertSubject (alertRec, config) {
|
||||
|
|
@ -79,6 +80,8 @@ function emailAlert (alert) {
|
|||
return `Cash box full on ${alert.machineName} [${alert.notes} banknotes]`
|
||||
case LOW_CASH_OUT:
|
||||
return `Cassette for ${alert.denomination} ${alert.fiatCode} low [${alert.notes} banknotes]`
|
||||
case SECURITY:
|
||||
return `Cashbox removed on ${alert.machineName}`
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue