Enable receipt printing (#298)

* Remove cross reference option from compliance

* Add receipt printing
This commit is contained in:
Rafael Taranto 2019-07-30 19:50:40 +01:00 committed by Josh Harvey
parent 2004067755
commit 55cdc2fa52
5 changed files with 22 additions and 33 deletions

View file

@ -1,3 +1,3 @@
ls src/Css/* | entr elm-css src/Stylesheets.elm
find src | entr elm-make src/Main.elm --output ../lamassu-server/public/elm.js
find src | entr elm-make src/Lamassu.elm --output ../lamassu-server/public/lamassu-elm.js
find src | entr elm-make src/Main.elm --output ../public/elm.js
find src | entr elm-make src/Lamassu.elm --output ../public/lamassu-elm.js

View file

@ -1147,8 +1147,8 @@ complianceTableView model =
, row "ID Card Photo" "idCardPhotoVerificationActive" "idCardPhotoVerificationThreshold"
, row "Front Facing Camera" "frontCameraVerificationActive" "frontCameraVerificationThreshold"
, row "Sanctions" "sanctionsVerificationActive" "sanctionsVerificationThreshold"
, row "Cross Reference" "crossRefVerificationActive" "crossRefVerificationThreshold"
, row "Hard Limit" "hardLimitVerificationActive" "hardLimitVerificationThreshold"
, row "Receipt Printing" "receiptPrintingActive" ""
]
]

View file

@ -74,12 +74,11 @@
"idCardPhotoVerificationThreshold",
"sanctionsVerificationActive",
"sanctionsVerificationThreshold",
"crossRefVerificationActive",
"crossRefVerificationThreshold",
"frontCameraVerificationActive",
"frontCameraVerificationThreshold",
"hardLimitVerificationActive",
"hardLimitVerificationThreshold"
"hardLimitVerificationThreshold",
"receiptPrintingActive"
]
},
{
@ -150,6 +149,20 @@
}
],
"fields": [
{
"code": "receiptPrintingActive",
"displayTop": "Receipt Printing",
"displayBottom": "Receipt Priting",
"displayTopCount": 2,
"fieldType": "onOff",
"fieldClass": null,
"fieldValidation": [
{
"code": "required"
}
],
"default": false
},
{
"code": "hardLimitVerificationActive",
"displayTop": "Hard Limit",
@ -175,31 +188,6 @@
],
"fieldValidation": [{"code": "required"}]
},
{
"code": "crossRefVerificationActive",
"displayTop": "Cross Reference",
"displayBottom": "Cross Reference",
"displayTopCount": 2,
"fieldType": "onOff",
"fieldClass": null,
"fieldValidation": [
{
"code": "required"
}
],
"default": false
},
{
"code": "crossRefVerificationThreshold",
"displayBottom": "Daily Value Threshold",
"displayTopCount": 0,
"fieldType": "integer",
"fieldClass": "fiat",
"enabledIfAny": [
"crossRefVerificationActive"
],
"fieldValidation": [{"code": "required"}]
},
{
"code": "sanctionsVerificationActive",
"displayTop": "Sanctions Verification",

View file

@ -87,6 +87,7 @@ function poll (req, res, next) {
crossRefVerificationThreshold: config.crossRefVerificationThreshold,
frontCameraVerificationActive: config.frontCameraVerificationActive,
frontCameraVerificationThreshold: config.frontCameraVerificationThreshold,
receiptPrintingActive: config.receiptPrintingActive,
terms,
cassettes,
twoWayMode: config.cashOutEnabled,

View file

@ -32873,10 +32873,10 @@ var _user$project$Config$complianceTableView = function (model) {
_0: A3(row, 'Sanctions', 'sanctionsVerificationActive', 'sanctionsVerificationThreshold'),
_1: {
ctor: '::',
_0: A3(row, 'Cross Reference', 'crossRefVerificationActive', 'crossRefVerificationThreshold'),
_0: A3(row, 'Hard Limit', 'hardLimitVerificationActive', 'hardLimitVerificationThreshold'),
_1: {
ctor: '::',
_0: A3(row, 'Hard Limit', 'hardLimitVerificationActive', 'hardLimitVerificationThreshold'),
_0: A3(row, 'Receipt Printing', 'receiptPrintingActive', ''),
_1: {ctor: '[]'}
}
}