diff --git a/lamassu-admin-elm/cli.txt b/lamassu-admin-elm/cli.txt index 1fdc46c4..b2d00f9b 100644 --- a/lamassu-admin-elm/cli.txt +++ b/lamassu-admin-elm/cli.txt @@ -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 diff --git a/lamassu-admin-elm/src/Config.elm b/lamassu-admin-elm/src/Config.elm index 00d73e1b..9d649b00 100644 --- a/lamassu-admin-elm/src/Config.elm +++ b/lamassu-admin-elm/src/Config.elm @@ -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" "" ] ] diff --git a/lamassu-schema.json b/lamassu-schema.json index b8531b59..f94a2e05 100644 --- a/lamassu-schema.json +++ b/lamassu-schema.json @@ -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", diff --git a/lib/routes.js b/lib/routes.js index 8fc0b188..9f0b4a74 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -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, diff --git a/public/elm.js b/public/elm.js index 024d6320..fcd136a9 100644 --- a/public/elm.js +++ b/public/elm.js @@ -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: '[]'} } }