From 9460672b5b96941d5aedc26b9737e8e6ae480ba9 Mon Sep 17 00:00:00 2001 From: NicoleNG18 Date: Thu, 5 Mar 2026 22:02:24 +0200 Subject: [PATCH 1/2] remove payment status entity and clear data folder --- codbex-payments/codbex-payments.edm | 263 +++++---- codbex-payments/codbex-payments.gen | 518 +++++++++++++----- codbex-payments/codbex-payments.model | 203 ++++--- codbex-payments/data/payment-types.csv | 4 - codbex-payments/data/payments.csvim | 15 - .../api/Settings/PaymentStatusController.ts | 175 ------ .../PaymentRecord/PaymentRecordRepository.ts | 14 - .../dao/Settings/PaymentStatus.extensionpoint | 4 - .../dao/Settings/PaymentStatusRepository.ts | 197 ------- .../CustomerPayment/CustomerPaymentEntity.ts | 2 +- .../EmployeePayment/EmployeePaymentEntity.ts | 2 +- .../PaymentAdjustmentEntity.ts | 2 +- .../data/PaymentRecord/PaymentRecordEntity.ts | 10 +- .../Settings/PaymentRecordDirectionEntity.ts | 2 +- .../Settings/PaymentStatus.extensionpoint | 4 - .../data/Settings/PaymentStatusEntity.ts | 28 - .../data/Settings/PaymentStatusRepository.ts | 25 - .../data/Settings/PaymentTypeEntity.ts | 2 +- .../SupplierPayment/SupplierPaymentEntity.ts | 2 +- .../data/Suppliers/SupplierEntity.ts | 2 +- .../codbex-payments/roles/default-roles.roles | 8 - .../schema/codbex-payments.schema | 33 -- .../PaymentRecord/PaymentRecord/controller.js | 28 - .../PaymentRecord/dialog-filter/controller.js | 5 - .../PaymentRecord/dialog-filter/index.html | 15 - .../PaymentRecord/dialog-window/controller.js | 19 - .../PaymentRecord/dialog-window/index.html | 17 - .../ui/PaymentRecord/PaymentRecord/index.html | 1 - .../PaymentRecord/main-details/controller.js | 32 -- .../PaymentRecord/main-details/index.html | 21 - .../ui/Reports/PaymentRecord/controller.js | 27 - .../PaymentRecord/dialog-filter/controller.js | 5 - .../PaymentRecord/dialog-filter/index.html | 15 - .../PaymentRecord/dialog-print/controller.js | 13 - .../PaymentRecord/dialog-print/index.html | 2 - .../PaymentRecord/dialog-window/controller.js | 1 - .../PaymentRecord/dialog-window/index.html | 16 - .../ui/Reports/PaymentRecord/index.html | 4 - .../ui/Settings/PaymentStatus/controller.js | 202 ------- .../PaymentStatus/dialog-filter/controller.js | 66 --- .../PaymentStatus/dialog-filter/index.html | 57 -- .../dialog-filter/view.extension | 6 - .../PaymentStatus/dialog-filter/view.js | 20 - .../PaymentStatus/dialog-window/controller.js | 100 ---- .../PaymentStatus/dialog-window/index.html | 59 -- .../dialog-window/view.extension | 6 - .../PaymentStatus/dialog-window/view.js | 17 - .../ui/Settings/PaymentStatus/index.html | 65 --- .../ui/Settings/PaymentStatus/view.extension | 6 - .../ui/Settings/PaymentStatus/view.js | 20 - .../en-US/codbex-payments.model.json | 4 - 51 files changed, 629 insertions(+), 1735 deletions(-) delete mode 100644 codbex-payments/data/payment-types.csv delete mode 100644 codbex-payments/data/payments.csvim delete mode 100644 codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts delete mode 100644 codbex-payments/gen/codbex-payments/dao/Settings/PaymentStatus.extensionpoint delete mode 100644 codbex-payments/gen/codbex-payments/dao/Settings/PaymentStatusRepository.ts delete mode 100644 codbex-payments/gen/codbex-payments/data/Settings/PaymentStatus.extensionpoint delete mode 100644 codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusEntity.ts delete mode 100644 codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusRepository.ts delete mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/controller.js delete mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/controller.js delete mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/index.html delete mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.extension delete mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.js delete mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/controller.js delete mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/index.html delete mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.extension delete mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.js delete mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/index.html delete mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension delete mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js diff --git a/codbex-payments/codbex-payments.edm b/codbex-payments/codbex-payments.edm index 5aac4df..b668ba5 100644 --- a/codbex-payments/codbex-payments.edm +++ b/codbex-payments/codbex-payments.edm @@ -1,104 +1,103 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - + + + @@ -106,15 +105,9 @@ - - - - - - - - - + + + @@ -126,53 +119,53 @@ - - - + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + @@ -186,5 +179,5 @@ - + \ No newline at end of file diff --git a/codbex-payments/codbex-payments.gen b/codbex-payments/codbex-payments.gen index 0c1c5fc..26559e1 100644 --- a/codbex-payments/codbex-payments.gen +++ b/codbex-payments/codbex-payments.gen @@ -140,7 +140,6 @@ "views": [ "Currency", "PaymentRecordDirection", - "PaymentStatus", "PaymentType", "PaymentMethod" ], @@ -246,11 +245,6 @@ "roleRead": "codbex-payments.Settings.PaymentRecordDirectionReadOnly", "roleWrite": "codbex-payments.Settings.PaymentRecordDirectionFullAccess" }, - { - "entityName": "PaymentStatus", - "roleRead": "codbex-payments.Settings.PaymentStatusReadOnly", - "roleWrite": "codbex-payments.Settings.PaymentStatusFullAccess" - }, { "entityName": "PaymentType", "roleRead": "codbex-payments.Settings.PaymentTypeReadOnly", @@ -267,6 +261,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": true, "dataName": "CUSTOMERPAYMENT_ID", "dataNullable": true, @@ -283,6 +278,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -291,6 +287,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_CUSTOMER", "dataNullable": true, "dataType": "INTEGER", @@ -313,6 +310,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Customer", "widgetDropdownUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerController.ts", @@ -321,6 +319,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_DATE", "dataNullable": false, "dataOrderBy": "DESC", @@ -338,6 +337,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -347,6 +347,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_VALOR", "dataNullable": false, "dataType": "DATE", @@ -363,6 +364,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -372,6 +374,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "CUSTOMERPAYMENT_COMPANYIBAN", "dataNullable": true, @@ -389,6 +392,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -399,6 +403,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "CUSTOMERPAYMENT_COUNTERPARTYIBAN", "dataNullable": true, @@ -416,6 +421,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -426,6 +432,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "CUSTOMERPAYMENT_COUNTERPARTYNAME", "dataNullable": true, @@ -443,6 +450,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -453,6 +461,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "CUSTOMERPAYMENT_AMOUNT", "dataNullable": false, @@ -472,6 +481,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -480,6 +490,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_CURRENCY", "dataNullable": false, "dataType": "INTEGER", @@ -502,6 +513,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", @@ -510,6 +522,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "CUSTOMERPAYMENT_REASON", "dataNullable": false, @@ -527,6 +540,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -537,6 +551,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "CUSTOMERPAYMENT_DESCRIPTION", "dataNullable": true, @@ -554,6 +569,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -564,6 +580,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_COMPANY", "dataNullable": true, "dataType": "INTEGER", @@ -586,6 +603,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", @@ -594,6 +612,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(18)", "dataLength": "20", "dataName": "CUSTOMERPAYMENT_NAME", @@ -612,6 +631,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -622,6 +642,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "CUSTOMERPAYMENT_UUID", @@ -640,6 +661,7 @@ "dataAutoIncrement": false, "dataPrimaryKey": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -650,6 +672,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "CUSTOMERPAYMENT_REFERENCE", "dataNullable": true, @@ -667,6 +690,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -677,6 +701,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_PAYMENTMETHOD", "dataNullable": true, "dataType": "INTEGER", @@ -699,6 +724,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "PaymentMethod", "widgetDropdownUrl": "/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodController.ts", @@ -722,6 +748,7 @@ "menuIndex": "100", "menuKey": "customerpayment", "menuLabel": "CustomerPayment", + "multilingual": "false", "name": "CustomerPayment", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/usd-square.svg", @@ -766,6 +793,7 @@ "primaryKeysString": "Id", "masterProperties": { "title": { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_CUSTOMER", "dataNullable": true, "dataType": "INTEGER", @@ -788,6 +816,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Customer", "widgetDropdownUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerController.ts", @@ -797,6 +826,7 @@ }, "properties": [ { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_DATE", "dataNullable": false, "dataOrderBy": "DESC", @@ -814,6 +844,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -823,6 +854,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_VALOR", "dataNullable": false, "dataType": "DATE", @@ -839,6 +871,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -848,6 +881,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "CUSTOMERPAYMENT_COMPANYIBAN", "dataNullable": true, @@ -865,6 +899,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -875,6 +910,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "CUSTOMERPAYMENT_COUNTERPARTYIBAN", "dataNullable": true, @@ -892,6 +928,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -902,6 +939,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "CUSTOMERPAYMENT_COUNTERPARTYNAME", "dataNullable": true, @@ -919,6 +957,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -929,6 +968,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "CUSTOMERPAYMENT_AMOUNT", "dataNullable": false, @@ -948,6 +988,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -956,6 +997,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_CURRENCY", "dataNullable": false, "dataType": "INTEGER", @@ -978,6 +1020,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", @@ -986,6 +1029,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "CUSTOMERPAYMENT_REASON", "dataNullable": false, @@ -1003,6 +1047,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1013,6 +1058,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "CUSTOMERPAYMENT_DESCRIPTION", "dataNullable": true, @@ -1030,6 +1076,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1040,6 +1087,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_COMPANY", "dataNullable": true, "dataType": "INTEGER", @@ -1062,6 +1110,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", @@ -1070,6 +1119,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(18)", "dataLength": "20", "dataName": "CUSTOMERPAYMENT_NAME", @@ -1088,6 +1138,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1098,6 +1149,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_PAYMENTMETHOD", "dataNullable": true, "dataType": "INTEGER", @@ -1120,6 +1172,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "PaymentMethod", "widgetDropdownUrl": "/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodController.ts", @@ -1135,6 +1188,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": true, "dataName": "SUPPLIERPAYMENT_ID", "dataNullable": true, @@ -1151,6 +1205,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1159,6 +1214,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_SUPPLIER", "dataNullable": true, "dataType": "INTEGER", @@ -1181,6 +1237,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Supplier", "widgetDropdownUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierController.ts", @@ -1189,6 +1246,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_DATE", "dataNullable": false, "dataOrderBy": "DESC", @@ -1206,6 +1264,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1215,6 +1274,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_VALOR", "dataNullable": false, "dataType": "DATE", @@ -1231,6 +1291,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1240,6 +1301,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "SUPPLIERPAYMENT_COMPANYIBAN", "dataNullable": true, @@ -1257,6 +1319,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1267,6 +1330,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "SUPPLIERPAYMENT_COUNTERPARTYIBAN", "dataNullable": true, @@ -1284,6 +1348,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1294,6 +1359,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "SUPPLIERPAYMENT_COUNTERPARTYNAME", "dataNullable": true, @@ -1311,6 +1377,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1321,6 +1388,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "SUPPLIERPAYMENT_AMOUNT", "dataNullable": false, @@ -1340,6 +1408,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1348,6 +1417,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_CURRENCY", "dataNullable": false, "dataType": "INTEGER", @@ -1370,6 +1440,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", @@ -1378,6 +1449,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "SUPPLIERPAYMENT_REASON", "dataNullable": false, @@ -1395,6 +1467,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1405,6 +1478,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "SUPPLIERPAYMENT_DESCRIPTION", "dataNullable": true, @@ -1422,6 +1496,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1432,6 +1507,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_COMPANY", "dataNullable": true, "dataType": "INTEGER", @@ -1454,6 +1530,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", @@ -1462,6 +1539,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(19)", "dataLength": "20", "dataName": "SUPPLIERPAYMENT_NAME", @@ -1480,6 +1558,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1490,6 +1569,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "SUPPLIERPAYMENT_UUID", @@ -1508,6 +1588,7 @@ "dataAutoIncrement": false, "dataPrimaryKey": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1518,6 +1599,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "SUPPLIERPAYMENT_REFERENCE", "dataNullable": true, @@ -1535,6 +1617,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1560,6 +1643,7 @@ "menuIndex": "100", "menuKey": "supplierpayment", "menuLabel": "SupplierPayment", + "multilingual": "false", "name": "SupplierPayment", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/box.svg", @@ -1599,6 +1683,7 @@ "primaryKeysString": "Id", "masterProperties": { "title": { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_SUPPLIER", "dataNullable": true, "dataType": "INTEGER", @@ -1621,6 +1706,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Supplier", "widgetDropdownUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierController.ts", @@ -1630,6 +1716,7 @@ }, "properties": [ { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_DATE", "dataNullable": false, "dataOrderBy": "DESC", @@ -1647,6 +1734,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1656,6 +1744,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_VALOR", "dataNullable": false, "dataType": "DATE", @@ -1672,6 +1761,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1681,6 +1771,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "SUPPLIERPAYMENT_COMPANYIBAN", "dataNullable": true, @@ -1698,6 +1789,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1708,6 +1800,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "SUPPLIERPAYMENT_COUNTERPARTYIBAN", "dataNullable": true, @@ -1725,6 +1818,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1735,6 +1829,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "SUPPLIERPAYMENT_COUNTERPARTYNAME", "dataNullable": true, @@ -1752,6 +1847,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1762,6 +1858,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "SUPPLIERPAYMENT_AMOUNT", "dataNullable": false, @@ -1781,6 +1878,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1789,6 +1887,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_CURRENCY", "dataNullable": false, "dataType": "INTEGER", @@ -1811,6 +1910,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", @@ -1819,6 +1919,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "SUPPLIERPAYMENT_REASON", "dataNullable": false, @@ -1836,6 +1937,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1846,6 +1948,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "SUPPLIERPAYMENT_DESCRIPTION", "dataNullable": true, @@ -1863,6 +1966,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1873,6 +1977,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_COMPANY", "dataNullable": true, "dataType": "INTEGER", @@ -1895,6 +2000,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", @@ -1903,6 +2009,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(19)", "dataLength": "20", "dataName": "SUPPLIERPAYMENT_NAME", @@ -1921,6 +2028,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1931,6 +2039,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "SUPPLIERPAYMENT_UUID", @@ -1949,6 +2058,7 @@ "dataAutoIncrement": false, "dataPrimaryKey": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1959,6 +2069,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "SUPPLIERPAYMENT_REFERENCE", "dataNullable": true, @@ -1976,6 +2087,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -1993,6 +2105,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": true, "dataName": "EMPLOYEEPAYMENT_ID", "dataNullable": true, @@ -2009,6 +2122,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2017,6 +2131,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "EMPLOYEEPAYMENT_DATE", "dataNullable": false, "dataOrderBy": "DESC", @@ -2034,6 +2149,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2043,6 +2159,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "EMPLOYEEPAYMENT_VALOR", "dataNullable": false, "dataType": "DATE", @@ -2059,6 +2176,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2068,6 +2186,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "EMPLOYEEPAYMENT_COMPANYIBAN", "dataNullable": true, @@ -2085,6 +2204,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2095,6 +2215,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "EMPLOYEEPAYMENT_COUNTERPARTYIBAN", "dataNullable": true, @@ -2112,6 +2233,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2122,6 +2244,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "EMPLOYEEPAYMENT_COUNTERPARTYNAME", "dataNullable": true, @@ -2139,6 +2262,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2149,6 +2273,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "EMPLOYEEPAYMENT_AMOUNT", "dataNullable": false, @@ -2168,6 +2293,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2176,6 +2302,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "EMPLOYEEPAYMENT_CURRENCY", "dataNullable": false, "dataType": "INTEGER", @@ -2198,6 +2325,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", @@ -2206,6 +2334,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "EMPLOYEEPAYMENT_REASON", "dataNullable": false, @@ -2223,6 +2352,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2233,6 +2363,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "EMPLOYEEPAYMENT_DESCRIPTION", "dataNullable": true, @@ -2250,6 +2381,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2260,6 +2392,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "EMPLOYEEPAYMENT_COMPANY", "dataNullable": true, "dataType": "INTEGER", @@ -2282,6 +2415,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", @@ -2290,6 +2424,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(20)", "dataLength": "20", "dataName": "EMPLOYEEPAYMENT_NAME", @@ -2308,6 +2443,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2318,6 +2454,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "EMPLOYEEPAYMENT_UUID", @@ -2336,6 +2473,7 @@ "dataAutoIncrement": false, "dataPrimaryKey": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2346,6 +2484,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "EMPLOYEEPAYMENT_REFERENCE", "dataNullable": true, @@ -2363,6 +2502,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2388,6 +2528,7 @@ "menuIndex": "100", "menuKey": "employeepayment", "menuLabel": "EmployeePayment", + "multilingual": "false", "name": "EmployeePayment", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/folder-check.svg", @@ -2422,6 +2563,7 @@ "primaryKeysString": "Id", "masterProperties": { "title": { + "auditType": "NONE", "dataName": "EMPLOYEEPAYMENT_DATE", "dataNullable": false, "dataOrderBy": "DESC", @@ -2439,6 +2581,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2449,6 +2592,7 @@ }, "properties": [ { + "auditType": "NONE", "dataName": "EMPLOYEEPAYMENT_VALOR", "dataNullable": false, "dataType": "DATE", @@ -2465,6 +2609,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2474,6 +2619,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "EMPLOYEEPAYMENT_COMPANYIBAN", "dataNullable": true, @@ -2491,6 +2637,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2501,6 +2648,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "EMPLOYEEPAYMENT_COUNTERPARTYIBAN", "dataNullable": true, @@ -2518,6 +2666,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2528,6 +2677,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "EMPLOYEEPAYMENT_COUNTERPARTYNAME", "dataNullable": true, @@ -2545,6 +2695,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2555,6 +2706,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "EMPLOYEEPAYMENT_AMOUNT", "dataNullable": false, @@ -2574,6 +2726,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2582,6 +2735,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "EMPLOYEEPAYMENT_CURRENCY", "dataNullable": false, "dataType": "INTEGER", @@ -2604,6 +2758,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", @@ -2612,6 +2767,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "EMPLOYEEPAYMENT_REASON", "dataNullable": false, @@ -2629,6 +2785,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2639,6 +2796,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "EMPLOYEEPAYMENT_DESCRIPTION", "dataNullable": true, @@ -2656,6 +2814,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2666,6 +2825,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "EMPLOYEEPAYMENT_COMPANY", "dataNullable": true, "dataType": "INTEGER", @@ -2688,6 +2848,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", @@ -2696,6 +2857,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(20)", "dataLength": "20", "dataName": "EMPLOYEEPAYMENT_NAME", @@ -2714,6 +2876,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2724,6 +2887,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "EMPLOYEEPAYMENT_UUID", @@ -2742,6 +2906,7 @@ "dataAutoIncrement": false, "dataPrimaryKey": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2752,6 +2917,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "EMPLOYEEPAYMENT_REFERENCE", "dataNullable": true, @@ -2769,6 +2935,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2786,6 +2953,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": true, "dataName": "PAYMENTRECORD_ID", "dataNullable": true, @@ -2802,6 +2970,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2810,6 +2979,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_DATE", "dataNullable": false, "dataOrderBy": "DESC", @@ -2827,6 +2997,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2836,6 +3007,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_VALOR", "dataNullable": false, "dataType": "DATE", @@ -2852,6 +3024,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2861,6 +3034,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "PAYMENTRECORD_COMPANYIBAN", "dataNullable": true, @@ -2878,6 +3052,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2888,6 +3063,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "PAYMENTRECORD_COUNTERPARTYIBAN", "dataNullable": true, @@ -2905,6 +3081,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2915,6 +3092,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "PAYMENTRECORD_COUNTERPARTYNAME", "dataNullable": true, @@ -2932,6 +3110,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2942,6 +3121,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "PAYMENTRECORD_AMOUNT", "dataNullable": true, @@ -2961,6 +3141,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -2969,6 +3150,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_CURRENCY", "dataNullable": true, "dataType": "INTEGER", @@ -2991,6 +3173,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", @@ -2999,6 +3182,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "PAYMENTRECORD_REASON", "dataNullable": true, @@ -3016,6 +3200,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3026,6 +3211,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "PAYMENTRECORD_DESCRIPTION", "dataNullable": true, @@ -3043,6 +3229,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3053,6 +3240,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_COMPANY", "dataNullable": true, "dataType": "INTEGER", @@ -3075,6 +3263,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", @@ -3083,6 +3272,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_PAYMENTRECORDDIRECTION", "dataNullable": true, "dataType": "INTEGER", @@ -3105,6 +3295,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "PaymentRecordDirection", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts", @@ -3113,36 +3304,7 @@ "inputRule": "" }, { - "dataName": "PAYMENTRECORD_PAYMENTSTATUS", - "dataNullable": true, - "dataType": "INTEGER", - "description": "", - "name": "PaymentStatus", - "tooltip": "", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "Name", - "widgetIsMajor": true, - "widgetLength": "20", - "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "PaymentRecord_PaymentStatus", - "relationshipEntityName": "PaymentStatus", - "relationshipEntityPerspectiveName": "Settings", - "relationshipEntityPerspectiveLabel": "Entities", - "dataNotNull": false, - "dataAutoIncrement": false, - "dataPrimaryKey": false, - "dataUnique": false, - "isRequiredProperty": false, - "isCalculatedProperty": false, - "widgetLabel": "PaymentStatus", - "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts", - "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts", - "dataTypeJava": "int", - "dataTypeTypescript": "number", - "inputRule": "" - }, - { + "auditType": "NONE", "dataName": "PAYMENTRECORD_PAYMENTTYPE", "dataNullable": true, "dataType": "INTEGER", @@ -3165,6 +3327,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "PaymentType", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts", @@ -3173,6 +3336,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "PAYMENTRECORD_UUID", @@ -3191,6 +3355,7 @@ "dataAutoIncrement": false, "dataPrimaryKey": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3201,6 +3366,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "PAYMENTRECORD_REFERENCE", "dataNullable": true, @@ -3218,6 +3384,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3228,6 +3395,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_DELETED", "dataNullable": true, "dataType": "BOOLEAN", @@ -3244,6 +3412,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Deleted", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3266,6 +3435,7 @@ "menuIndex": "100", "menuKey": "paymentrecord", "menuLabel": "PaymentRecord", + "multilingual": "false", "name": "PaymentRecord", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/align-justify.svg", @@ -3300,6 +3470,7 @@ "primaryKeysString": "Id", "masterProperties": { "title": { + "auditType": "NONE", "dataName": "PAYMENTRECORD_DATE", "dataNullable": false, "dataOrderBy": "DESC", @@ -3317,6 +3488,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3327,6 +3499,7 @@ }, "properties": [ { + "auditType": "NONE", "dataName": "PAYMENTRECORD_VALOR", "dataNullable": false, "dataType": "DATE", @@ -3343,6 +3516,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3352,6 +3526,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "PAYMENTRECORD_COMPANYIBAN", "dataNullable": true, @@ -3369,6 +3544,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3379,6 +3555,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "PAYMENTRECORD_COUNTERPARTYIBAN", "dataNullable": true, @@ -3396,6 +3573,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3406,6 +3584,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "PAYMENTRECORD_COUNTERPARTYNAME", "dataNullable": true, @@ -3423,6 +3602,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3433,6 +3613,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "PAYMENTRECORD_AMOUNT", "dataNullable": true, @@ -3452,6 +3633,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3460,6 +3642,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_CURRENCY", "dataNullable": true, "dataType": "INTEGER", @@ -3482,6 +3665,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", @@ -3490,6 +3674,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "PAYMENTRECORD_REASON", "dataNullable": true, @@ -3507,6 +3692,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3517,6 +3703,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "PAYMENTRECORD_DESCRIPTION", "dataNullable": true, @@ -3534,6 +3721,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3544,6 +3732,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_COMPANY", "dataNullable": true, "dataType": "INTEGER", @@ -3566,6 +3755,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", @@ -3574,6 +3764,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_PAYMENTRECORDDIRECTION", "dataNullable": true, "dataType": "INTEGER", @@ -3596,6 +3787,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "PaymentRecordDirection", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts", @@ -3604,36 +3796,7 @@ "inputRule": "" }, { - "dataName": "PAYMENTRECORD_PAYMENTSTATUS", - "dataNullable": true, - "dataType": "INTEGER", - "description": "", - "name": "PaymentStatus", - "tooltip": "", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "Name", - "widgetIsMajor": true, - "widgetLength": "20", - "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "PaymentRecord_PaymentStatus", - "relationshipEntityName": "PaymentStatus", - "relationshipEntityPerspectiveName": "Settings", - "relationshipEntityPerspectiveLabel": "Entities", - "dataNotNull": false, - "dataAutoIncrement": false, - "dataPrimaryKey": false, - "dataUnique": false, - "isRequiredProperty": false, - "isCalculatedProperty": false, - "widgetLabel": "PaymentStatus", - "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts", - "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts", - "dataTypeJava": "int", - "dataTypeTypescript": "number", - "inputRule": "" - }, - { + "auditType": "NONE", "dataName": "PAYMENTRECORD_PAYMENTTYPE", "dataNullable": true, "dataType": "INTEGER", @@ -3656,6 +3819,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "PaymentType", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts", @@ -3664,6 +3828,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "PAYMENTRECORD_UUID", @@ -3682,6 +3847,7 @@ "dataAutoIncrement": false, "dataPrimaryKey": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3692,6 +3858,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "PAYMENTRECORD_REFERENCE", "dataNullable": true, @@ -3709,6 +3876,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3719,6 +3887,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_DELETED", "dataNullable": true, "dataType": "BOOLEAN", @@ -3735,6 +3904,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Deleted", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3750,6 +3920,7 @@ { "properties": [ { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": true, @@ -3768,6 +3939,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3776,6 +3948,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "3", @@ -3795,6 +3968,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Code", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3805,6 +3979,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "127", @@ -3824,6 +3999,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3834,6 +4010,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "3", @@ -3853,6 +4030,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Numeric", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3863,6 +4041,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataName": "CURRENCY_ROUNDING", @@ -3881,6 +4060,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Rounding", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3889,6 +4069,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataName": "CURRENCY_BASE", @@ -3907,6 +4088,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Base", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3915,6 +4097,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataName": "CURRENCY_RATE", @@ -3933,6 +4116,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Rate", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -3953,6 +4137,7 @@ "menuIndex": "100", "menuKey": "currency", "menuLabel": "Currency", + "multilingual": "false", "name": "Currency", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/dollar-alt.svg", @@ -3976,6 +4161,7 @@ { "properties": [ { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": true, @@ -3994,6 +4180,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4002,6 +4189,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "100", @@ -4021,6 +4209,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4031,6 +4220,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "50", @@ -4050,6 +4240,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Manager", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4060,6 +4251,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "100", @@ -4079,6 +4271,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Email", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4089,6 +4282,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "20", @@ -4108,6 +4302,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Phone", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4118,6 +4313,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "200", @@ -4137,6 +4333,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Address", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4147,6 +4344,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "20", @@ -4166,6 +4364,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "PostCode", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4176,6 +4375,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataName": "COMPANY_CITY", @@ -4198,6 +4398,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "City", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Cities/undefinedService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Cities/undefinedController.ts", @@ -4206,6 +4407,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataName": "COMPANY_COUNTRY", @@ -4228,6 +4430,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Country", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Countries/undefinedService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Countries/undefinedController.ts", @@ -4236,6 +4439,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "20", @@ -4255,6 +4459,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "TIN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4265,6 +4470,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "22", @@ -4284,6 +4490,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "IBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4306,6 +4513,7 @@ "menuIndex": "100", "menuKey": "company", "menuLabel": "Company", + "multilingual": "false", "name": "Company", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/university.svg", @@ -4330,6 +4538,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": true, "dataName": "PAYMENTRECORDDIRECTION_ID", "dataNullable": true, @@ -4346,6 +4555,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4354,6 +4564,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "PAYMENTRECORDDIRECTION_NAME", "dataNullable": true, @@ -4371,6 +4582,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4394,6 +4606,7 @@ "menuIndex": "100", "menuKey": "paymentrecorddirection", "menuLabel": "PaymentRecordDirection", + "multilingual": "false", "name": "PaymentRecordDirection", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/copy.svg", @@ -4416,92 +4629,7 @@ { "properties": [ { - "dataAutoIncrement": true, - "dataName": "PAYMENTSTATUS_ID", - "dataNullable": true, - "dataPrimaryKey": true, - "dataType": "INTEGER", - "description": "", - "name": "Id", - "tooltip": "", - "widgetIsMajor": true, - "widgetLength": "20", - "widgetSize": "", - "widgetType": "TEXTBOX", - "dataNotNull": false, - "dataUnique": false, - "isRequiredProperty": false, - "isCalculatedProperty": false, - "widgetLabel": "Id", - "widgetDropdownUrl": "", - "widgetDropdownControllerUrl": "", - "dataTypeJava": "int", - "dataTypeTypescript": "number", - "inputRule": "" - }, - { - "dataLength": "20", - "dataName": "PAYMENTSTATUS_NAME", - "dataNullable": true, - "dataType": "VARCHAR", - "description": "", - "name": "Name", - "tooltip": "", - "widgetIsMajor": true, - "widgetLength": "20", - "widgetSize": "", - "widgetType": "TEXTBOX", - "dataNotNull": false, - "dataAutoIncrement": false, - "dataPrimaryKey": false, - "dataUnique": false, - "isRequiredProperty": false, - "isCalculatedProperty": false, - "widgetLabel": "Name", - "widgetDropdownUrl": "", - "widgetDropdownControllerUrl": "", - "dataTypeJava": "string", - "dataTypeTypescript": "string", - "minLength": 0, - "maxLength": 20, - "inputRule": "" - } - ], - "caption": "Manage entity PaymentStatus", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"CODBEX_PAYMENTSTATUS\"", - "dataName": "PAYMENTSTATUS", - "dataQuery": "", - "description": "Manage entity PaymentStatus", - "feedPassword": "YWRtaW4=", - "feedUsername": "YWRtaW4=", - "generateDefaultRoles": "true", - "generateReport": "false", - "icon": "/services/web/resources/unicons/file.svg", - "menuIndex": "100", - "menuKey": "paymentstatus", - "menuLabel": "PaymentStatus", - "name": "PaymentStatus", - "perspectiveHeader": "", - "perspectiveIcon": "/services/web/resources/unicons/copy.svg", - "perspectiveName": "Settings", - "perspectiveNavId": "", - "perspectiveOrder": "100", - "perspectiveRole": "", - "roleRead": "codbex-payments.Settings.PaymentStatusReadOnly", - "roleWrite": "codbex-payments.Settings.PaymentStatusFullAccess", - "title": "PaymentStatus", - "tooltip": "PaymentStatus", - "type": "SETTING", - "dataSource": "DefaultDB", - "referencedProjections": [], - "primaryKeys": [ - "Id" - ], - "primaryKeysString": "Id" - }, - { - "properties": [ - { + "auditType": "NONE", "dataAutoIncrement": true, "dataName": "PAYMENTTYPE_ID", "dataNullable": true, @@ -4518,6 +4646,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4526,6 +4655,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "PAYMENTTYPE_NAME", "dataNullable": true, @@ -4543,6 +4673,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4566,6 +4697,7 @@ "menuIndex": "100", "menuKey": "paymenttype", "menuLabel": "PaymentType", + "multilingual": "false", "name": "PaymentType", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/copy.svg", @@ -4588,6 +4720,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": true, "dataName": "PAYMENTMETHOD_ID", "dataNullable": true, @@ -4604,6 +4737,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4612,6 +4746,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "PAYMENTMETHOD_NAME", "dataNullable": true, @@ -4629,6 +4764,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4651,6 +4787,7 @@ "menuIndex": "100", "menuKey": "paymentmethod", "menuLabel": "PaymentMethod", + "multilingual": "false", "name": "PaymentMethod", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/archive.svg", @@ -4674,6 +4811,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": true, "dataName": "CUSTOMER_ID", "dataNullable": true, @@ -4690,6 +4828,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4698,6 +4837,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "CUSTOMER_NAME", "dataNullable": true, @@ -4715,6 +4855,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4725,6 +4866,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "200", "dataName": "CUSTOMER_ADDRESS", "dataNullable": true, @@ -4742,6 +4884,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Address", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4752,6 +4895,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "CUSTOMER_POSTALCODE", "dataNullable": true, @@ -4769,6 +4913,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "PostalCode", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4779,6 +4924,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "CUSTOMER_EMAIL", "dataNullable": true, @@ -4796,6 +4942,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Email", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4806,6 +4953,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "CUSTOMER_PHONE", "dataNullable": true, @@ -4823,6 +4971,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Phone", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4833,6 +4982,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "CUSTOMER_FAX", "dataNullable": true, @@ -4850,6 +5000,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Fax", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4860,6 +5011,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "CUSTOMER_COUNTRY", "dataNullable": true, "dataType": "INTEGER", @@ -4881,6 +5033,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Country", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Countries/undefinedService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Countries/undefinedController.ts", @@ -4889,6 +5042,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "CUSTOMER_CITY", "dataNullable": true, "dataType": "INTEGER", @@ -4910,6 +5064,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "City", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Cities/undefinedService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Cities/undefinedController.ts", @@ -4918,6 +5073,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "CUSTOMER_TIN", "dataNullable": true, @@ -4935,6 +5091,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "TIN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4945,6 +5102,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "CUSTOMER_IBAN", "dataNullable": true, @@ -4962,6 +5120,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "IBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -4984,6 +5143,7 @@ "menuIndex": "100", "menuKey": "customer", "menuLabel": "Customer", + "multilingual": "false", "name": "Customer", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/user-plus.svg", @@ -5008,6 +5168,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": true, "dataName": "PAYMENTADJUSTMENT_ID", "dataNullable": true, @@ -5024,6 +5185,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5032,6 +5194,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTADJUSTMENT_DATE", "dataNullable": true, "dataType": "DATE", @@ -5048,6 +5211,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5057,6 +5221,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTADJUSTMENT_VALOR", "dataNullable": true, "dataType": "DATE", @@ -5073,6 +5238,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5082,6 +5248,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "PAYMENTADJUSTMENT_AMOUNT", "dataNullable": true, @@ -5101,6 +5268,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5109,6 +5277,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTADJUSTMENT_CURRENCY", "dataNullable": true, "dataType": "INTEGER", @@ -5131,6 +5300,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", @@ -5139,6 +5309,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTADJUSTMENT_COMPANY", "dataNullable": true, "dataType": "INTEGER", @@ -5161,6 +5332,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", @@ -5169,6 +5341,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "PAYMENTADJUSTMENT_REASON", "dataNullable": true, @@ -5186,6 +5359,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5196,6 +5370,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "PAYMENTADJUSTMENT_UUID", @@ -5214,6 +5389,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5238,6 +5414,7 @@ "menuIndex": "100", "menuKey": "paymentadjustment", "menuLabel": "PaymentAdjustment", + "multilingual": "false", "name": "PaymentAdjustment", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/paypal.svg", @@ -5270,6 +5447,7 @@ "primaryKeysString": "Id", "masterProperties": { "title": { + "auditType": "NONE", "dataName": "PAYMENTADJUSTMENT_DATE", "dataNullable": true, "dataType": "DATE", @@ -5286,6 +5464,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5296,6 +5475,7 @@ }, "properties": [ { + "auditType": "NONE", "dataName": "PAYMENTADJUSTMENT_VALOR", "dataNullable": true, "dataType": "DATE", @@ -5312,6 +5492,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5321,6 +5502,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "PAYMENTADJUSTMENT_AMOUNT", "dataNullable": true, @@ -5340,6 +5522,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5348,6 +5531,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTADJUSTMENT_CURRENCY", "dataNullable": true, "dataType": "INTEGER", @@ -5370,6 +5554,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", @@ -5378,6 +5563,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "PAYMENTADJUSTMENT_COMPANY", "dataNullable": true, "dataType": "INTEGER", @@ -5400,6 +5586,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", @@ -5408,6 +5595,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "PAYMENTADJUSTMENT_REASON", "dataNullable": true, @@ -5425,6 +5613,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5435,6 +5624,7 @@ "inputRule": "" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "PAYMENTADJUSTMENT_UUID", @@ -5453,6 +5643,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isRequiredProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5470,6 +5661,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": true, "dataName": "SUPPLIER_ID", "dataNullable": true, @@ -5486,6 +5678,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5494,6 +5687,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "SUPPLIER_NAME", "dataNullable": true, @@ -5511,6 +5705,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5521,6 +5716,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "200", "dataName": "SUPPLIER_ADDRESS", "dataNullable": true, @@ -5538,6 +5734,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Address", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5548,6 +5745,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "SUPPLIER_POSTALCODE", "dataNullable": true, @@ -5565,6 +5763,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "PostalCode", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5575,6 +5774,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "SUPPLIER_EMAIL", "dataNullable": true, @@ -5592,6 +5792,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Email", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5602,6 +5803,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "SUPPLIER_PHONE", "dataNullable": true, @@ -5619,6 +5821,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Phone", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5629,6 +5832,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "SUPPLIER_FAX", "dataNullable": true, @@ -5646,6 +5850,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Fax", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5656,6 +5861,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "SUPPLIER_COUNTRY", "dataNullable": true, "dataType": "INTEGER", @@ -5677,6 +5883,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "Country", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Countries/undefinedService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Countries/undefinedController.ts", @@ -5685,6 +5892,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataName": "SUPPLIER_CITY", "dataNullable": true, "dataType": "INTEGER", @@ -5706,6 +5914,7 @@ "dataPrimaryKey": false, "dataUnique": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "City", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Cities/undefinedService.ts", "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Cities/undefinedController.ts", @@ -5714,6 +5923,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "SUPPLIER_TIN", "dataNullable": true, @@ -5731,6 +5941,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "TIN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5741,6 +5952,7 @@ "inputRule": "" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "SUPPLIER_IBAN", "dataNullable": true, @@ -5758,6 +5970,7 @@ "dataUnique": false, "isRequiredProperty": false, "isCalculatedProperty": false, + "isReadOnlyProperty": false, "widgetLabel": "IBAN", "widgetDropdownUrl": "", "widgetDropdownControllerUrl": "", @@ -5780,6 +5993,7 @@ "menuIndex": "100", "menuKey": "supplier", "menuLabel": "Supplier", + "multilingual": "false", "name": "Supplier", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/user-minus.svg", diff --git a/codbex-payments/codbex-payments.model b/codbex-payments/codbex-payments.model index 4169a9b..425fe08 100644 --- a/codbex-payments/codbex-payments.model +++ b/codbex-payments/codbex-payments.model @@ -4,6 +4,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": "true", "dataName": "CUSTOMERPAYMENT_ID", "dataNullable": "true", @@ -18,6 +19,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_CUSTOMER", "dataNullable": "true", "dataType": "INTEGER", @@ -37,6 +39,7 @@ "relationshipEntityPerspectiveLabel": "Customers" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_DATE", "dataNullable": "false", "dataOrderBy": "DESC", @@ -51,6 +54,7 @@ "widgetType": "DATE" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_VALOR", "dataNullable": "false", "dataType": "DATE", @@ -64,6 +68,7 @@ "widgetType": "DATE" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "CUSTOMERPAYMENT_COMPANYIBAN", "dataNullable": "true", @@ -77,6 +82,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "CUSTOMERPAYMENT_COUNTERPARTYIBAN", "dataNullable": "true", @@ -90,6 +96,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "CUSTOMERPAYMENT_COUNTERPARTYNAME", "dataNullable": "true", @@ -103,6 +110,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "CUSTOMERPAYMENT_AMOUNT", "dataNullable": "false", @@ -119,6 +127,7 @@ "widgetType": "NUMBER" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_CURRENCY", "dataNullable": "false", "dataType": "INTEGER", @@ -138,6 +147,7 @@ "relationshipEntityPerspectiveLabel": "Entities" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "CUSTOMERPAYMENT_REASON", "dataNullable": "false", @@ -152,6 +162,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "CUSTOMERPAYMENT_DESCRIPTION", "dataNullable": "true", @@ -165,6 +176,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_COMPANY", "dataNullable": "true", "dataType": "INTEGER", @@ -183,6 +195,7 @@ "relationshipEntityPerspectiveLabel": "Entities" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(18)", "dataLength": "20", "dataName": "CUSTOMERPAYMENT_NAME", @@ -198,6 +211,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "CUSTOMERPAYMENT_UUID", @@ -214,6 +228,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "CUSTOMERPAYMENT_REFERENCE", "dataNullable": "true", @@ -227,6 +242,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataName": "CUSTOMERPAYMENT_PAYMENTMETHOD", "dataNullable": "true", "dataType": "INTEGER", @@ -260,6 +276,7 @@ "menuIndex": "100", "menuKey": "customerpayment", "menuLabel": "CustomerPayment", + "multilingual": "false", "name": "CustomerPayment", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/usd-square.svg", @@ -277,6 +294,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": "true", "dataName": "SUPPLIERPAYMENT_ID", "dataNullable": "true", @@ -291,6 +309,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_SUPPLIER", "dataNullable": "true", "dataType": "INTEGER", @@ -309,6 +328,7 @@ "relationshipEntityPerspectiveLabel": "Suppliers" }, { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_DATE", "dataNullable": "false", "dataOrderBy": "DESC", @@ -323,6 +343,7 @@ "widgetType": "DATE" }, { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_VALOR", "dataNullable": "false", "dataType": "DATE", @@ -336,6 +357,7 @@ "widgetType": "DATE" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "SUPPLIERPAYMENT_COMPANYIBAN", "dataNullable": "true", @@ -349,6 +371,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "SUPPLIERPAYMENT_COUNTERPARTYIBAN", "dataNullable": "true", @@ -362,6 +385,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "SUPPLIERPAYMENT_COUNTERPARTYNAME", "dataNullable": "true", @@ -375,6 +399,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "SUPPLIERPAYMENT_AMOUNT", "dataNullable": "false", @@ -391,6 +416,7 @@ "widgetType": "NUMBER" }, { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_CURRENCY", "dataNullable": "false", "dataType": "INTEGER", @@ -410,6 +436,7 @@ "relationshipEntityPerspectiveLabel": "Entities" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "SUPPLIERPAYMENT_REASON", "dataNullable": "false", @@ -424,6 +451,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "SUPPLIERPAYMENT_DESCRIPTION", "dataNullable": "true", @@ -437,6 +465,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataName": "SUPPLIERPAYMENT_COMPANY", "dataNullable": "true", "dataType": "INTEGER", @@ -455,6 +484,7 @@ "relationshipEntityPerspectiveLabel": "Entities" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(19)", "dataLength": "20", "dataName": "SUPPLIERPAYMENT_NAME", @@ -470,6 +500,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "SUPPLIERPAYMENT_UUID", @@ -486,6 +517,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "SUPPLIERPAYMENT_REFERENCE", "dataNullable": "true", @@ -514,6 +546,7 @@ "menuIndex": "100", "menuKey": "supplierpayment", "menuLabel": "SupplierPayment", + "multilingual": "false", "name": "SupplierPayment", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/box.svg", @@ -531,6 +564,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": "true", "dataName": "EMPLOYEEPAYMENT_ID", "dataNullable": "true", @@ -545,6 +579,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataName": "EMPLOYEEPAYMENT_DATE", "dataNullable": "false", "dataOrderBy": "DESC", @@ -559,6 +594,7 @@ "widgetType": "DATE" }, { + "auditType": "NONE", "dataName": "EMPLOYEEPAYMENT_VALOR", "dataNullable": "false", "dataType": "DATE", @@ -572,6 +608,7 @@ "widgetType": "DATE" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "EMPLOYEEPAYMENT_COMPANYIBAN", "dataNullable": "true", @@ -585,6 +622,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "EMPLOYEEPAYMENT_COUNTERPARTYIBAN", "dataNullable": "true", @@ -598,6 +636,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "EMPLOYEEPAYMENT_COUNTERPARTYNAME", "dataNullable": "true", @@ -611,6 +650,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "EMPLOYEEPAYMENT_AMOUNT", "dataNullable": "false", @@ -627,6 +667,7 @@ "widgetType": "NUMBER" }, { + "auditType": "NONE", "dataName": "EMPLOYEEPAYMENT_CURRENCY", "dataNullable": "false", "dataType": "INTEGER", @@ -646,6 +687,7 @@ "relationshipEntityPerspectiveLabel": "Entities" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "EMPLOYEEPAYMENT_REASON", "dataNullable": "false", @@ -660,6 +702,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "EMPLOYEEPAYMENT_DESCRIPTION", "dataNullable": "true", @@ -673,6 +716,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataName": "EMPLOYEEPAYMENT_COMPANY", "dataNullable": "true", "dataType": "INTEGER", @@ -691,6 +735,7 @@ "relationshipEntityPerspectiveLabel": "Entities" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(20)", "dataLength": "20", "dataName": "EMPLOYEEPAYMENT_NAME", @@ -706,6 +751,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "EMPLOYEEPAYMENT_UUID", @@ -722,6 +768,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "EMPLOYEEPAYMENT_REFERENCE", "dataNullable": "true", @@ -750,6 +797,7 @@ "menuIndex": "100", "menuKey": "employeepayment", "menuLabel": "EmployeePayment", + "multilingual": "false", "name": "EmployeePayment", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/folder-check.svg", @@ -767,6 +815,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": "true", "dataName": "PAYMENTRECORD_ID", "dataNullable": "true", @@ -781,6 +830,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_DATE", "dataNullable": "false", "dataOrderBy": "DESC", @@ -795,6 +845,7 @@ "widgetType": "DATE" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_VALOR", "dataNullable": "false", "dataType": "DATE", @@ -808,6 +859,7 @@ "widgetType": "DATE" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "PAYMENTRECORD_COMPANYIBAN", "dataNullable": "true", @@ -821,6 +873,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "34", "dataName": "PAYMENTRECORD_COUNTERPARTYIBAN", "dataNullable": "true", @@ -834,6 +887,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "PAYMENTRECORD_COUNTERPARTYNAME", "dataNullable": "true", @@ -847,6 +901,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "PAYMENTRECORD_AMOUNT", "dataNullable": "true", @@ -862,6 +917,7 @@ "widgetType": "NUMBER" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_CURRENCY", "dataNullable": "true", "dataType": "INTEGER", @@ -880,6 +936,7 @@ "relationshipEntityPerspectiveLabel": "Entities" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "PAYMENTRECORD_REASON", "dataNullable": "true", @@ -893,6 +950,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "PAYMENTRECORD_DESCRIPTION", "dataNullable": "true", @@ -906,6 +964,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_COMPANY", "dataNullable": "true", "dataType": "INTEGER", @@ -924,6 +983,7 @@ "relationshipEntityPerspectiveLabel": "Entities" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_PAYMENTRECORDDIRECTION", "dataNullable": "true", "dataType": "INTEGER", @@ -942,24 +1002,7 @@ "relationshipEntityPerspectiveLabel": "Entities" }, { - "dataName": "PAYMENTRECORD_PAYMENTSTATUS", - "dataNullable": "true", - "dataType": "INTEGER", - "description": "", - "name": "PaymentStatus", - "tooltip": "", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "Name", - "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "PaymentRecord_PaymentStatus", - "relationshipEntityName": "PaymentStatus", - "relationshipEntityPerspectiveName": "Settings", - "relationshipEntityPerspectiveLabel": "Entities" - }, - { + "auditType": "NONE", "dataName": "PAYMENTRECORD_PAYMENTTYPE", "dataNullable": "true", "dataType": "INTEGER", @@ -978,6 +1021,7 @@ "relationshipEntityPerspectiveLabel": "Entities" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "PAYMENTRECORD_UUID", @@ -994,6 +1038,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "PAYMENTRECORD_REFERENCE", "dataNullable": "true", @@ -1007,6 +1052,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataName": "PAYMENTRECORD_DELETED", "dataNullable": "true", "dataType": "BOOLEAN", @@ -1033,6 +1079,7 @@ "menuIndex": "100", "menuKey": "paymentrecord", "menuLabel": "PaymentRecord", + "multilingual": "false", "name": "PaymentRecord", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/align-justify.svg", @@ -1050,6 +1097,7 @@ { "properties": [ { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": "true", @@ -1066,6 +1114,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "3", @@ -1081,6 +1130,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "127", @@ -1096,6 +1146,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "3", @@ -1111,6 +1162,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataName": "CURRENCY_ROUNDING", @@ -1125,6 +1177,7 @@ "widgetType": "NUMBER" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataName": "CURRENCY_BASE", @@ -1139,6 +1192,7 @@ "widgetType": "CHECKBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataName": "CURRENCY_RATE", @@ -1165,6 +1219,7 @@ "menuIndex": "100", "menuKey": "currency", "menuLabel": "Currency", + "multilingual": "false", "name": "Currency", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/dollar-alt.svg", @@ -1182,6 +1237,7 @@ { "properties": [ { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataAutoIncrement": "true", @@ -1198,6 +1254,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "100", @@ -1214,6 +1271,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "50", @@ -1229,6 +1287,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "100", @@ -1245,6 +1304,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "20", @@ -1260,6 +1320,7 @@ "widgetType": "TEL" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "200", @@ -1276,6 +1337,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "20", @@ -1292,6 +1354,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataName": "COMPANY_CITY", @@ -1311,6 +1374,7 @@ "widgetType": "DROPDOWN" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataName": "COMPANY_COUNTRY", @@ -1330,6 +1394,7 @@ "widgetType": "DROPDOWN" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "20", @@ -1345,6 +1410,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "", "calculatedPropertyExpressionUpdate": "", "dataLength": "22", @@ -1372,6 +1438,7 @@ "menuIndex": "100", "menuKey": "company", "menuLabel": "Company", + "multilingual": "false", "name": "Company", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/university.svg", @@ -1389,6 +1456,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": "true", "dataName": "PAYMENTRECORDDIRECTION_ID", "dataNullable": "true", @@ -1403,6 +1471,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "PAYMENTRECORDDIRECTION_NAME", "dataNullable": "true", @@ -1430,6 +1499,7 @@ "menuIndex": "100", "menuKey": "paymentrecorddirection", "menuLabel": "PaymentRecordDirection", + "multilingual": "false", "name": "PaymentRecordDirection", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/copy.svg", @@ -1447,64 +1517,7 @@ { "properties": [ { - "dataAutoIncrement": "true", - "dataName": "PAYMENTSTATUS_ID", - "dataNullable": "true", - "dataPrimaryKey": "true", - "dataType": "INTEGER", - "description": "", - "name": "Id", - "tooltip": "", - "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "", - "widgetType": "TEXTBOX" - }, - { - "dataLength": "20", - "dataName": "PAYMENTSTATUS_NAME", - "dataNullable": "true", - "dataType": "VARCHAR", - "description": "", - "name": "Name", - "tooltip": "", - "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "", - "widgetType": "TEXTBOX" - } - ], - "caption": "Manage entity PaymentStatus", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}PAYMENTSTATUS\"", - "dataName": "PAYMENTSTATUS", - "dataQuery": "", - "description": "Manage entity PaymentStatus", - "feedPassword": "YWRtaW4=", - "feedUsername": "YWRtaW4=", - "generateDefaultRoles": "true", - "generateReport": "false", - "icon": "/services/web/resources/unicons/file.svg", - "layoutType": "MANAGE", - "menuIndex": "100", - "menuKey": "paymentstatus", - "menuLabel": "PaymentStatus", - "name": "PaymentStatus", - "perspectiveHeader": "", - "perspectiveIcon": "/services/web/resources/unicons/copy.svg", - "perspectiveLabel": "Entities", - "perspectiveName": "Settings", - "perspectiveNavId": "", - "perspectiveOrder": "100", - "perspectiveRole": "", - "roleRead": "codbex-payments.Settings.PaymentStatusReadOnly", - "roleWrite": "codbex-payments.Settings.PaymentStatusFullAccess", - "title": "PaymentStatus", - "tooltip": "PaymentStatus", - "type": "SETTING" - }, - { - "properties": [ - { + "auditType": "NONE", "dataAutoIncrement": "true", "dataName": "PAYMENTTYPE_ID", "dataNullable": "true", @@ -1519,6 +1532,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "PAYMENTTYPE_NAME", "dataNullable": "true", @@ -1546,6 +1560,7 @@ "menuIndex": "100", "menuKey": "paymenttype", "menuLabel": "PaymentType", + "multilingual": "false", "name": "PaymentType", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/copy.svg", @@ -1563,6 +1578,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": "true", "dataName": "PAYMENTMETHOD_ID", "dataNullable": "true", @@ -1577,6 +1593,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "PAYMENTMETHOD_NAME", "dataNullable": "true", @@ -1602,6 +1619,7 @@ "menuIndex": "100", "menuKey": "paymentmethod", "menuLabel": "PaymentMethod", + "multilingual": "false", "name": "PaymentMethod", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/archive.svg", @@ -1619,6 +1637,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": "true", "dataName": "CUSTOMER_ID", "dataNullable": "true", @@ -1633,6 +1652,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "CUSTOMER_NAME", "dataNullable": "true", @@ -1647,6 +1667,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "200", "dataName": "CUSTOMER_ADDRESS", "dataNullable": "true", @@ -1661,6 +1682,7 @@ "widgetType": "TEXTAREA" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "CUSTOMER_POSTALCODE", "dataNullable": "true", @@ -1674,6 +1696,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "CUSTOMER_EMAIL", "dataNullable": "true", @@ -1688,6 +1711,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "CUSTOMER_PHONE", "dataNullable": "true", @@ -1701,6 +1725,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "CUSTOMER_FAX", "dataNullable": "true", @@ -1714,6 +1739,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataName": "CUSTOMER_COUNTRY", "dataNullable": "true", "dataType": "INTEGER", @@ -1732,6 +1758,7 @@ "widgetType": "DROPDOWN" }, { + "auditType": "NONE", "dataName": "CUSTOMER_CITY", "dataNullable": "true", "dataType": "INTEGER", @@ -1750,6 +1777,7 @@ "widgetType": "DROPDOWN" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "CUSTOMER_TIN", "dataNullable": "true", @@ -1763,6 +1791,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "CUSTOMER_IBAN", "dataNullable": "true", @@ -1788,6 +1817,7 @@ "menuIndex": "100", "menuKey": "customer", "menuLabel": "Customer", + "multilingual": "false", "name": "Customer", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/user-plus.svg", @@ -1805,6 +1835,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": "true", "dataName": "PAYMENTADJUSTMENT_ID", "dataNullable": "true", @@ -1819,6 +1850,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataName": "PAYMENTADJUSTMENT_DATE", "dataNullable": "true", "dataType": "DATE", @@ -1832,6 +1864,7 @@ "widgetType": "DATE" }, { + "auditType": "NONE", "dataName": "PAYMENTADJUSTMENT_VALOR", "dataNullable": "true", "dataType": "DATE", @@ -1845,6 +1878,7 @@ "widgetType": "DATE" }, { + "auditType": "NONE", "dataLength": "16", "dataName": "PAYMENTADJUSTMENT_AMOUNT", "dataNullable": "true", @@ -1861,6 +1895,7 @@ "widgetType": "NUMBER" }, { + "auditType": "NONE", "dataName": "PAYMENTADJUSTMENT_CURRENCY", "dataNullable": "true", "dataType": "INTEGER", @@ -1880,6 +1915,7 @@ "relationshipEntityPerspectiveLabel": "Entities" }, { + "auditType": "NONE", "dataName": "PAYMENTADJUSTMENT_COMPANY", "dataNullable": "true", "dataType": "INTEGER", @@ -1899,6 +1935,7 @@ "relationshipEntityPerspectiveLabel": "Entities" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "PAYMENTADJUSTMENT_REASON", "dataNullable": "true", @@ -1912,6 +1949,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "calculatedPropertyExpressionCreate": "require(\"sdk/utils/uuid\").random()", "dataLength": "36", "dataName": "PAYMENTADJUSTMENT_UUID", @@ -1941,6 +1979,7 @@ "menuIndex": "100", "menuKey": "paymentadjustment", "menuLabel": "PaymentAdjustment", + "multilingual": "false", "name": "PaymentAdjustment", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/paypal.svg", @@ -1958,6 +1997,7 @@ { "properties": [ { + "auditType": "NONE", "dataAutoIncrement": "true", "dataName": "SUPPLIER_ID", "dataNullable": "true", @@ -1972,6 +2012,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "SUPPLIER_NAME", "dataNullable": "true", @@ -1986,6 +2027,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "200", "dataName": "SUPPLIER_ADDRESS", "dataNullable": "true", @@ -2000,6 +2042,7 @@ "widgetType": "TEXTAREA" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "SUPPLIER_POSTALCODE", "dataNullable": "true", @@ -2013,6 +2056,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "100", "dataName": "SUPPLIER_EMAIL", "dataNullable": "true", @@ -2027,6 +2071,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "SUPPLIER_PHONE", "dataNullable": "true", @@ -2040,6 +2085,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "SUPPLIER_FAX", "dataNullable": "true", @@ -2053,6 +2099,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataName": "SUPPLIER_COUNTRY", "dataNullable": "true", "dataType": "INTEGER", @@ -2071,6 +2118,7 @@ "widgetType": "DROPDOWN" }, { + "auditType": "NONE", "dataName": "SUPPLIER_CITY", "dataNullable": "true", "dataType": "INTEGER", @@ -2089,6 +2137,7 @@ "widgetType": "DROPDOWN" }, { + "auditType": "NONE", "dataLength": "20", "dataName": "SUPPLIER_TIN", "dataNullable": "true", @@ -2102,6 +2151,7 @@ "widgetType": "TEXTBOX" }, { + "auditType": "NONE", "dataLength": "36", "dataName": "SUPPLIER_IBAN", "dataNullable": "true", @@ -2127,6 +2177,7 @@ "menuIndex": "100", "menuKey": "supplier", "menuLabel": "Supplier", + "multilingual": "false", "name": "Supplier", "perspectiveHeader": "", "perspectiveIcon": "/services/web/resources/unicons/user-minus.svg", diff --git a/codbex-payments/data/payment-types.csv b/codbex-payments/data/payment-types.csv deleted file mode 100644 index a4f8ee9..0000000 --- a/codbex-payments/data/payment-types.csv +++ /dev/null @@ -1,4 +0,0 @@ -"PAYMENTTYPE_ID","PAYMENTTYPE_NAME" -"1","Received" -"2","Sent" -"3","Internal Transfer" \ No newline at end of file diff --git a/codbex-payments/data/payments.csvim b/codbex-payments/data/payments.csvim deleted file mode 100644 index 0ea5dd8..0000000 --- a/codbex-payments/data/payments.csvim +++ /dev/null @@ -1,15 +0,0 @@ -{ - "files": [ - { - "table": "CODBEX_PAYMENTTYPE", - "schema": "PUBLIC", - "file": "/codbex-payments/data/payment-types.csv", - "header": true, - "useHeaderNames": true, - "delimField": ",", - "delimEnclosing": "\"", - "distinguishEmptyFromNull": true, - "version": "1.0" - } - ] -} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts b/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts deleted file mode 100644 index 6b88c85..0000000 --- a/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts +++ /dev/null @@ -1,175 +0,0 @@ -import { Controller, Get, Post, Put, Delete, Documentation, request, response } from '@aerokit/sdk/http' -import { HttpUtils } from "@aerokit/sdk/http/utils"; -import { ValidationError } from '@aerokit/sdk/http/errors' -import { ForbiddenError } from '@aerokit/sdk/http/errors' -import { user } from '@aerokit/sdk/security' -import { Options } from '@aerokit/sdk/db' -import { Extensions } from "@aerokit/sdk/extensions" -import { Injected, Inject } from '@aerokit/sdk/component' -import { PaymentStatusRepository } from '../../data/Settings/PaymentStatusRepository' -import { PaymentStatusEntity } from '../../data/Settings/PaymentStatusEntity' - -const validationModules = await Extensions.loadExtensionModules('codbex-payments-Settings-PaymentStatus', ['validate']); - -@Controller -@Documentation('codbex-payments - PaymentStatus Controller') -@Injected() -class PaymentStatusController { - - @Inject('PaymentStatusRepository') - private readonly repository!: PaymentStatusRepository; - - @Get('/') - @Documentation('Get All PaymentStatus') - public getAll(_: any, ctx: any): PaymentStatusEntity[] { - try { - this.checkPermissions('read'); - const options: Options = { - limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20, - offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0, - language: request.getLocale().slice(0, 2) - }; - - return this.repository.findAll(options); - } catch (error: any) { - this.handleError(error); - } - return undefined as any; - } - - @Post('/') - @Documentation('Create PaymentStatus') - public create(entity: PaymentStatusEntity): PaymentStatusEntity { - try { - this.checkPermissions('write'); - this.validateEntity(entity); - entity.Id = this.repository.create(entity) as any; - response.setHeader('Content-Location', '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts/' + entity.Id); - response.setStatus(response.CREATED); - return entity; - } catch (error: any) { - this.handleError(error); - } - return undefined as any; - } - - @Get('/count') - @Documentation('Count PaymentStatus') - public count(): { count: number } { - try { - this.checkPermissions('read'); - return { count: this.repository.count() }; - } catch (error: any) { - this.handleError(error); - } - return undefined as any; - } - - @Post('/count') - @Documentation('Count PaymentStatus with filter') - public countWithFilter(filter: any): { count: number } { - try { - this.checkPermissions('read'); - return { count: this.repository.count(filter) }; - } catch (error: any) { - this.handleError(error); - } - return undefined as any; - } - - @Post('/search') - @Documentation('Search PaymentStatus') - public search(filter: any): PaymentStatusEntity[] { - try { - this.checkPermissions('read'); - return this.repository.findAll(filter); - } catch (error: any) { - this.handleError(error); - } - return undefined as any; - } - - @Get('/:id') - @Documentation('Get PaymentStatus by id') - public getById(_: any, ctx: any): PaymentStatusEntity { - try { - this.checkPermissions('read'); - const id = parseInt(ctx.pathParameters.id); - const options: Options = { - language: request.getLocale().slice(0, 2) - }; - const entity = this.repository.findById(id, options); - if (entity) { - return entity; - } else { - HttpUtils.sendResponseNotFound('PaymentStatus not found'); - } - } catch (error: any) { - this.handleError(error); - } - return undefined as any; - } - - @Put('/:id') - @Documentation('Update PaymentStatus by id') - public update(entity: PaymentStatusEntity, ctx: any): PaymentStatusEntity { - try { - this.checkPermissions('write'); - const id = parseInt(ctx.pathParameters.id); - entity.Id = id; - this.validateEntity(entity); - this.repository.update(entity); - return entity; - } catch (error: any) { - this.handleError(error); - } - return undefined as any; - } - - @Delete('/:id') - @Documentation('Delete PaymentStatus by id') - public deleteById(_: any, ctx: any): void { - try { - this.checkPermissions('write'); - const id = parseInt(ctx.pathParameters.id); - const entity = this.repository.findById(id); - if (entity) { - this.repository.deleteById(id); - HttpUtils.sendResponseNoContent(); - } else { - HttpUtils.sendResponseNotFound('PaymentStatus not found'); - } - } catch (error: any) { - this.handleError(error); - } - } - - private handleError(error: any) { - if (error.name === 'ForbiddenError') { - HttpUtils.sendForbiddenRequest(error.message); - } else if (error.name === 'ValidationError') { - HttpUtils.sendResponseBadRequest(error.message); - } else { - HttpUtils.sendInternalServerError(error.message); - } - } - - private checkPermissions(operationType: string) { - if (operationType === 'read' && !(user.isInRole('codbex-payments.Settings.PaymentStatusReadOnly') || user.isInRole('codbex-payments.Settings.PaymentStatusFullAccess'))) { - throw new ForbiddenError(); - } - if (operationType === 'write' && !user.isInRole('codbex-payments.Settings.PaymentStatusFullAccess')) { - throw new ForbiddenError(); - } - } - - private validateEntity(entity: any): void { - if (entity.Name?.length > 20) { - throw new ValidationError(`The 'Name' exceeds the maximum length of [20] characters`); - } - for (const next of validationModules) { - next.validate(entity); - } - } - -} diff --git a/codbex-payments/gen/codbex-payments/dao/PaymentRecord/PaymentRecordRepository.ts b/codbex-payments/gen/codbex-payments/dao/PaymentRecord/PaymentRecordRepository.ts index 64fc2bd..d7053da 100644 --- a/codbex-payments/gen/codbex-payments/dao/PaymentRecord/PaymentRecordRepository.ts +++ b/codbex-payments/gen/codbex-payments/dao/PaymentRecord/PaymentRecordRepository.ts @@ -17,7 +17,6 @@ export interface PaymentRecordEntity { Description?: string; Company?: number; PaymentRecordDirection?: number; - PaymentStatus?: number; PaymentType?: number; UUID: string; Reference?: string; @@ -36,7 +35,6 @@ export interface PaymentRecordCreateEntity { readonly Description?: string; readonly Company?: number; readonly PaymentRecordDirection?: number; - readonly PaymentStatus?: number; readonly PaymentType?: number; readonly Reference?: string; readonly Deleted?: boolean; @@ -61,7 +59,6 @@ export interface PaymentRecordEntityOptions { Description?: string | string[]; Company?: number | number[]; PaymentRecordDirection?: number | number[]; - PaymentStatus?: number | number[]; PaymentType?: number | number[]; UUID?: string | string[]; Reference?: string | string[]; @@ -80,7 +77,6 @@ export interface PaymentRecordEntityOptions { Description?: string | string[]; Company?: number | number[]; PaymentRecordDirection?: number | number[]; - PaymentStatus?: number | number[]; PaymentType?: number | number[]; UUID?: string | string[]; Reference?: string | string[]; @@ -99,7 +95,6 @@ export interface PaymentRecordEntityOptions { Description?: string; Company?: number; PaymentRecordDirection?: number; - PaymentStatus?: number; PaymentType?: number; UUID?: string; Reference?: string; @@ -118,7 +113,6 @@ export interface PaymentRecordEntityOptions { Description?: string; Company?: number; PaymentRecordDirection?: number; - PaymentStatus?: number; PaymentType?: number; UUID?: string; Reference?: string; @@ -137,7 +131,6 @@ export interface PaymentRecordEntityOptions { Description?: string; Company?: number; PaymentRecordDirection?: number; - PaymentStatus?: number; PaymentType?: number; UUID?: string; Reference?: string; @@ -156,7 +149,6 @@ export interface PaymentRecordEntityOptions { Description?: string; Company?: number; PaymentRecordDirection?: number; - PaymentStatus?: number; PaymentType?: number; UUID?: string; Reference?: string; @@ -175,7 +167,6 @@ export interface PaymentRecordEntityOptions { Description?: string; Company?: number; PaymentRecordDirection?: number; - PaymentStatus?: number; PaymentType?: number; UUID?: string; Reference?: string; @@ -274,11 +265,6 @@ export class PaymentRecordRepository { column: "PAYMENTRECORD_PAYMENTRECORDDIRECTION", type: "INTEGER", }, - { - name: "PaymentStatus", - column: "PAYMENTRECORD_PAYMENTSTATUS", - type: "INTEGER", - }, { name: "PaymentType", column: "PAYMENTRECORD_PAYMENTTYPE", diff --git a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentStatus.extensionpoint b/codbex-payments/gen/codbex-payments/dao/Settings/PaymentStatus.extensionpoint deleted file mode 100644 index 19c4117..0000000 --- a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentStatus.extensionpoint +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "codbex-payments-Settings-PaymentStatus", - "description": "Extension Point for the codbex-payments-Settings-PaymentStatus entity" -} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentStatusRepository.ts b/codbex-payments/gen/codbex-payments/dao/Settings/PaymentStatusRepository.ts deleted file mode 100644 index 30ea2ae..0000000 --- a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentStatusRepository.ts +++ /dev/null @@ -1,197 +0,0 @@ -import { sql, query } from "@aerokit/sdk/db"; -import { producer } from "@aerokit/sdk/messaging"; -import { extensions } from "@aerokit/sdk/extensions"; -import { dao as daoApi } from "@aerokit/sdk/db"; - -export interface PaymentStatusEntity { - readonly Id: number; - Name?: string; -} - -export interface PaymentStatusCreateEntity { - readonly Name?: string; -} - -export interface PaymentStatusUpdateEntity extends PaymentStatusCreateEntity { - readonly Id: number; -} - -export interface PaymentStatusEntityOptions { - $filter?: { - equals?: { - Id?: number | number[]; - Name?: string | string[]; - }; - notEquals?: { - Id?: number | number[]; - Name?: string | string[]; - }; - contains?: { - Id?: number; - Name?: string; - }; - greaterThan?: { - Id?: number; - Name?: string; - }; - greaterThanOrEqual?: { - Id?: number; - Name?: string; - }; - lessThan?: { - Id?: number; - Name?: string; - }; - lessThanOrEqual?: { - Id?: number; - Name?: string; - }; - }, - $select?: (keyof PaymentStatusEntity)[], - $sort?: string | (keyof PaymentStatusEntity)[], - $order?: 'ASC' | 'DESC', - $offset?: number, - $limit?: number, - $language?: string -} - -export interface PaymentStatusEntityEvent { - readonly operation: 'create' | 'update' | 'delete'; - readonly table: string; - readonly entity: Partial; - readonly key: { - name: string; - column: string; - value: number; - } -} - -export interface PaymentStatusUpdateEntityEvent extends PaymentStatusEntityEvent { - readonly previousEntity: PaymentStatusEntity; -} - -export class PaymentStatusRepository { - - private static readonly DEFINITION = { - table: "CODBEX_PAYMENTSTATUS", - properties: [ - { - name: "Id", - column: "PAYMENTSTATUS_ID", - type: "INTEGER", - id: true, - autoIncrement: true, - }, - { - name: "Name", - column: "PAYMENTSTATUS_NAME", - type: "VARCHAR", - } - ] - }; - - private readonly dao; - - constructor(dataSource = "DefaultDB") { - this.dao = daoApi.create(PaymentStatusRepository.DEFINITION, undefined, dataSource); - } - - public findAll(options: PaymentStatusEntityOptions = {}): PaymentStatusEntity[] { - let list = this.dao.list(options); - return list; - } - - public findById(id: number, options: PaymentStatusEntityOptions = {}): PaymentStatusEntity | undefined { - const entity = this.dao.find(id); - return entity ?? undefined; - } - - public create(entity: PaymentStatusCreateEntity): number { - const id = this.dao.insert(entity); - this.triggerEvent({ - operation: "create", - table: "CODBEX_PAYMENTSTATUS", - entity: entity, - key: { - name: "Id", - column: "PAYMENTSTATUS_ID", - value: id - } - }); - return id; - } - - public update(entity: PaymentStatusUpdateEntity): void { - const previousEntity = this.findById(entity.Id); - this.dao.update(entity); - this.triggerEvent({ - operation: "update", - table: "CODBEX_PAYMENTSTATUS", - entity: entity, - previousEntity: previousEntity, - key: { - name: "Id", - column: "PAYMENTSTATUS_ID", - value: entity.Id - } - }); - } - - public upsert(entity: PaymentStatusCreateEntity | PaymentStatusUpdateEntity): number { - const id = (entity as PaymentStatusUpdateEntity).Id; - if (!id) { - return this.create(entity); - } - - const existingEntity = this.findById(id); - if (existingEntity) { - this.update(entity as PaymentStatusUpdateEntity); - return id; - } else { - return this.create(entity); - } - } - - public deleteById(id: number): void { - const entity = this.dao.find(id); - this.dao.remove(id); - this.triggerEvent({ - operation: "delete", - table: "CODBEX_PAYMENTSTATUS", - entity: entity, - key: { - name: "Id", - column: "PAYMENTSTATUS_ID", - value: id - } - }); - } - - public count(options?: PaymentStatusEntityOptions): number { - return this.dao.count(options); - } - - public customDataCount(): number { - const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "CODBEX_PAYMENTSTATUS"'); - if (resultSet !== null && resultSet[0] !== null) { - if (resultSet[0].COUNT !== undefined && resultSet[0].COUNT !== null) { - return resultSet[0].COUNT; - } else if (resultSet[0].count !== undefined && resultSet[0].count !== null) { - return resultSet[0].count; - } - } - return 0; - } - - private async triggerEvent(data: PaymentStatusEntityEvent | PaymentStatusUpdateEntityEvent) { - const triggerExtensions = await extensions.loadExtensionModules("codbex-payments-Settings-PaymentStatus", ["trigger"]); - triggerExtensions.forEach(triggerExtension => { - try { - triggerExtension.trigger(data); - } catch (error) { - console.error(error); - } - }); - producer.topic("codbex-payments-Settings-PaymentStatus").send(JSON.stringify(data)); - } -} diff --git a/codbex-payments/gen/codbex-payments/data/CustomerPayment/CustomerPaymentEntity.ts b/codbex-payments/gen/codbex-payments/data/CustomerPayment/CustomerPaymentEntity.ts index 9a2c73f..0e75a36 100644 --- a/codbex-payments/gen/codbex-payments/data/CustomerPayment/CustomerPaymentEntity.ts +++ b/codbex-payments/gen/codbex-payments/data/CustomerPayment/CustomerPaymentEntity.ts @@ -1,4 +1,4 @@ -import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' +import { Entity, Table, Id, Generated, Column, Documentation, CreatedAt, CreatedBy, UpdatedAt, UpdatedBy} from '@aerokit/sdk/db' @Entity('CustomerPaymentEntity') @Table('CODBEX_CUSTOMERPAYMENT') diff --git a/codbex-payments/gen/codbex-payments/data/EmployeePayment/EmployeePaymentEntity.ts b/codbex-payments/gen/codbex-payments/data/EmployeePayment/EmployeePaymentEntity.ts index a66093b..27c8a66 100644 --- a/codbex-payments/gen/codbex-payments/data/EmployeePayment/EmployeePaymentEntity.ts +++ b/codbex-payments/gen/codbex-payments/data/EmployeePayment/EmployeePaymentEntity.ts @@ -1,4 +1,4 @@ -import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' +import { Entity, Table, Id, Generated, Column, Documentation, CreatedAt, CreatedBy, UpdatedAt, UpdatedBy} from '@aerokit/sdk/db' @Entity('EmployeePaymentEntity') @Table('CODBEX_EMPLOYEEPAYMENT') diff --git a/codbex-payments/gen/codbex-payments/data/PaymentAdjustment/PaymentAdjustmentEntity.ts b/codbex-payments/gen/codbex-payments/data/PaymentAdjustment/PaymentAdjustmentEntity.ts index c4bce10..d29a0c4 100644 --- a/codbex-payments/gen/codbex-payments/data/PaymentAdjustment/PaymentAdjustmentEntity.ts +++ b/codbex-payments/gen/codbex-payments/data/PaymentAdjustment/PaymentAdjustmentEntity.ts @@ -1,4 +1,4 @@ -import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' +import { Entity, Table, Id, Generated, Column, Documentation, CreatedAt, CreatedBy, UpdatedAt, UpdatedBy} from '@aerokit/sdk/db' @Entity('PaymentAdjustmentEntity') @Table('CODBEX_PAYMENTADJUSTMENT') diff --git a/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordEntity.ts b/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordEntity.ts index e4cb88b..c5dfa08 100644 --- a/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordEntity.ts +++ b/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordEntity.ts @@ -1,4 +1,4 @@ -import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' +import { Entity, Table, Id, Generated, Column, Documentation, CreatedAt, CreatedBy, UpdatedAt, UpdatedBy} from '@aerokit/sdk/db' @Entity('PaymentRecordEntity') @Table('CODBEX_PAYMENTRECORD') @@ -107,14 +107,6 @@ export class PaymentRecordEntity { }) public PaymentRecordDirection?: number; - @Documentation('PaymentStatus') - @Column({ - name: 'PAYMENTRECORD_PAYMENTSTATUS', - type: 'integer', - nullable: true, - }) - public PaymentStatus?: number; - @Documentation('PaymentType') @Column({ name: 'PAYMENTRECORD_PAYMENTTYPE', diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionEntity.ts b/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionEntity.ts index ab8e265..15fdbd8 100644 --- a/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionEntity.ts +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionEntity.ts @@ -1,4 +1,4 @@ -import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' +import { Entity, Table, Id, Generated, Column, Documentation, CreatedAt, CreatedBy, UpdatedAt, UpdatedBy} from '@aerokit/sdk/db' @Entity('PaymentRecordDirectionEntity') @Table('CODBEX_PAYMENTRECORDDIRECTION') diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatus.extensionpoint b/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatus.extensionpoint deleted file mode 100644 index 19c4117..0000000 --- a/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatus.extensionpoint +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "codbex-payments-Settings-PaymentStatus", - "description": "Extension Point for the codbex-payments-Settings-PaymentStatus entity" -} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusEntity.ts b/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusEntity.ts deleted file mode 100644 index 6580b77..0000000 --- a/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusEntity.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' - -@Entity('PaymentStatusEntity') -@Table('CODBEX_PAYMENTSTATUS') -@Documentation('PaymentStatus entity mapping') -export class PaymentStatusEntity { - - @Id() - @Generated('sequence') - @Documentation('Id') - @Column({ - name: 'PAYMENTSTATUS_ID', - type: 'integer', - }) - public Id?: number; - - @Documentation('Name') - @Column({ - name: 'PAYMENTSTATUS_NAME', - type: 'string', - length: 20, - nullable: true, - }) - public Name?: string; - -} - -(new PaymentStatusEntity()); diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusRepository.ts b/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusRepository.ts deleted file mode 100644 index 8a37a8b..0000000 --- a/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusRepository.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Repository, EntityEvent, EntityConstructor } from '@aerokit/sdk/db' -import { Component } from '@aerokit/sdk/component' -import { Producer } from '@aerokit/sdk/messaging' -import { Extensions } from '@aerokit/sdk/extensions' -import { PaymentStatusEntity } from './PaymentStatusEntity' - -@Component('PaymentStatusRepository') -export class PaymentStatusRepository extends Repository { - - constructor() { - super((PaymentStatusEntity as EntityConstructor)); - } - - protected override async triggerEvent(data: EntityEvent): Promise { - const triggerExtensions = await Extensions.loadExtensionModules('codbex-payments-Settings-PaymentStatus', ['trigger']); - triggerExtensions.forEach(triggerExtension => { - try { - triggerExtension.trigger(data); - } catch (error) { - console.error(error); - } - }); - Producer.topic('codbex-payments-Settings-PaymentStatus').send(JSON.stringify(data)); - } -} diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentTypeEntity.ts b/codbex-payments/gen/codbex-payments/data/Settings/PaymentTypeEntity.ts index 6158576..ed3c1db 100644 --- a/codbex-payments/gen/codbex-payments/data/Settings/PaymentTypeEntity.ts +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentTypeEntity.ts @@ -1,4 +1,4 @@ -import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' +import { Entity, Table, Id, Generated, Column, Documentation, CreatedAt, CreatedBy, UpdatedAt, UpdatedBy} from '@aerokit/sdk/db' @Entity('PaymentTypeEntity') @Table('CODBEX_PAYMENTTYPE') diff --git a/codbex-payments/gen/codbex-payments/data/SupplierPayment/SupplierPaymentEntity.ts b/codbex-payments/gen/codbex-payments/data/SupplierPayment/SupplierPaymentEntity.ts index d79d986..1e2710d 100644 --- a/codbex-payments/gen/codbex-payments/data/SupplierPayment/SupplierPaymentEntity.ts +++ b/codbex-payments/gen/codbex-payments/data/SupplierPayment/SupplierPaymentEntity.ts @@ -1,4 +1,4 @@ -import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' +import { Entity, Table, Id, Generated, Column, Documentation, CreatedAt, CreatedBy, UpdatedAt, UpdatedBy} from '@aerokit/sdk/db' @Entity('SupplierPaymentEntity') @Table('CODBEX_SUPPLIERPAYMENT') diff --git a/codbex-payments/gen/codbex-payments/data/Suppliers/SupplierEntity.ts b/codbex-payments/gen/codbex-payments/data/Suppliers/SupplierEntity.ts index 575d864..ffb120e 100644 --- a/codbex-payments/gen/codbex-payments/data/Suppliers/SupplierEntity.ts +++ b/codbex-payments/gen/codbex-payments/data/Suppliers/SupplierEntity.ts @@ -1,4 +1,4 @@ -import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' +import { Entity, Table, Id, Generated, Column, Documentation, CreatedAt, CreatedBy, UpdatedAt, UpdatedBy} from '@aerokit/sdk/db' @Entity('SupplierEntity') @Table('CODBEX_SUPPLIER') diff --git a/codbex-payments/gen/codbex-payments/roles/default-roles.roles b/codbex-payments/gen/codbex-payments/roles/default-roles.roles index 65d5912..46ef8a0 100644 --- a/codbex-payments/gen/codbex-payments/roles/default-roles.roles +++ b/codbex-payments/gen/codbex-payments/roles/default-roles.roles @@ -39,14 +39,6 @@ "name": "codbex-payments.Settings.PaymentRecordDirectionFullAccess", "description": "A role that grants full access for PaymentRecordDirection." }, - { - "name": "codbex-payments.Settings.PaymentStatusReadOnly", - "description": "A role that grants read only permission for PaymentStatus." - }, - { - "name": "codbex-payments.Settings.PaymentStatusFullAccess", - "description": "A role that grants full access for PaymentStatus." - }, { "name": "codbex-payments.Settings.PaymentTypeReadOnly", "description": "A role that grants read only permission for PaymentType." diff --git a/codbex-payments/gen/codbex-payments/schema/codbex-payments.schema b/codbex-payments/gen/codbex-payments/schema/codbex-payments.schema index a80cf81..d04b3bf 100644 --- a/codbex-payments/gen/codbex-payments/schema/codbex-payments.schema +++ b/codbex-payments/gen/codbex-payments/schema/codbex-payments.schema @@ -340,11 +340,6 @@ "nullable": true, "name": "PAYMENTRECORD_PAYMENTRECORDDIRECTION" }, - { - "type": "INTEGER", - "nullable": true, - "name": "PAYMENTRECORD_PAYMENTSTATUS" - }, { "type": "INTEGER", "nullable": true, @@ -388,25 +383,6 @@ } ] }, - { - "name": "CODBEX_PAYMENTSTATUS", - "type": "TABLE", - "columns": [ - { - "type": "INTEGER", - "primaryKey": true, - "identity": true, - "nullable": true, - "name": "PAYMENTSTATUS_ID" - }, - { - "type": "VARCHAR", - "length": 20, - "nullable": true, - "name": "PAYMENTSTATUS_NAME" - } - ] - }, { "name": "CODBEX_PAYMENTTYPE", "type": "TABLE", @@ -658,15 +634,6 @@ "referencedTable": "CODBEX_PAYMENTRECORDDIRECTION", "referencedColumns": "PAYMENTRECORDDIRECTION_ID" }, - { - "name": "PaymentRecord_PaymentStatus", - "type": "foreignKey", - "table": "CODBEX_PAYMENTRECORD", - "constraintName": "PaymentRecord_PaymentStatus", - "columns": "PAYMENTRECORD_PAYMENTSTATUS", - "referencedTable": "CODBEX_PAYMENTSTATUS", - "referencedColumns": "PAYMENTSTATUS_ID" - }, { "name": "PaymentRecord_PaymentType", "type": "foreignKey", diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/controller.js b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/controller.js index f9ff2fc..b564104 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/controller.js @@ -142,7 +142,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer optionsCurrency: $scope.optionsCurrency, optionsCompany: $scope.optionsCompany, optionsPaymentRecordDirection: $scope.optionsPaymentRecordDirection, - optionsPaymentStatus: $scope.optionsPaymentStatus, optionsPaymentType: $scope.optionsPaymentType, }}); }; @@ -156,7 +155,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer optionsCurrency: $scope.optionsCurrency, optionsCompany: $scope.optionsCompany, optionsPaymentRecordDirection: $scope.optionsPaymentRecordDirection, - optionsPaymentStatus: $scope.optionsPaymentStatus, optionsPaymentType: $scope.optionsPaymentType, }}); }; @@ -168,7 +166,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer optionsCurrency: $scope.optionsCurrency, optionsCompany: $scope.optionsCompany, optionsPaymentRecordDirection: $scope.optionsPaymentRecordDirection, - optionsPaymentStatus: $scope.optionsPaymentStatus, optionsPaymentType: $scope.optionsPaymentType, }}); }; @@ -214,7 +211,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer optionsCurrency: $scope.optionsCurrency, optionsCompany: $scope.optionsCompany, optionsPaymentRecordDirection: $scope.optionsPaymentRecordDirection, - optionsPaymentStatus: $scope.optionsPaymentStatus, optionsPaymentType: $scope.optionsPaymentType, }, }); @@ -224,7 +220,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.optionsCurrency = []; $scope.optionsCompany = []; $scope.optionsPaymentRecordDirection = []; - $scope.optionsPaymentStatus = []; $scope.optionsPaymentType = []; @@ -273,21 +268,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer }); }); - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts').then((response) => { - $scope.optionsPaymentStatus = response.data.map(e => ({ - value: e.Id, - text: e.Name - })); - }, (error) => { - console.error(error); - const message = error.data ? error.data.message : ''; - Dialogs.showAlert({ - title: 'PaymentStatus', - message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), - type: AlertTypes.Error - }); - }); - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts').then((response) => { $scope.optionsPaymentType = response.data.map(e => ({ value: e.Id, @@ -327,14 +307,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer } return null; }; - $scope.optionsPaymentStatusValue = (optionKey) => { - for (let i = 0; i < $scope.optionsPaymentStatus.length; i++) { - if ($scope.optionsPaymentStatus[i].value === optionKey) { - return $scope.optionsPaymentStatus[i].text; - } - } - return null; - }; $scope.optionsPaymentTypeValue = (optionKey) => { for (let i = 0; i < $scope.optionsPaymentType.length; i++) { if ($scope.optionsPaymentType[i].value === optionKey) { diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/controller.js b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/controller.js index b97a11b..2e71112 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/controller.js @@ -25,7 +25,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle $scope.optionsCurrency = params.optionsCurrency; $scope.optionsCompany = params.optionsCompany; $scope.optionsPaymentRecordDirection = params.optionsPaymentRecordDirection; - $scope.optionsPaymentStatus = params.optionsPaymentStatus; $scope.optionsPaymentType = params.optionsPaymentType; } @@ -95,10 +94,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle const condition = { propertyName: 'PaymentRecordDirection', operator: 'EQ', value: entity.PaymentRecordDirection }; filter.$filter.conditions.push(condition); } - if (entity.PaymentStatus !== undefined) { - const condition = { propertyName: 'PaymentStatus', operator: 'EQ', value: entity.PaymentStatus }; - filter.$filter.conditions.push(condition); - } if (entity.PaymentType !== undefined) { const condition = { propertyName: 'PaymentType', operator: 'EQ', value: entity.PaymentType }; filter.$filter.conditions.push(condition); diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/index.html b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/index.html index d5c9255..f7daeff 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/index.html +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/index.html @@ -216,21 +216,6 @@ - -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTSTATUS' | t }} -
-
- - -
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/controller.js b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/controller.js index 112ebab..124854b 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/controller.js @@ -43,7 +43,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.optionsCurrency = params.optionsCurrency; $scope.optionsCompany = params.optionsCompany; $scope.optionsPaymentRecordDirection = params.optionsPaymentRecordDirection; - $scope.optionsPaymentStatus = params.optionsPaymentStatus; $scope.optionsPaymentType = params.optionsPaymentType; } @@ -142,24 +141,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer type: AlertTypes.Error }); }); - $scope.servicePaymentStatus = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts'; - - $scope.optionsPaymentStatus = []; - - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts').then((response) => { - $scope.optionsPaymentStatus = response.data.map(e => ({ - value: e.Id, - text: e.Name - })); - }, (error) => { - console.error(error); - const message = error.data ? error.data.message : ''; - Dialogs.showAlert({ - title: 'PaymentStatus', - message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), - type: AlertTypes.Error - }); - }); $scope.servicePaymentType = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts'; $scope.optionsPaymentType = []; diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/index.html b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/index.html index 7ae122e..95565c2 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/index.html +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/index.html @@ -218,23 +218,6 @@
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTSTATUS' | t }} -
-
- - -
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/index.html b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/index.html index 1a92e95..96abdaa 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/index.html +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/index.html @@ -50,7 +50,6 @@ {{next.Description}} | {{optionsCompanyValue(next.Company)}} | {{optionsPaymentRecordDirectionValue(next.PaymentRecordDirection)}} | - {{optionsPaymentStatusValue(next.PaymentStatus)}} | {{optionsPaymentTypeValue(next.PaymentType)}} | {{next.UUID}} | {{next.Reference}} | diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/controller.js b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/controller.js index 6bd5dd7..ed4afb3 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/controller.js @@ -53,7 +53,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.optionsCurrency = []; $scope.optionsCompany = []; $scope.optionsPaymentRecordDirection = []; - $scope.optionsPaymentStatus = []; $scope.optionsPaymentType = []; $scope.action = 'select'; }); @@ -70,7 +69,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.optionsCurrency = data.optionsCurrency; $scope.optionsCompany = data.optionsCompany; $scope.optionsPaymentRecordDirection = data.optionsPaymentRecordDirection; - $scope.optionsPaymentStatus = data.optionsPaymentStatus; $scope.optionsPaymentType = data.optionsPaymentType; $scope.action = 'select'; }); @@ -81,7 +79,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.optionsCurrency = data.optionsCurrency; $scope.optionsCompany = data.optionsCompany; $scope.optionsPaymentRecordDirection = data.optionsPaymentRecordDirection; - $scope.optionsPaymentStatus = data.optionsPaymentStatus; $scope.optionsPaymentType = data.optionsPaymentType; $scope.action = 'create'; }); @@ -98,7 +95,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.optionsCurrency = data.optionsCurrency; $scope.optionsCompany = data.optionsCompany; $scope.optionsPaymentRecordDirection = data.optionsPaymentRecordDirection; - $scope.optionsPaymentStatus = data.optionsPaymentStatus; $scope.optionsPaymentType = data.optionsPaymentType; $scope.action = 'update'; }); @@ -107,7 +103,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.serviceCurrency = '/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts'; $scope.serviceCompany = '/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts'; $scope.servicePaymentRecordDirection = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts'; - $scope.servicePaymentStatus = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts'; $scope.servicePaymentType = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts'; //-----------------Events-------------------// @@ -196,16 +191,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer closeButton: false }); }; - $scope.createPaymentStatus = () => { - Dialogs.showWindow({ - id: 'PaymentStatus-details', - params: { - action: 'create', - entity: {}, - }, - closeButton: false - }); - }; $scope.createPaymentType = () => { Dialogs.showWindow({ id: 'PaymentType-details', @@ -274,23 +259,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer }); }); }; - $scope.refreshPaymentStatus = () => { - $scope.optionsPaymentStatus = []; - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts').then((response) => { - $scope.optionsPaymentStatus = response.data.map(e => ({ - value: e.Id, - text: e.Name - })); - }, (error) => { - console.error(error); - const message = error.data ? error.data.message : ''; - Dialogs.showAlert({ - title: 'PaymentStatus', - message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), - type: AlertTypes.Error - }); - }); - }; $scope.refreshPaymentType = () => { $scope.optionsPaymentType = []; $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts').then((response) => { diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/index.html b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/index.html index 3a31ffe..7ec1658 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/index.html +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/index.html @@ -228,27 +228,6 @@
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTSTATUS' | t }} -
-
- - -
-
- - -
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/controller.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/controller.js index 3518ca7..bd5b9fc 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/controller.js @@ -24,7 +24,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer optionsCurrency: $scope.optionsCurrency, optionsCompany: $scope.optionsCompany, optionsPaymentRecordDirection: $scope.optionsPaymentRecordDirection, - optionsPaymentStatus: $scope.optionsPaymentStatus, optionsPaymentType: $scope.optionsPaymentType, }, maxWidth: action.maxWidth, @@ -130,7 +129,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer optionsCurrency: $scope.optionsCurrency, optionsCompany: $scope.optionsCompany, optionsPaymentRecordDirection: $scope.optionsPaymentRecordDirection, - optionsPaymentStatus: $scope.optionsPaymentStatus, optionsPaymentType: $scope.optionsPaymentType, }, }); @@ -144,7 +142,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer optionsCurrency: $scope.optionsCurrency, optionsCompany: $scope.optionsCompany, optionsPaymentRecordDirection: $scope.optionsPaymentRecordDirection, - optionsPaymentStatus: $scope.optionsPaymentStatus, optionsPaymentType: $scope.optionsPaymentType, }, }); @@ -154,7 +151,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.optionsCurrency = []; $scope.optionsCompany = []; $scope.optionsPaymentRecordDirection = []; - $scope.optionsPaymentStatus = []; $scope.optionsPaymentType = []; $http.get('/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts').then((response) => { @@ -202,21 +198,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer }); }); - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts').then((response) => { - $scope.optionsPaymentStatus = response.data.map(e => ({ - value: e.Id, - text: e.Name - })); - }, (error) => { - console.error(error); - const message = error.data ? error.data.message : ''; - Dialogs.showAlert({ - title: 'PaymentStatus', - message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), - type: AlertTypes.Error - }); - }); - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts').then((response) => { $scope.optionsPaymentType = response.data.map(e => ({ value: e.Id, @@ -255,14 +236,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer } return null; }; - $scope.optionsPaymentStatusValue = (optionKey) => { - for (let i = 0; i < $scope.optionsPaymentStatus.length; i++) { - if ($scope.optionsPaymentStatus[i].value === optionKey) { - return $scope.optionsPaymentStatus[i].text; - } - } - return null; - }; $scope.optionsPaymentTypeValue = (optionKey) => { for (let i = 0; i < $scope.optionsPaymentType.length; i++) { if ($scope.optionsPaymentType[i].value === optionKey) { diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/controller.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/controller.js index cefe525..56ecb0d 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/controller.js @@ -25,7 +25,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle $scope.optionsCurrency = params.optionsCurrency; $scope.optionsCompany = params.optionsCompany; $scope.optionsPaymentRecordDirection = params.optionsPaymentRecordDirection; - $scope.optionsPaymentStatus = params.optionsPaymentStatus; $scope.optionsPaymentType = params.optionsPaymentType; } @@ -95,10 +94,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle const condition = { propertyName: 'PaymentRecordDirection', operator: 'EQ', value: entity.PaymentRecordDirection }; filter.$filter.conditions.push(condition); } - if (entity.PaymentStatus !== undefined) { - const condition = { propertyName: 'PaymentStatus', operator: 'EQ', value: entity.PaymentStatus }; - filter.$filter.conditions.push(condition); - } if (entity.PaymentType !== undefined) { const condition = { propertyName: 'PaymentType', operator: 'EQ', value: entity.PaymentType }; filter.$filter.conditions.push(condition); diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/index.html b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/index.html index a4f95da..3568436 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/index.html +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/index.html @@ -217,21 +217,6 @@
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTSTATUS' | t }} -
-
- - -
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/controller.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/controller.js index 0a1b27b..8fe6bf0 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/controller.js @@ -72,10 +72,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer const condition = { propertyName: 'PaymentRecordDirection', operator: 'EQ', value: entity.PaymentRecordDirection }; filter.$filter.conditions.push(condition); } - if (entity.PaymentStatus !== undefined) { - const condition = { propertyName: 'PaymentStatus', operator: 'EQ', value: entity.PaymentStatus }; - filter.$filter.conditions.push(condition); - } if (entity.PaymentType !== undefined) { const condition = { propertyName: 'PaymentType', operator: 'EQ', value: entity.PaymentType }; filter.$filter.conditions.push(condition); @@ -98,7 +94,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.optionsCurrency = params.optionsCurrency; $scope.optionsCompany = params.optionsCompany; $scope.optionsPaymentRecordDirection = params.optionsPaymentRecordDirection; - $scope.optionsPaymentStatus = params.optionsPaymentStatus; $scope.optionsPaymentType = params.optionsPaymentType; } @@ -162,14 +157,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer } return null; }; - $scope.optionsPaymentStatusValue = (optionKey) => { - for (let i = 0; i < $scope.optionsPaymentStatus.length; i++) { - if ($scope.optionsPaymentStatus[i].value === optionKey) { - return $scope.optionsPaymentStatus[i].text; - } - } - return null; - }; $scope.optionsPaymentTypeValue = (optionKey) => { for (let i = 0; i < $scope.optionsPaymentType.length; i++) { if ($scope.optionsPaymentType[i].value === optionKey) { diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/index.html b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/index.html index 9b01eeb..1166045 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/index.html +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/index.html @@ -31,7 +31,6 @@ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_DESCRIPTION' | t:'Description' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_COMPANY' | t:'Company' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTRECORDDIRECTION' | t:'PaymentRecordDirection' }} - {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTSTATUS' | t:'PaymentStatus' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t:'PaymentType' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_UUID' | t:'UUID' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REFERENCE' | t:'Reference' }} @@ -58,7 +57,6 @@ {{next.Description}} {{optionsCompanyValue(next.Company)}} {{optionsPaymentRecordDirectionValue(next.PaymentRecordDirection)}} - {{optionsPaymentStatusValue(next.PaymentStatus)}} {{optionsPaymentTypeValue(next.PaymentType)}} {{next.UUID}} {{next.Reference}} diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/controller.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/controller.js index fc38a55..05b4281 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/controller.js @@ -15,7 +15,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle $scope.optionsCurrency = params.optionsCurrency; $scope.optionsCompany = params.optionsCompany; $scope.optionsPaymentRecordDirection = params.optionsPaymentRecordDirection; - $scope.optionsPaymentStatus = params.optionsPaymentStatus; $scope.optionsPaymentType = params.optionsPaymentType; } }); \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/index.html b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/index.html index 6a2f7c0..6f07a04 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/index.html +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/index.html @@ -181,22 +181,6 @@
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTSTATUS' | t }} -
-
- - -
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/index.html b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/index.html index 2f4406c..7112ffd 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/index.html +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/index.html @@ -35,7 +35,6 @@ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_DESCRIPTION' | t:'Description' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_COMPANY' | t:'Company' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTRECORDDIRECTION' | t:'PaymentRecordDirection' }} - {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTSTATUS' | t:'PaymentStatus' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t:'PaymentType' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_UUID' | t:'UUID' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REFERENCE' | t:'Reference' }} @@ -70,9 +69,6 @@ {{optionsPaymentRecordDirectionValue(next.PaymentRecordDirection)}} - - {{optionsPaymentStatusValue(next.PaymentStatus)}} - {{optionsPaymentTypeValue(next.PaymentType)}} diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/controller.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/controller.js deleted file mode 100644 index a5b5a88..0000000 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/controller.js +++ /dev/null @@ -1,202 +0,0 @@ -angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntityService']) - .config(['EntityServiceProvider', (EntityServiceProvider) => { - EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts'; - }]) - .controller('PageController', ($scope, EntityService, Extensions, LocaleService, ButtonStates) => { - const Dialogs = new DialogHub(); - let translated = { - yes: 'Yes', - no: 'No', - deleteConfirm: 'Are you sure you want to delete PaymentStatus? This action cannot be undone.', - deleteTitle: 'Delete PaymentStatus?' - }; - - LocaleService.onInit(() => { - translated.yes = LocaleService.t('codbex-payments:codbex-payments-model.defaults.yes'); - translated.no = LocaleService.t('codbex-payments:codbex-payments-model.defaults.no'); - translated.deleteTitle = LocaleService.t('codbex-payments:codbex-payments-model.defaults.deleteTitle', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' }); - translated.deleteConfirm = LocaleService.t('codbex-payments:codbex-payments-model.messages.deleteConfirm', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' }); - }); - - $scope.dataPage = 1; - $scope.dataCount = 0; - $scope.dataLimit = 20; - - //-----------------Custom Actions-------------------// - Extensions.getWindows(['codbex-payments-custom-action']).then((response) => { - $scope.pageActions = response.data.filter(e => e.perspective === 'Settings' && e.view === 'PaymentStatus' && (e.type === 'page' || e.type === undefined)); - $scope.entityActions = response.data.filter(e => e.perspective === 'Settings' && e.view === 'PaymentStatus' && e.type === 'entity'); - }); - - $scope.triggerPageAction = (action) => { - Dialogs.showWindow({ - hasHeader: true, - title: LocaleService.t(action.translation.key, action.translation.options, action.label), - path: action.path, - maxWidth: action.maxWidth, - maxHeight: action.maxHeight, - closeButton: true - }); - }; - - $scope.triggerEntityAction = (action) => { - Dialogs.showWindow({ - hasHeader: true, - title: LocaleService.t(action.translation.key, action.translation.options, action.label), - path: action.path, - params: { - id: $scope.entity.Id - }, - closeButton: true - }); - }; - //-----------------Custom Actions-------------------// - - function resetPagination() { - $scope.dataPage = 1; - $scope.dataCount = 0; - $scope.dataLimit = 20; - } - resetPagination(); - - //-----------------Events-------------------// - Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentStatus.entityCreated', handler: () => { - $scope.loadPage($scope.dataPage, $scope.filter); - }}); - Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentStatus.entityUpdated', handler: () => { - $scope.loadPage($scope.dataPage, $scope.filter); - }}); - Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentStatus.entitySearch', handler: (data) => { - resetPagination(); - $scope.filter = data.filter; - $scope.filterEntity = data.entity; - $scope.loadPage($scope.dataPage, $scope.filter); - }}); - //-----------------Events-------------------// - - $scope.loadPage = (pageNumber, filter) => { - if (!filter && $scope.filter) { - filter = $scope.filter; - } - $scope.dataPage = pageNumber; - EntityService.count(filter).then((resp) => { - if (resp.data) { - $scope.dataCount = resp.data.count; - } - let offset = (pageNumber - 1) * $scope.dataLimit; - let limit = $scope.dataLimit; - let request; - if (filter) { - if (!filter.$filter) { - filter.$filter = {}; - } - filter.$filter.offset = offset; - filter.$filter.limit = limit; - request = EntityService.search(filter); - } else { - request = EntityService.list(offset, limit); - } - request.then((response) => { - $scope.data = response.data; - }, (error) => { - const message = error.data ? error.data.message : ''; - Dialogs.showAlert({ - title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTSTATUS'), - message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLF', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)', message: message }), - type: AlertTypes.Error - }); - console.error('EntityService:', error); - }); - }, (error) => { - const message = error.data ? error.data.message : ''; - Dialogs.showAlert({ - title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTSTATUS'), - message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCount', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)', message: message }), - type: AlertTypes.Error - }); - console.error('EntityService:', error); - }); - }; - $scope.loadPage($scope.dataPage, $scope.filter); - - $scope.selectEntity = (entity) => { - $scope.selectedEntity = entity; - }; - - $scope.openDetails = (entity) => { - $scope.selectedEntity = entity; - Dialogs.showWindow({ - id: 'PaymentStatus-details', - params: { - action: 'select', - entity: entity, - }, - closeButton: true, - }); - }; - - $scope.openFilter = () => { - Dialogs.showWindow({ - id: 'PaymentStatus-filter', - params: { - entity: $scope.filterEntity, - }, - closeButton: true, - }); - }; - - $scope.createEntity = () => { - $scope.selectedEntity = null; - Dialogs.showWindow({ - id: 'PaymentStatus-details', - params: { - action: 'create', - entity: {}, - }, - closeButton: false, - }); - }; - - $scope.updateEntity = (entity) => { - Dialogs.showWindow({ - id: 'PaymentStatus-details', - params: { - action: 'update', - entity: entity, - }, - closeButton: false, - }); - }; - - $scope.deleteEntity = (entity) => { - let id = entity.Id; - Dialogs.showDialog({ - title: translated.deleteTitle, - message: translated.deleteConfirm, - buttons: [{ - id: 'delete-btn-yes', - state: ButtonStates.Emphasized, - label: translated.yes, - }, { - id: 'delete-btn-no', - label: translated.no, - }] - }).then((buttonId) => { - if (buttonId === 'delete-btn-yes') { - EntityService.delete(id).then((response) => { - $scope.loadPage($scope.dataPage, $scope.filter); - Dialogs.triggerEvent('codbex-payments.Settings.PaymentStatus.clearDetails'); - }, (error) => { - const message = error.data ? error.data.message : ''; - Dialogs.showAlert({ - title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTSTATUS'), - message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToDelete', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)', message: message }), - type: AlertTypes.Error - }); - console.error('EntityService:', error); - }); - } - }); - }; - - }); \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/controller.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/controller.js deleted file mode 100644 index ad6c3e8..0000000 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/controller.js +++ /dev/null @@ -1,66 +0,0 @@ -angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controller('PageController', ($scope, ViewParameters, LocaleService) => { - const Dialogs = new DialogHub(); - let description = 'Description'; - $scope.entity = {}; - $scope.forms = { - details: {}, - }; - - LocaleService.onInit(() => { - description = LocaleService.t('codbex-payments:codbex-payments-model.defaults.description'); - }); - - let params = ViewParameters.get(); - if (Object.keys(params).length) { - $scope.entity = params.entity ?? {}; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - } - - $scope.filter = () => { - let entity = $scope.entity; - const filter = { - $filter: { - conditions: [], - sorts: [], - limit: 20, - offset: 0 - } - }; - if (entity.Id !== undefined) { - const condition = { propertyName: 'Id', operator: 'EQ', value: entity.Id }; - filter.$filter.conditions.push(condition); - } - if (entity.Name) { - const condition = { propertyName: 'Name', operator: 'LIKE', value: `%${entity.Name}%` }; - filter.$filter.conditions.push(condition); - } - Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentStatus.entitySearch', data: { - entity: entity, - filter: filter - }}); - $scope.cancel(); - }; - - $scope.resetFilter = () => { - $scope.entity = {}; - $scope.filter(); - }; - - $scope.alert = (message) => { - if (message) Dialogs.showAlert({ - title: description, - message: message, - type: AlertTypes.Information, - preformatted: true, - }); - }; - - $scope.cancel = () => { - Dialogs.closeWindow({ id: 'PaymentStatus-filter' }); - }; - - $scope.clearErrorMessage = () => { - $scope.errorMessage = null; - }; -}); \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/index.html b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/index.html deleted file mode 100644 index 8ceb88d..0000000 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/index.html +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - {{ errorMessage }} - - - - -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTSTATUS_NAME' | t }} -
-
- - - - -
-
-
-
-
- - - - - - - - - - - - - - - - - - diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.extension deleted file mode 100644 index f075746..0000000 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.extension +++ /dev/null @@ -1,6 +0,0 @@ -{ - "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.js", - "extensionPoint": "application-windows", - "description": "codbex-payments - Application Dialog Window", - "role": "codbex-payments.Settings.PaymentStatusReadOnly,codbex-payments.Settings.PaymentStatusFullAccess" -} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.js deleted file mode 100644 index 9f1806c..0000000 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Generated by Eclipse Dirigible based on model and template. - * - * Do not modify the content as it may be re-generated again. - */ -const viewData = { - id: 'PaymentStatus-filter', - label: 'PaymentStatus Filter', - translation: { - key: 'codbex-payments:codbex-payments-model.extName', - options: { - content: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS) $t(codbex-payments:codbex-payments-model.defaults.filter)', - } - }, - path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/index.html', - perspectiveName: 'Settings' -}; -if (typeof exports !== 'undefined') { - exports.getView = () => viewData; -} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/controller.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/controller.js deleted file mode 100644 index 059b6f1..0000000 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/controller.js +++ /dev/null @@ -1,100 +0,0 @@ -angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntityService']) - .config(['EntityServiceProvider', (EntityServiceProvider) => { - EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts'; - }]) - .controller('PageController', ($scope, $http, ViewParameters, LocaleService, EntityService) => { - const Dialogs = new DialogHub(); - const Notifications = new NotificationHub(); - let description = 'Description'; - let propertySuccessfullyCreated = 'PaymentStatus successfully created'; - let propertySuccessfullyUpdated = 'PaymentStatus successfully updated'; - - $scope.entity = {}; - $scope.forms = { - details: {}, - }; - $scope.formHeaders = { - select: 'PaymentStatus Details', - create: 'Create PaymentStatus', - update: 'Update PaymentStatus' - }; - $scope.action = 'select'; - - LocaleService.onInit(() => { - description = LocaleService.t('codbex-payments:codbex-payments-model.defaults.description'); - $scope.formHeaders.select = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadSelect', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' }); - $scope.formHeaders.create = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadCreate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' }); - $scope.formHeaders.update = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' }); - propertySuccessfullyCreated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyCreated', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' }); - propertySuccessfullyUpdated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyUpdated', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' }); - }); - - let params = ViewParameters.get(); - if (Object.keys(params).length) { - $scope.action = params.action; - $scope.entity = params.entity; - $scope.selectedMainEntityKey = params.selectedMainEntityKey; - $scope.selectedMainEntityId = params.selectedMainEntityId; - } - - $scope.create = () => { - let entity = $scope.entity; - entity[$scope.selectedMainEntityKey] = $scope.selectedMainEntityId; - EntityService.create(entity).then((response) => { - Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentStatus.entityCreated', data: response.data }); - Notifications.show({ - title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTSTATUS'), - description: propertySuccessfullyCreated, - type: 'positive' - }); - $scope.cancel(); - }, (error) => { - const message = error.data ? error.data.message : ''; - $scope.$evalAsync(() => { - $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCreate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)', message: message }); - }); - console.error('EntityService:', error); - }); - }; - - $scope.update = () => { - let id = $scope.entity.Id; - let entity = $scope.entity; - entity[$scope.selectedMainEntityKey] = $scope.selectedMainEntityId; - EntityService.update(id, entity).then((response) => { - Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentStatus.entityUpdated', data: response.data }); - Notifications.show({ - title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTSTATUS'), - description: propertySuccessfullyUpdated, - type: 'positive' - }); - $scope.cancel(); - }, (error) => { - const message = error.data ? error.data.message : ''; - $scope.$evalAsync(() => { - $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)', message: message }); - }); - console.error('EntityService:', error); - }); - }; - - - $scope.alert = (message) => { - if (message) Dialogs.showAlert({ - title: description, - message: message, - type: AlertTypes.Information, - preformatted: true, - }); - }; - - $scope.cancel = () => { - $scope.entity = {}; - $scope.action = 'select'; - Dialogs.closeWindow({ id: 'PaymentStatus-details' }); - }; - - $scope.clearErrorMessage = () => { - $scope.errorMessage = null; - }; - }); \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/index.html b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/index.html deleted file mode 100644 index fecf4b8..0000000 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/index.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - {{ errorMessage }} - - - - -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTSTATUS_NAME' | t }} -
-
- - - - -
-
-
-
-
- - - - - - - - - - - - - - - - diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.extension deleted file mode 100644 index 8130ba4..0000000 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.extension +++ /dev/null @@ -1,6 +0,0 @@ -{ - "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.js", - "extensionPoint": "application-windows", - "description": "codbex-payments - Application Dialog Window", - "role": "codbex-payments.Settings.PaymentStatusReadOnly,codbex-payments.Settings.PaymentStatusFullAccess" -} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.js deleted file mode 100644 index cbc1977..0000000 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Generated by Eclipse Dirigible based on model and template. - * - * Do not modify the content as it may be re-generated again. - */ -const viewData = { - id: 'PaymentStatus-details', - label: 'PaymentStatus', - translation: { - key: 'codbex-payments:codbex-payments-model.t.PAYMENTSTATUS', - }, - path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/index.html', - perspectiveName: 'Settings' -}; -if (typeof exports !== 'undefined') { - exports.getView = () => viewData; -} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/index.html b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/index.html deleted file mode 100644 index 9c0d880..0000000 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/index.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - {{'codbex-payments:codbex-payments-model.defaults.items' | t}} - - - - - - - - - - - - - - - - - - - - - - - -
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTSTATUS_NAME' | t:'Name' }}
{{'codbex-payments:codbex-payments-model.messages.noData' | t}}
{{next.Name}} - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension deleted file mode 100644 index 084aa66..0000000 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension +++ /dev/null @@ -1,6 +0,0 @@ -{ - "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js", - "extensionPoint": "application-settings", - "description": "codbex-payments - Application View", - "role": "codbex-payments.Settings.PaymentStatusReadOnly,codbex-payments.Settings.PaymentStatusFullAccess" -} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js deleted file mode 100644 index 295ffab..0000000 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Generated by Eclipse Dirigible based on model and template. - * - * Do not modify the content as it may be re-generated again. - */ -const viewData = { - id: 'PaymentStatus', - label: 'PaymentStatus', - translation: { - key: 'codbex-payments:codbex-payments-model.t.PAYMENTSTATUS', - }, - region: 'center', - lazyLoad: true, - autoFocusTab: false, - path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/index.html', - perspectiveName: 'Settings' -}; -if (typeof exports !== 'undefined') { - exports.getView = () => viewData; -} \ No newline at end of file diff --git a/codbex-payments/translations/en-US/codbex-payments.model.json b/codbex-payments/translations/en-US/codbex-payments.model.json index c939666..777efe7 100644 --- a/codbex-payments/translations/en-US/codbex-payments.model.json +++ b/codbex-payments/translations/en-US/codbex-payments.model.json @@ -124,7 +124,6 @@ "PAYMENTRECORD_DESCRIPTION": "Description", "PAYMENTRECORD_COMPANY": "Company", "PAYMENTRECORD_PAYMENTRECORDDIRECTION": "PaymentRecordDirection", - "PAYMENTRECORD_PAYMENTSTATUS": "PaymentStatus", "PAYMENTRECORD_PAYMENTTYPE": "PaymentType", "PAYMENTRECORD_UUID": "UUID", "PAYMENTRECORD_REFERENCE": "Reference", @@ -152,9 +151,6 @@ "PAYMENTRECORDDIRECTION": "PaymentRecordDirection", "PAYMENTRECORDDIRECTION_ID": "Id", "PAYMENTRECORDDIRECTION_NAME": "Name", - "PAYMENTSTATUS": "PaymentStatus", - "PAYMENTSTATUS_ID": "Id", - "PAYMENTSTATUS_NAME": "Name", "PAYMENTTYPE": "PaymentType", "PAYMENTTYPE_ID": "Id", "PAYMENTTYPE_NAME": "Name", From 56ed0b82c905b24e1b6895d12e4d9050f5f592e4 Mon Sep 17 00:00:00 2001 From: NicoleNG18 Date: Thu, 5 Mar 2026 22:05:02 +0200 Subject: [PATCH 2/2] rename PaymentRecordDirection entity to PaymentDirection --- codbex-payments/codbex-payments.edm | 18 +- codbex-payments/codbex-payments.gen | 437 +++++++++--------- codbex-payments/codbex-payments.model | 189 ++++---- ...oller.ts => PaymentDirectionController.ts} | 68 ++- .../PaymentRecord/PaymentRecordRepository.ts | 56 +-- .../Settings/PaymentDirection.extensionpoint | 4 + ...itory.ts => PaymentDirectionRepository.ts} | 71 +-- .../PaymentRecordDirection.extensionpoint | 4 - .../data/PaymentRecord/PaymentRecordEntity.ts | 32 +- .../Settings/PaymentDirection.extensionpoint | 4 + ...ionEntity.ts => PaymentDirectionEntity.ts} | 17 +- ...itory.ts => PaymentDirectionRepository.ts} | 14 +- .../PaymentRecordDirection.extensionpoint | 4 - .../codbex-payments/roles/default-roles.roles | 8 - .../schema/codbex-payments.schema | 85 ++-- .../PaymentRecord/PaymentRecord/controller.js | 62 +-- .../PaymentRecord/dialog-filter/controller.js | 20 +- .../PaymentRecord/dialog-filter/index.html | 60 +-- .../PaymentRecord/dialog-window/controller.js | 34 +- .../PaymentRecord/dialog-window/index.html | 68 +-- .../ui/PaymentRecord/PaymentRecord/index.html | 4 +- .../PaymentRecord/main-details/controller.js | 62 +-- .../PaymentRecord/main-details/index.html | 84 ++-- .../ui/Reports/PaymentRecord/controller.js | 58 +-- .../PaymentRecord/dialog-filter/controller.js | 20 +- .../PaymentRecord/dialog-filter/index.html | 60 +-- .../PaymentRecord/dialog-print/controller.js | 44 +- .../PaymentRecord/dialog-print/index.html | 8 +- .../PaymentRecord/dialog-window/controller.js | 4 +- .../PaymentRecord/dialog-window/index.html | 64 +-- .../ui/Reports/PaymentRecord/index.html | 14 +- .../controller.js | 42 +- .../dialog-filter/controller.js | 4 +- .../dialog-filter/index.html | 6 +- .../dialog-filter/view.extension | 5 +- .../dialog-filter/view.js | 8 +- .../dialog-window/controller.js | 36 +- .../dialog-window/index.html | 6 +- .../dialog-window/view.extension | 5 +- .../dialog-window/view.js | 8 +- .../index.html | 2 +- .../Settings/PaymentDirection/view.extension | 5 + .../view.js | 8 +- .../PaymentRecordDirection/view.extension | 6 - .../en-US/codbex-payments.model.json | 10 +- 45 files changed, 894 insertions(+), 934 deletions(-) rename codbex-payments/gen/codbex-payments/api/Settings/{PaymentRecordDirectionController.ts => PaymentDirectionController.ts} (61%) create mode 100644 codbex-payments/gen/codbex-payments/dao/Settings/PaymentDirection.extensionpoint rename codbex-payments/gen/codbex-payments/dao/Settings/{PaymentRecordDirectionRepository.ts => PaymentDirectionRepository.ts} (61%) delete mode 100644 codbex-payments/gen/codbex-payments/dao/Settings/PaymentRecordDirection.extensionpoint create mode 100644 codbex-payments/gen/codbex-payments/data/Settings/PaymentDirection.extensionpoint rename codbex-payments/gen/codbex-payments/data/Settings/{PaymentRecordDirectionEntity.ts => PaymentDirectionEntity.ts} (50%) rename codbex-payments/gen/codbex-payments/data/Settings/{PaymentRecordDirectionRepository.ts => PaymentDirectionRepository.ts} (54%) delete mode 100644 codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirection.extensionpoint rename codbex-payments/gen/codbex-payments/ui/Settings/{PaymentRecordDirection => PaymentDirection}/controller.js (82%) rename codbex-payments/gen/codbex-payments/ui/Settings/{PaymentRecordDirection => PaymentDirection}/dialog-filter/controller.js (94%) rename codbex-payments/gen/codbex-payments/ui/Settings/{PaymentRecordDirection => PaymentDirection}/dialog-filter/index.html (89%) rename codbex-payments/gen/codbex-payments/ui/Settings/{PaymentRecordDirection => PaymentDirection}/dialog-filter/view.extension (50%) rename codbex-payments/gen/codbex-payments/ui/Settings/{PaymentRecordDirection => PaymentDirection}/dialog-filter/view.js (69%) rename codbex-payments/gen/codbex-payments/ui/Settings/{PaymentRecordDirection => PaymentDirection}/dialog-window/controller.js (75%) rename codbex-payments/gen/codbex-payments/ui/Settings/{PaymentRecordDirection => PaymentDirection}/dialog-window/index.html (93%) rename codbex-payments/gen/codbex-payments/ui/Settings/{PaymentRecordDirection => PaymentDirection}/dialog-window/view.extension (50%) rename codbex-payments/gen/codbex-payments/ui/Settings/{PaymentRecordDirection => PaymentDirection}/dialog-window/view.js (62%) rename codbex-payments/gen/codbex-payments/ui/Settings/{PaymentRecordDirection => PaymentDirection}/index.html (98%) create mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.extension rename codbex-payments/gen/codbex-payments/ui/Settings/{PaymentRecordDirection => PaymentDirection}/view.js (68%) delete mode 100644 codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension diff --git a/codbex-payments/codbex-payments.edm b/codbex-payments/codbex-payments.edm index b668ba5..5c7972d 100644 --- a/codbex-payments/codbex-payments.edm +++ b/codbex-payments/codbex-payments.edm @@ -60,11 +60,11 @@ + + - - @@ -95,16 +95,10 @@ - - - - - - @@ -169,6 +163,12 @@ + + + + + + CustomerPaymentsales-navigation-group/services/web/resources/unicons/usd-square.svg300 @@ -179,5 +179,5 @@ - + \ No newline at end of file diff --git a/codbex-payments/codbex-payments.gen b/codbex-payments/codbex-payments.gen index 26559e1..c2a4b16 100644 --- a/codbex-payments/codbex-payments.gen +++ b/codbex-payments/codbex-payments.gen @@ -139,16 +139,16 @@ "Settings": { "views": [ "Currency", - "PaymentRecordDirection", "PaymentType", - "PaymentMethod" + "PaymentMethod", + "PaymentDirection" ], "name": "Settings", "label": "Settings", "header": "", "order": "100", "navId": "", - "icon": "/services/web/resources/unicons/archive.svg", + "icon": "/services/web/resources/unicons/copy.svg", "role": "" }, "Companies": { @@ -240,11 +240,6 @@ "roleRead": "codbex-payments.PaymentRecord.PaymentRecordReadOnly", "roleWrite": "codbex-payments.PaymentRecord.PaymentRecordFullAccess" }, - { - "entityName": "PaymentRecordDirection", - "roleRead": "codbex-payments.Settings.PaymentRecordDirectionReadOnly", - "roleWrite": "codbex-payments.Settings.PaymentRecordDirectionFullAccess" - }, { "entityName": "PaymentType", "roleRead": "codbex-payments.Settings.PaymentTypeReadOnly", @@ -3183,17 +3178,22 @@ }, { "auditType": "NONE", - "dataLength": "100", - "dataName": "PAYMENTRECORD_REASON", + "dataName": "PAYMENTRECORD_PAYMENTDIRECTION", "dataNullable": true, - "dataType": "VARCHAR", + "dataType": "INTEGER", "description": "", - "name": "Reason", + "name": "PaymentDirection", "tooltip": "", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", - "widgetType": "TEXTBOX", + "widgetType": "DROPDOWN", + "relationshipName": "PaymentRecord_PaymentDirection", + "relationshipEntityName": "PaymentDirection", + "relationshipEntityPerspectiveName": "Settings", + "relationshipEntityPerspectiveLabel": "", "dataNotNull": false, "dataAutoIncrement": false, "dataPrimaryKey": false, @@ -3201,28 +3201,31 @@ "isRequiredProperty": false, "isCalculatedProperty": false, "isReadOnlyProperty": false, - "widgetLabel": "Reason", - "widgetDropdownUrl": "", - "widgetDropdownControllerUrl": "", - "dataTypeJava": "string", - "dataTypeTypescript": "string", - "minLength": 0, - "maxLength": 20, + "widgetLabel": "PaymentDirection", + "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts", + "dataTypeJava": "int", + "dataTypeTypescript": "number", "inputRule": "" }, { "auditType": "NONE", - "dataLength": "100", - "dataName": "PAYMENTRECORD_DESCRIPTION", + "dataName": "PAYMENTRECORD_PAYMENTTYPE", "dataNullable": true, - "dataType": "VARCHAR", + "dataType": "INTEGER", "description": "", - "name": "Description", + "name": "PaymentType", "tooltip": "", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", - "widgetType": "TEXTBOX", + "widgetType": "DROPDOWN", + "relationshipName": "PaymentRecord_PaymentType", + "relationshipEntityName": "PaymentType", + "relationshipEntityPerspectiveName": "Settings", + "relationshipEntityPerspectiveLabel": "Entities", "dataNotNull": false, "dataAutoIncrement": false, "dataPrimaryKey": false, @@ -3230,33 +3233,26 @@ "isRequiredProperty": false, "isCalculatedProperty": false, "isReadOnlyProperty": false, - "widgetLabel": "Description", - "widgetDropdownUrl": "", - "widgetDropdownControllerUrl": "", - "dataTypeJava": "string", - "dataTypeTypescript": "string", - "minLength": 0, - "maxLength": 20, + "widgetLabel": "PaymentType", + "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts", + "dataTypeJava": "int", + "dataTypeTypescript": "number", "inputRule": "" }, { "auditType": "NONE", - "dataName": "PAYMENTRECORD_COMPANY", + "dataLength": "100", + "dataName": "PAYMENTRECORD_REASON", "dataNullable": true, - "dataType": "INTEGER", + "dataType": "VARCHAR", "description": "", - "name": "Company", + "name": "Reason", "tooltip": "", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "Name", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "PaymentRecord_Company", - "relationshipEntityName": "Company", - "relationshipEntityPerspectiveName": "Companies", - "relationshipEntityPerspectiveLabel": "Entities", + "widgetType": "TEXTBOX", "dataNotNull": false, "dataAutoIncrement": false, "dataPrimaryKey": false, @@ -3264,31 +3260,28 @@ "isRequiredProperty": false, "isCalculatedProperty": false, "isReadOnlyProperty": false, - "widgetLabel": "Company", - "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", - "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", - "dataTypeJava": "int", - "dataTypeTypescript": "number", + "widgetLabel": "Reason", + "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 20, "inputRule": "" }, { "auditType": "NONE", - "dataName": "PAYMENTRECORD_PAYMENTRECORDDIRECTION", + "dataLength": "100", + "dataName": "PAYMENTRECORD_DESCRIPTION", "dataNullable": true, - "dataType": "INTEGER", + "dataType": "VARCHAR", "description": "", - "name": "PaymentRecordDirection", + "name": "Description", "tooltip": "", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "Name", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "PaymentRecord_PaymentRecordDirection", - "relationshipEntityName": "PaymentRecordDirection", - "relationshipEntityPerspectiveName": "Settings", - "relationshipEntityPerspectiveLabel": "Entities", + "widgetType": "TEXTBOX", "dataNotNull": false, "dataAutoIncrement": false, "dataPrimaryKey": false, @@ -3296,20 +3289,22 @@ "isRequiredProperty": false, "isCalculatedProperty": false, "isReadOnlyProperty": false, - "widgetLabel": "PaymentRecordDirection", - "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts", - "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts", - "dataTypeJava": "int", - "dataTypeTypescript": "number", + "widgetLabel": "Description", + "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 20, "inputRule": "" }, { "auditType": "NONE", - "dataName": "PAYMENTRECORD_PAYMENTTYPE", + "dataName": "PAYMENTRECORD_COMPANY", "dataNullable": true, "dataType": "INTEGER", "description": "", - "name": "PaymentType", + "name": "Company", "tooltip": "", "widgetDropDownKey": "Id", "widgetDropDownValue": "Name", @@ -3317,9 +3312,9 @@ "widgetLength": "20", "widgetSize": "", "widgetType": "DROPDOWN", - "relationshipName": "PaymentRecord_PaymentType", - "relationshipEntityName": "PaymentType", - "relationshipEntityPerspectiveName": "Settings", + "relationshipName": "PaymentRecord_Company", + "relationshipEntityName": "Company", + "relationshipEntityPerspectiveName": "Companies", "relationshipEntityPerspectiveLabel": "Entities", "dataNotNull": false, "dataAutoIncrement": false, @@ -3328,9 +3323,9 @@ "isRequiredProperty": false, "isCalculatedProperty": false, "isReadOnlyProperty": false, - "widgetLabel": "PaymentType", - "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts", - "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts", + "widgetLabel": "Company", + "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -3675,17 +3670,22 @@ }, { "auditType": "NONE", - "dataLength": "100", - "dataName": "PAYMENTRECORD_REASON", + "dataName": "PAYMENTRECORD_PAYMENTDIRECTION", "dataNullable": true, - "dataType": "VARCHAR", + "dataType": "INTEGER", "description": "", - "name": "Reason", + "name": "PaymentDirection", "tooltip": "", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", - "widgetType": "TEXTBOX", + "widgetType": "DROPDOWN", + "relationshipName": "PaymentRecord_PaymentDirection", + "relationshipEntityName": "PaymentDirection", + "relationshipEntityPerspectiveName": "Settings", + "relationshipEntityPerspectiveLabel": "", "dataNotNull": false, "dataAutoIncrement": false, "dataPrimaryKey": false, @@ -3693,28 +3693,31 @@ "isRequiredProperty": false, "isCalculatedProperty": false, "isReadOnlyProperty": false, - "widgetLabel": "Reason", - "widgetDropdownUrl": "", - "widgetDropdownControllerUrl": "", - "dataTypeJava": "string", - "dataTypeTypescript": "string", - "minLength": 0, - "maxLength": 20, + "widgetLabel": "PaymentDirection", + "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts", + "dataTypeJava": "int", + "dataTypeTypescript": "number", "inputRule": "" }, { "auditType": "NONE", - "dataLength": "100", - "dataName": "PAYMENTRECORD_DESCRIPTION", + "dataName": "PAYMENTRECORD_PAYMENTTYPE", "dataNullable": true, - "dataType": "VARCHAR", + "dataType": "INTEGER", "description": "", - "name": "Description", + "name": "PaymentType", "tooltip": "", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", - "widgetType": "TEXTBOX", + "widgetType": "DROPDOWN", + "relationshipName": "PaymentRecord_PaymentType", + "relationshipEntityName": "PaymentType", + "relationshipEntityPerspectiveName": "Settings", + "relationshipEntityPerspectiveLabel": "Entities", "dataNotNull": false, "dataAutoIncrement": false, "dataPrimaryKey": false, @@ -3722,33 +3725,26 @@ "isRequiredProperty": false, "isCalculatedProperty": false, "isReadOnlyProperty": false, - "widgetLabel": "Description", - "widgetDropdownUrl": "", - "widgetDropdownControllerUrl": "", - "dataTypeJava": "string", - "dataTypeTypescript": "string", - "minLength": 0, - "maxLength": 20, + "widgetLabel": "PaymentType", + "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts", + "dataTypeJava": "int", + "dataTypeTypescript": "number", "inputRule": "" }, { "auditType": "NONE", - "dataName": "PAYMENTRECORD_COMPANY", + "dataLength": "100", + "dataName": "PAYMENTRECORD_REASON", "dataNullable": true, - "dataType": "INTEGER", + "dataType": "VARCHAR", "description": "", - "name": "Company", + "name": "Reason", "tooltip": "", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "Name", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "PaymentRecord_Company", - "relationshipEntityName": "Company", - "relationshipEntityPerspectiveName": "Companies", - "relationshipEntityPerspectiveLabel": "Entities", + "widgetType": "TEXTBOX", "dataNotNull": false, "dataAutoIncrement": false, "dataPrimaryKey": false, @@ -3756,31 +3752,28 @@ "isRequiredProperty": false, "isCalculatedProperty": false, "isReadOnlyProperty": false, - "widgetLabel": "Company", - "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", - "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", - "dataTypeJava": "int", - "dataTypeTypescript": "number", + "widgetLabel": "Reason", + "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 20, "inputRule": "" }, { "auditType": "NONE", - "dataName": "PAYMENTRECORD_PAYMENTRECORDDIRECTION", + "dataLength": "100", + "dataName": "PAYMENTRECORD_DESCRIPTION", "dataNullable": true, - "dataType": "INTEGER", + "dataType": "VARCHAR", "description": "", - "name": "PaymentRecordDirection", + "name": "Description", "tooltip": "", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "Name", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "PaymentRecord_PaymentRecordDirection", - "relationshipEntityName": "PaymentRecordDirection", - "relationshipEntityPerspectiveName": "Settings", - "relationshipEntityPerspectiveLabel": "Entities", + "widgetType": "TEXTBOX", "dataNotNull": false, "dataAutoIncrement": false, "dataPrimaryKey": false, @@ -3788,20 +3781,22 @@ "isRequiredProperty": false, "isCalculatedProperty": false, "isReadOnlyProperty": false, - "widgetLabel": "PaymentRecordDirection", - "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts", - "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts", - "dataTypeJava": "int", - "dataTypeTypescript": "number", + "widgetLabel": "Description", + "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 20, "inputRule": "" }, { "auditType": "NONE", - "dataName": "PAYMENTRECORD_PAYMENTTYPE", + "dataName": "PAYMENTRECORD_COMPANY", "dataNullable": true, "dataType": "INTEGER", "description": "", - "name": "PaymentType", + "name": "Company", "tooltip": "", "widgetDropDownKey": "Id", "widgetDropDownValue": "Name", @@ -3809,9 +3804,9 @@ "widgetLength": "20", "widgetSize": "", "widgetType": "DROPDOWN", - "relationshipName": "PaymentRecord_PaymentType", - "relationshipEntityName": "PaymentType", - "relationshipEntityPerspectiveName": "Settings", + "relationshipName": "PaymentRecord_Company", + "relationshipEntityName": "Company", + "relationshipEntityPerspectiveName": "Companies", "relationshipEntityPerspectiveLabel": "Entities", "dataNotNull": false, "dataAutoIncrement": false, @@ -3820,9 +3815,9 @@ "isRequiredProperty": false, "isCalculatedProperty": false, "isReadOnlyProperty": false, - "widgetLabel": "PaymentType", - "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts", - "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts", + "widgetLabel": "Company", + "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -4535,97 +4530,6 @@ "primaryKeysString": "Id", "hasDropdowns": true }, - { - "properties": [ - { - "auditType": "NONE", - "dataAutoIncrement": true, - "dataName": "PAYMENTRECORDDIRECTION_ID", - "dataNullable": true, - "dataPrimaryKey": true, - "dataType": "INTEGER", - "description": "", - "name": "Id", - "tooltip": "", - "widgetIsMajor": true, - "widgetLength": "20", - "widgetSize": "", - "widgetType": "TEXTBOX", - "dataNotNull": false, - "dataUnique": false, - "isRequiredProperty": false, - "isCalculatedProperty": false, - "isReadOnlyProperty": false, - "widgetLabel": "Id", - "widgetDropdownUrl": "", - "widgetDropdownControllerUrl": "", - "dataTypeJava": "int", - "dataTypeTypescript": "number", - "inputRule": "" - }, - { - "auditType": "NONE", - "dataLength": "20", - "dataName": "PAYMENTRECORDDIRECTION_NAME", - "dataNullable": true, - "dataType": "VARCHAR", - "description": "", - "name": "Name", - "tooltip": "", - "widgetIsMajor": true, - "widgetLength": "20", - "widgetSize": "", - "widgetType": "TEXTBOX", - "dataNotNull": false, - "dataAutoIncrement": false, - "dataPrimaryKey": false, - "dataUnique": false, - "isRequiredProperty": false, - "isCalculatedProperty": false, - "isReadOnlyProperty": false, - "widgetLabel": "Name", - "widgetDropdownUrl": "", - "widgetDropdownControllerUrl": "", - "dataTypeJava": "string", - "dataTypeTypescript": "string", - "minLength": 0, - "maxLength": 20, - "inputRule": "" - } - ], - "caption": "Manage entity PaymentRecordDirection", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"CODBEX_PAYMENTRECORDDIRECTION\"", - "dataName": "PAYMENTRECORDDIRECTION", - "dataQuery": "", - "description": "Manage entity PaymentRecordDirection", - "feedPassword": "YWRtaW4=", - "feedUsername": "YWRtaW4=", - "generateDefaultRoles": "true", - "generateReport": "false", - "icon": "/services/web/resources/unicons/file.svg", - "menuIndex": "100", - "menuKey": "paymentrecorddirection", - "menuLabel": "PaymentRecordDirection", - "multilingual": "false", - "name": "PaymentRecordDirection", - "perspectiveHeader": "", - "perspectiveIcon": "/services/web/resources/unicons/copy.svg", - "perspectiveName": "Settings", - "perspectiveNavId": "", - "perspectiveOrder": "100", - "perspectiveRole": "", - "roleRead": "codbex-payments.Settings.PaymentRecordDirectionReadOnly", - "roleWrite": "codbex-payments.Settings.PaymentRecordDirectionFullAccess", - "title": "PaymentRecordDirection", - "tooltip": "PaymentRecordDirection", - "type": "SETTING", - "dataSource": "DefaultDB", - "referencedProjections": [], - "primaryKeys": [ - "Id" - ], - "primaryKeysString": "Id" - }, { "properties": [ { @@ -6014,6 +5918,93 @@ ], "primaryKeysString": "Id", "hasDropdowns": true + }, + { + "properties": [ + { + "auditType": "NONE", + "dataAutoIncrement": true, + "dataName": "PAYMENTDIRECTION_ID", + "dataNullable": true, + "dataPrimaryKey": true, + "dataType": "INTEGER", + "description": "", + "name": "Id", + "tooltip": "", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "", + "widgetType": "TEXTBOX", + "dataNotNull": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "isReadOnlyProperty": false, + "widgetLabel": "Id", + "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", + "dataTypeJava": "int", + "dataTypeTypescript": "number", + "inputRule": "" + }, + { + "auditType": "NONE", + "dataLength": "20", + "dataName": "PAYMENTDIRECTION_NAME", + "dataNullable": false, + "dataType": "VARCHAR", + "description": "", + "isRequiredProperty": true, + "name": "Name", + "tooltip": "", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "", + "widgetType": "TEXTBOX", + "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, + "isReadOnlyProperty": false, + "widgetLabel": "Name", + "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 20, + "inputRule": "" + } + ], + "caption": "Manage entity PaymentDirection", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"CODBEX_PAYMENTDIRECTION\"", + "dataName": "PAYMENTDIRECTION", + "dataQuery": "", + "description": "Manage entity PaymentDirection", + "generateDefaultRoles": "false", + "generateReport": "false", + "icon": "/services/web/resources/unicons/file.svg", + "menuIndex": "100", + "menuKey": "paymentdirection", + "menuLabel": "PaymentDirection", + "multilingual": "false", + "name": "PaymentDirection", + "perspectiveHeader": "", + "perspectiveIcon": "/services/web/resources/unicons/copy.svg", + "perspectiveName": "Settings", + "perspectiveNavId": "", + "perspectiveOrder": "100", + "perspectiveRole": "", + "title": "PaymentDirection", + "tooltip": "PaymentDirection", + "type": "SETTING", + "dataSource": "DefaultDB", + "referencedProjections": [], + "primaryKeys": [ + "Id" + ], + "primaryKeysString": "Id" } ] } \ No newline at end of file diff --git a/codbex-payments/codbex-payments.model b/codbex-payments/codbex-payments.model index 425fe08..42b5f89 100644 --- a/codbex-payments/codbex-payments.model +++ b/codbex-payments/codbex-payments.model @@ -937,77 +937,77 @@ }, { "auditType": "NONE", - "dataLength": "100", - "dataName": "PAYMENTRECORD_REASON", + "dataName": "PAYMENTRECORD_PAYMENTDIRECTION", "dataNullable": "true", - "dataType": "VARCHAR", + "dataType": "INTEGER", "description": "", - "name": "Reason", + "name": "PaymentDirection", "tooltip": "", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", "widgetIsMajor": "true", "widgetLength": "20", "widgetSize": "", - "widgetType": "TEXTBOX" + "widgetType": "DROPDOWN", + "relationshipName": "PaymentRecord_PaymentDirection", + "relationshipEntityName": "PaymentDirection", + "relationshipEntityPerspectiveName": "Settings", + "relationshipEntityPerspectiveLabel": "" }, { "auditType": "NONE", - "dataLength": "100", - "dataName": "PAYMENTRECORD_DESCRIPTION", + "dataName": "PAYMENTRECORD_PAYMENTTYPE", "dataNullable": "true", - "dataType": "VARCHAR", + "dataType": "INTEGER", "description": "", - "name": "Description", + "name": "PaymentType", "tooltip": "", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", "widgetIsMajor": "true", "widgetLength": "20", "widgetSize": "", - "widgetType": "TEXTBOX" + "widgetType": "DROPDOWN", + "relationshipName": "PaymentRecord_PaymentType", + "relationshipEntityName": "PaymentType", + "relationshipEntityPerspectiveName": "Settings", + "relationshipEntityPerspectiveLabel": "Entities" }, { "auditType": "NONE", - "dataName": "PAYMENTRECORD_COMPANY", + "dataLength": "100", + "dataName": "PAYMENTRECORD_REASON", "dataNullable": "true", - "dataType": "INTEGER", + "dataType": "VARCHAR", "description": "", - "name": "Company", + "name": "Reason", "tooltip": "", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "Name", "widgetIsMajor": "true", "widgetLength": "20", "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "PaymentRecord_Company", - "relationshipEntityName": "Company", - "relationshipEntityPerspectiveName": "Companies", - "relationshipEntityPerspectiveLabel": "Entities" + "widgetType": "TEXTBOX" }, { "auditType": "NONE", - "dataName": "PAYMENTRECORD_PAYMENTRECORDDIRECTION", + "dataLength": "100", + "dataName": "PAYMENTRECORD_DESCRIPTION", "dataNullable": "true", - "dataType": "INTEGER", + "dataType": "VARCHAR", "description": "", - "name": "PaymentRecordDirection", + "name": "Description", "tooltip": "", - "widgetDropDownKey": "Id", - "widgetDropDownValue": "Name", "widgetIsMajor": "true", "widgetLength": "20", "widgetSize": "", - "widgetType": "DROPDOWN", - "relationshipName": "PaymentRecord_PaymentRecordDirection", - "relationshipEntityName": "PaymentRecordDirection", - "relationshipEntityPerspectiveName": "Settings", - "relationshipEntityPerspectiveLabel": "Entities" + "widgetType": "TEXTBOX" }, { "auditType": "NONE", - "dataName": "PAYMENTRECORD_PAYMENTTYPE", + "dataName": "PAYMENTRECORD_COMPANY", "dataNullable": "true", "dataType": "INTEGER", "description": "", - "name": "PaymentType", + "name": "Company", "tooltip": "", "widgetDropDownKey": "Id", "widgetDropDownValue": "Name", @@ -1015,9 +1015,9 @@ "widgetLength": "20", "widgetSize": "", "widgetType": "DROPDOWN", - "relationshipName": "PaymentRecord_PaymentType", - "relationshipEntityName": "PaymentType", - "relationshipEntityPerspectiveName": "Settings", + "relationshipName": "PaymentRecord_Company", + "relationshipEntityName": "Company", + "relationshipEntityPerspectiveName": "Companies", "relationshipEntityPerspectiveLabel": "Entities" }, { @@ -1453,67 +1453,6 @@ "tooltip": "Company", "type": "PROJECTION" }, - { - "properties": [ - { - "auditType": "NONE", - "dataAutoIncrement": "true", - "dataName": "PAYMENTRECORDDIRECTION_ID", - "dataNullable": "true", - "dataPrimaryKey": "true", - "dataType": "INTEGER", - "description": "", - "name": "Id", - "tooltip": "", - "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "", - "widgetType": "TEXTBOX" - }, - { - "auditType": "NONE", - "dataLength": "20", - "dataName": "PAYMENTRECORDDIRECTION_NAME", - "dataNullable": "true", - "dataType": "VARCHAR", - "description": "", - "name": "Name", - "tooltip": "", - "widgetIsMajor": "true", - "widgetLength": "20", - "widgetSize": "", - "widgetType": "TEXTBOX" - } - ], - "caption": "Manage entity PaymentRecordDirection", - "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}PAYMENTRECORDDIRECTION\"", - "dataName": "PAYMENTRECORDDIRECTION", - "dataQuery": "", - "description": "Manage entity PaymentRecordDirection", - "feedPassword": "YWRtaW4=", - "feedUsername": "YWRtaW4=", - "generateDefaultRoles": "true", - "generateReport": "false", - "icon": "/services/web/resources/unicons/file.svg", - "layoutType": "MANAGE", - "menuIndex": "100", - "menuKey": "paymentrecorddirection", - "menuLabel": "PaymentRecordDirection", - "multilingual": "false", - "name": "PaymentRecordDirection", - "perspectiveHeader": "", - "perspectiveIcon": "/services/web/resources/unicons/copy.svg", - "perspectiveLabel": "Entities", - "perspectiveName": "Settings", - "perspectiveNavId": "", - "perspectiveOrder": "100", - "perspectiveRole": "", - "roleRead": "codbex-payments.Settings.PaymentRecordDirectionReadOnly", - "roleWrite": "codbex-payments.Settings.PaymentRecordDirectionFullAccess", - "title": "PaymentRecordDirection", - "tooltip": "PaymentRecordDirection", - "type": "SETTING" - }, { "properties": [ { @@ -2191,6 +2130,64 @@ "title": "Supplier", "tooltip": "Supplier", "type": "COPIED" + }, + { + "properties": [ + { + "auditType": "NONE", + "dataAutoIncrement": "true", + "dataName": "PAYMENTDIRECTION_ID", + "dataNullable": "true", + "dataPrimaryKey": "true", + "dataType": "INTEGER", + "description": "", + "name": "Id", + "tooltip": "", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "", + "widgetType": "TEXTBOX" + }, + { + "auditType": "NONE", + "dataLength": "20", + "dataName": "PAYMENTDIRECTION_NAME", + "dataNullable": "false", + "dataType": "VARCHAR", + "description": "", + "isRequiredProperty": "true", + "name": "Name", + "tooltip": "", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "", + "widgetType": "TEXTBOX" + } + ], + "caption": "Manage entity PaymentDirection", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}PAYMENTDIRECTION\"", + "dataName": "PAYMENTDIRECTION", + "dataQuery": "", + "description": "Manage entity PaymentDirection", + "generateDefaultRoles": "false", + "generateReport": "false", + "icon": "/services/web/resources/unicons/file.svg", + "layoutType": "", + "menuIndex": "100", + "menuKey": "paymentdirection", + "menuLabel": "PaymentDirection", + "multilingual": "false", + "name": "PaymentDirection", + "perspectiveHeader": "", + "perspectiveIcon": "/services/web/resources/unicons/copy.svg", + "perspectiveLabel": "", + "perspectiveName": "Settings", + "perspectiveNavId": "", + "perspectiveOrder": "100", + "perspectiveRole": "", + "title": "PaymentDirection", + "tooltip": "PaymentDirection", + "type": "SETTING" } ], "perspectives": [ diff --git a/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts b/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts similarity index 61% rename from codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts rename to codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts index 24fecb1..a2f673e 100644 --- a/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts +++ b/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts @@ -1,29 +1,26 @@ import { Controller, Get, Post, Put, Delete, Documentation, request, response } from '@aerokit/sdk/http' import { HttpUtils } from "@aerokit/sdk/http/utils"; import { ValidationError } from '@aerokit/sdk/http/errors' -import { ForbiddenError } from '@aerokit/sdk/http/errors' -import { user } from '@aerokit/sdk/security' import { Options } from '@aerokit/sdk/db' import { Extensions } from "@aerokit/sdk/extensions" import { Injected, Inject } from '@aerokit/sdk/component' -import { PaymentRecordDirectionRepository } from '../../data/Settings/PaymentRecordDirectionRepository' -import { PaymentRecordDirectionEntity } from '../../data/Settings/PaymentRecordDirectionEntity' +import { PaymentDirectionRepository } from '../../data/Settings/PaymentDirectionRepository' +import { PaymentDirectionEntity } from '../../data/Settings/PaymentDirectionEntity' -const validationModules = await Extensions.loadExtensionModules('codbex-payments-Settings-PaymentRecordDirection', ['validate']); +const validationModules = await Extensions.loadExtensionModules('codbex-payments-Settings-PaymentDirection', ['validate']); @Controller -@Documentation('codbex-payments - PaymentRecordDirection Controller') +@Documentation('codbex-payments - PaymentDirection Controller') @Injected() -class PaymentRecordDirectionController { +class PaymentDirectionController { - @Inject('PaymentRecordDirectionRepository') - private readonly repository!: PaymentRecordDirectionRepository; + @Inject('PaymentDirectionRepository') + private readonly repository!: PaymentDirectionRepository; @Get('/') - @Documentation('Get All PaymentRecordDirection') - public getAll(_: any, ctx: any): PaymentRecordDirectionEntity[] { + @Documentation('Get All PaymentDirection') + public getAll(_: any, ctx: any): PaymentDirectionEntity[] { try { - this.checkPermissions('read'); const options: Options = { limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20, offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0, @@ -38,13 +35,12 @@ class PaymentRecordDirectionController { } @Post('/') - @Documentation('Create PaymentRecordDirection') - public create(entity: PaymentRecordDirectionEntity): PaymentRecordDirectionEntity { + @Documentation('Create PaymentDirection') + public create(entity: PaymentDirectionEntity): PaymentDirectionEntity { try { - this.checkPermissions('write'); this.validateEntity(entity); entity.Id = this.repository.create(entity) as any; - response.setHeader('Content-Location', '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts/' + entity.Id); + response.setHeader('Content-Location', '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionService.ts/' + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { @@ -54,10 +50,9 @@ class PaymentRecordDirectionController { } @Get('/count') - @Documentation('Count PaymentRecordDirection') + @Documentation('Count PaymentDirection') public count(): { count: number } { try { - this.checkPermissions('read'); return { count: this.repository.count() }; } catch (error: any) { this.handleError(error); @@ -66,10 +61,9 @@ class PaymentRecordDirectionController { } @Post('/count') - @Documentation('Count PaymentRecordDirection with filter') + @Documentation('Count PaymentDirection with filter') public countWithFilter(filter: any): { count: number } { try { - this.checkPermissions('read'); return { count: this.repository.count(filter) }; } catch (error: any) { this.handleError(error); @@ -78,10 +72,9 @@ class PaymentRecordDirectionController { } @Post('/search') - @Documentation('Search PaymentRecordDirection') - public search(filter: any): PaymentRecordDirectionEntity[] { + @Documentation('Search PaymentDirection') + public search(filter: any): PaymentDirectionEntity[] { try { - this.checkPermissions('read'); return this.repository.findAll(filter); } catch (error: any) { this.handleError(error); @@ -90,10 +83,9 @@ class PaymentRecordDirectionController { } @Get('/:id') - @Documentation('Get PaymentRecordDirection by id') - public getById(_: any, ctx: any): PaymentRecordDirectionEntity { + @Documentation('Get PaymentDirection by id') + public getById(_: any, ctx: any): PaymentDirectionEntity { try { - this.checkPermissions('read'); const id = parseInt(ctx.pathParameters.id); const options: Options = { language: request.getLocale().slice(0, 2) @@ -102,7 +94,7 @@ class PaymentRecordDirectionController { if (entity) { return entity; } else { - HttpUtils.sendResponseNotFound('PaymentRecordDirection not found'); + HttpUtils.sendResponseNotFound('PaymentDirection not found'); } } catch (error: any) { this.handleError(error); @@ -111,10 +103,9 @@ class PaymentRecordDirectionController { } @Put('/:id') - @Documentation('Update PaymentRecordDirection by id') - public update(entity: PaymentRecordDirectionEntity, ctx: any): PaymentRecordDirectionEntity { + @Documentation('Update PaymentDirection by id') + public update(entity: PaymentDirectionEntity, ctx: any): PaymentDirectionEntity { try { - this.checkPermissions('write'); const id = parseInt(ctx.pathParameters.id); entity.Id = id; this.validateEntity(entity); @@ -127,17 +118,16 @@ class PaymentRecordDirectionController { } @Delete('/:id') - @Documentation('Delete PaymentRecordDirection by id') + @Documentation('Delete PaymentDirection by id') public deleteById(_: any, ctx: any): void { try { - this.checkPermissions('write'); const id = parseInt(ctx.pathParameters.id); const entity = this.repository.findById(id); if (entity) { this.repository.deleteById(id); HttpUtils.sendResponseNoContent(); } else { - HttpUtils.sendResponseNotFound('PaymentRecordDirection not found'); + HttpUtils.sendResponseNotFound('PaymentDirection not found'); } } catch (error: any) { this.handleError(error); @@ -154,16 +144,10 @@ class PaymentRecordDirectionController { } } - private checkPermissions(operationType: string) { - if (operationType === 'read' && !(user.isInRole('codbex-payments.Settings.PaymentRecordDirectionReadOnly') || user.isInRole('codbex-payments.Settings.PaymentRecordDirectionFullAccess'))) { - throw new ForbiddenError(); - } - if (operationType === 'write' && !user.isInRole('codbex-payments.Settings.PaymentRecordDirectionFullAccess')) { - throw new ForbiddenError(); - } - } - private validateEntity(entity: any): void { + if (entity.Name === null || entity.Name === undefined) { + throw new ValidationError(`The 'Name' property is required, provide a valid value`); + } if (entity.Name?.length > 20) { throw new ValidationError(`The 'Name' exceeds the maximum length of [20] characters`); } diff --git a/codbex-payments/gen/codbex-payments/dao/PaymentRecord/PaymentRecordRepository.ts b/codbex-payments/gen/codbex-payments/dao/PaymentRecord/PaymentRecordRepository.ts index d7053da..3a8353a 100644 --- a/codbex-payments/gen/codbex-payments/dao/PaymentRecord/PaymentRecordRepository.ts +++ b/codbex-payments/gen/codbex-payments/dao/PaymentRecord/PaymentRecordRepository.ts @@ -13,11 +13,11 @@ export interface PaymentRecordEntity { CounterpartyName?: string; Amount?: number; Currency?: number; + PaymentDirection?: number; + PaymentType?: number; Reason?: string; Description?: string; Company?: number; - PaymentRecordDirection?: number; - PaymentType?: number; UUID: string; Reference?: string; Deleted?: boolean; @@ -31,11 +31,11 @@ export interface PaymentRecordCreateEntity { readonly CounterpartyName?: string; readonly Amount?: number; readonly Currency?: number; + readonly PaymentDirection?: number; + readonly PaymentType?: number; readonly Reason?: string; readonly Description?: string; readonly Company?: number; - readonly PaymentRecordDirection?: number; - readonly PaymentType?: number; readonly Reference?: string; readonly Deleted?: boolean; } @@ -55,11 +55,11 @@ export interface PaymentRecordEntityOptions { CounterpartyName?: string | string[]; Amount?: number | number[]; Currency?: number | number[]; + PaymentDirection?: number | number[]; + PaymentType?: number | number[]; Reason?: string | string[]; Description?: string | string[]; Company?: number | number[]; - PaymentRecordDirection?: number | number[]; - PaymentType?: number | number[]; UUID?: string | string[]; Reference?: string | string[]; Deleted?: boolean | boolean[]; @@ -73,11 +73,11 @@ export interface PaymentRecordEntityOptions { CounterpartyName?: string | string[]; Amount?: number | number[]; Currency?: number | number[]; + PaymentDirection?: number | number[]; + PaymentType?: number | number[]; Reason?: string | string[]; Description?: string | string[]; Company?: number | number[]; - PaymentRecordDirection?: number | number[]; - PaymentType?: number | number[]; UUID?: string | string[]; Reference?: string | string[]; Deleted?: boolean | boolean[]; @@ -91,11 +91,11 @@ export interface PaymentRecordEntityOptions { CounterpartyName?: string; Amount?: number; Currency?: number; + PaymentDirection?: number; + PaymentType?: number; Reason?: string; Description?: string; Company?: number; - PaymentRecordDirection?: number; - PaymentType?: number; UUID?: string; Reference?: string; Deleted?: boolean; @@ -109,11 +109,11 @@ export interface PaymentRecordEntityOptions { CounterpartyName?: string; Amount?: number; Currency?: number; + PaymentDirection?: number; + PaymentType?: number; Reason?: string; Description?: string; Company?: number; - PaymentRecordDirection?: number; - PaymentType?: number; UUID?: string; Reference?: string; Deleted?: boolean; @@ -127,11 +127,11 @@ export interface PaymentRecordEntityOptions { CounterpartyName?: string; Amount?: number; Currency?: number; + PaymentDirection?: number; + PaymentType?: number; Reason?: string; Description?: string; Company?: number; - PaymentRecordDirection?: number; - PaymentType?: number; UUID?: string; Reference?: string; Deleted?: boolean; @@ -145,11 +145,11 @@ export interface PaymentRecordEntityOptions { CounterpartyName?: string; Amount?: number; Currency?: number; + PaymentDirection?: number; + PaymentType?: number; Reason?: string; Description?: string; Company?: number; - PaymentRecordDirection?: number; - PaymentType?: number; UUID?: string; Reference?: string; Deleted?: boolean; @@ -163,11 +163,11 @@ export interface PaymentRecordEntityOptions { CounterpartyName?: string; Amount?: number; Currency?: number; + PaymentDirection?: number; + PaymentType?: number; Reason?: string; Description?: string; Company?: number; - PaymentRecordDirection?: number; - PaymentType?: number; UUID?: string; Reference?: string; Deleted?: boolean; @@ -245,6 +245,16 @@ export class PaymentRecordRepository { column: "PAYMENTRECORD_CURRENCY", type: "INTEGER", }, + { + name: "PaymentDirection", + column: "PAYMENTRECORD_PAYMENTDIRECTION", + type: "INTEGER", + }, + { + name: "PaymentType", + column: "PAYMENTRECORD_PAYMENTTYPE", + type: "INTEGER", + }, { name: "Reason", column: "PAYMENTRECORD_REASON", @@ -260,16 +270,6 @@ export class PaymentRecordRepository { column: "PAYMENTRECORD_COMPANY", type: "INTEGER", }, - { - name: "PaymentRecordDirection", - column: "PAYMENTRECORD_PAYMENTRECORDDIRECTION", - type: "INTEGER", - }, - { - name: "PaymentType", - column: "PAYMENTRECORD_PAYMENTTYPE", - type: "INTEGER", - }, { name: "UUID", column: "PAYMENTRECORD_UUID", diff --git a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentDirection.extensionpoint b/codbex-payments/gen/codbex-payments/dao/Settings/PaymentDirection.extensionpoint new file mode 100644 index 0000000..44517c5 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/dao/Settings/PaymentDirection.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "codbex-payments-Settings-PaymentDirection", + "description": "Extension Point for the codbex-payments-Settings-PaymentDirection entity" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentRecordDirectionRepository.ts b/codbex-payments/gen/codbex-payments/dao/Settings/PaymentDirectionRepository.ts similarity index 61% rename from codbex-payments/gen/codbex-payments/dao/Settings/PaymentRecordDirectionRepository.ts rename to codbex-payments/gen/codbex-payments/dao/Settings/PaymentDirectionRepository.ts index 4b62d00..93ca471 100644 --- a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentRecordDirectionRepository.ts +++ b/codbex-payments/gen/codbex-payments/dao/Settings/PaymentDirectionRepository.ts @@ -3,20 +3,20 @@ import { producer } from "@aerokit/sdk/messaging"; import { extensions } from "@aerokit/sdk/extensions"; import { dao as daoApi } from "@aerokit/sdk/db"; -export interface PaymentRecordDirectionEntity { +export interface PaymentDirectionEntity { readonly Id: number; - Name?: string; + Name: string; } -export interface PaymentRecordDirectionCreateEntity { - readonly Name?: string; +export interface PaymentDirectionCreateEntity { + readonly Name: string; } -export interface PaymentRecordDirectionUpdateEntity extends PaymentRecordDirectionCreateEntity { +export interface PaymentDirectionUpdateEntity extends PaymentDirectionCreateEntity { readonly Id: number; } -export interface PaymentRecordDirectionEntityOptions { +export interface PaymentDirectionEntityOptions { $filter?: { equals?: { Id?: number | number[]; @@ -47,18 +47,18 @@ export interface PaymentRecordDirectionEntityOptions { Name?: string; }; }, - $select?: (keyof PaymentRecordDirectionEntity)[], - $sort?: string | (keyof PaymentRecordDirectionEntity)[], + $select?: (keyof PaymentDirectionEntity)[], + $sort?: string | (keyof PaymentDirectionEntity)[], $order?: 'ASC' | 'DESC', $offset?: number, $limit?: number, $language?: string } -export interface PaymentRecordDirectionEntityEvent { +export interface PaymentDirectionEntityEvent { readonly operation: 'create' | 'update' | 'delete'; readonly table: string; - readonly entity: Partial; + readonly entity: Partial; readonly key: { name: string; column: string; @@ -66,26 +66,27 @@ export interface PaymentRecordDirectionEntityEvent { } } -export interface PaymentRecordDirectionUpdateEntityEvent extends PaymentRecordDirectionEntityEvent { - readonly previousEntity: PaymentRecordDirectionEntity; +export interface PaymentDirectionUpdateEntityEvent extends PaymentDirectionEntityEvent { + readonly previousEntity: PaymentDirectionEntity; } -export class PaymentRecordDirectionRepository { +export class PaymentDirectionRepository { private static readonly DEFINITION = { - table: "CODBEX_PAYMENTRECORDDIRECTION", + table: "CODBEX_PAYMENTDIRECTION", properties: [ { name: "Id", - column: "PAYMENTRECORDDIRECTION_ID", + column: "PAYMENTDIRECTION_ID", type: "INTEGER", id: true, autoIncrement: true, }, { name: "Name", - column: "PAYMENTRECORDDIRECTION_NAME", + column: "PAYMENTDIRECTION_NAME", type: "VARCHAR", + required: true } ] }; @@ -93,59 +94,59 @@ export class PaymentRecordDirectionRepository { private readonly dao; constructor(dataSource = "DefaultDB") { - this.dao = daoApi.create(PaymentRecordDirectionRepository.DEFINITION, undefined, dataSource); + this.dao = daoApi.create(PaymentDirectionRepository.DEFINITION, undefined, dataSource); } - public findAll(options: PaymentRecordDirectionEntityOptions = {}): PaymentRecordDirectionEntity[] { + public findAll(options: PaymentDirectionEntityOptions = {}): PaymentDirectionEntity[] { let list = this.dao.list(options); return list; } - public findById(id: number, options: PaymentRecordDirectionEntityOptions = {}): PaymentRecordDirectionEntity | undefined { + public findById(id: number, options: PaymentDirectionEntityOptions = {}): PaymentDirectionEntity | undefined { const entity = this.dao.find(id); return entity ?? undefined; } - public create(entity: PaymentRecordDirectionCreateEntity): number { + public create(entity: PaymentDirectionCreateEntity): number { const id = this.dao.insert(entity); this.triggerEvent({ operation: "create", - table: "CODBEX_PAYMENTRECORDDIRECTION", + table: "CODBEX_PAYMENTDIRECTION", entity: entity, key: { name: "Id", - column: "PAYMENTRECORDDIRECTION_ID", + column: "PAYMENTDIRECTION_ID", value: id } }); return id; } - public update(entity: PaymentRecordDirectionUpdateEntity): void { + public update(entity: PaymentDirectionUpdateEntity): void { const previousEntity = this.findById(entity.Id); this.dao.update(entity); this.triggerEvent({ operation: "update", - table: "CODBEX_PAYMENTRECORDDIRECTION", + table: "CODBEX_PAYMENTDIRECTION", entity: entity, previousEntity: previousEntity, key: { name: "Id", - column: "PAYMENTRECORDDIRECTION_ID", + column: "PAYMENTDIRECTION_ID", value: entity.Id } }); } - public upsert(entity: PaymentRecordDirectionCreateEntity | PaymentRecordDirectionUpdateEntity): number { - const id = (entity as PaymentRecordDirectionUpdateEntity).Id; + public upsert(entity: PaymentDirectionCreateEntity | PaymentDirectionUpdateEntity): number { + const id = (entity as PaymentDirectionUpdateEntity).Id; if (!id) { return this.create(entity); } const existingEntity = this.findById(id); if (existingEntity) { - this.update(entity as PaymentRecordDirectionUpdateEntity); + this.update(entity as PaymentDirectionUpdateEntity); return id; } else { return this.create(entity); @@ -157,22 +158,22 @@ export class PaymentRecordDirectionRepository { this.dao.remove(id); this.triggerEvent({ operation: "delete", - table: "CODBEX_PAYMENTRECORDDIRECTION", + table: "CODBEX_PAYMENTDIRECTION", entity: entity, key: { name: "Id", - column: "PAYMENTRECORDDIRECTION_ID", + column: "PAYMENTDIRECTION_ID", value: id } }); } - public count(options?: PaymentRecordDirectionEntityOptions): number { + public count(options?: PaymentDirectionEntityOptions): number { return this.dao.count(options); } public customDataCount(): number { - const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "CODBEX_PAYMENTRECORDDIRECTION"'); + const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "CODBEX_PAYMENTDIRECTION"'); if (resultSet !== null && resultSet[0] !== null) { if (resultSet[0].COUNT !== undefined && resultSet[0].COUNT !== null) { return resultSet[0].COUNT; @@ -183,8 +184,8 @@ export class PaymentRecordDirectionRepository { return 0; } - private async triggerEvent(data: PaymentRecordDirectionEntityEvent | PaymentRecordDirectionUpdateEntityEvent) { - const triggerExtensions = await extensions.loadExtensionModules("codbex-payments-Settings-PaymentRecordDirection", ["trigger"]); + private async triggerEvent(data: PaymentDirectionEntityEvent | PaymentDirectionUpdateEntityEvent) { + const triggerExtensions = await extensions.loadExtensionModules("codbex-payments-Settings-PaymentDirection", ["trigger"]); triggerExtensions.forEach(triggerExtension => { try { triggerExtension.trigger(data); @@ -192,6 +193,6 @@ export class PaymentRecordDirectionRepository { console.error(error); } }); - producer.topic("codbex-payments-Settings-PaymentRecordDirection").send(JSON.stringify(data)); + producer.topic("codbex-payments-Settings-PaymentDirection").send(JSON.stringify(data)); } } diff --git a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentRecordDirection.extensionpoint b/codbex-payments/gen/codbex-payments/dao/Settings/PaymentRecordDirection.extensionpoint deleted file mode 100644 index ad1c071..0000000 --- a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentRecordDirection.extensionpoint +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "codbex-payments-Settings-PaymentRecordDirection", - "description": "Extension Point for the codbex-payments-Settings-PaymentRecordDirection entity" -} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordEntity.ts b/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordEntity.ts index c5dfa08..ea890a4 100644 --- a/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordEntity.ts +++ b/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordEntity.ts @@ -73,6 +73,22 @@ export class PaymentRecordEntity { }) public Currency?: number; + @Documentation('PaymentDirection') + @Column({ + name: 'PAYMENTRECORD_PAYMENTDIRECTION', + type: 'integer', + nullable: true, + }) + public PaymentDirection?: number; + + @Documentation('PaymentType') + @Column({ + name: 'PAYMENTRECORD_PAYMENTTYPE', + type: 'integer', + nullable: true, + }) + public PaymentType?: number; + @Documentation('Reason') @Column({ name: 'PAYMENTRECORD_REASON', @@ -99,22 +115,6 @@ export class PaymentRecordEntity { }) public Company?: number; - @Documentation('PaymentRecordDirection') - @Column({ - name: 'PAYMENTRECORD_PAYMENTRECORDDIRECTION', - type: 'integer', - nullable: true, - }) - public PaymentRecordDirection?: number; - - @Documentation('PaymentType') - @Column({ - name: 'PAYMENTRECORD_PAYMENTTYPE', - type: 'integer', - nullable: true, - }) - public PaymentType?: number; - @Documentation('UUID') @Column({ name: 'PAYMENTRECORD_UUID', diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentDirection.extensionpoint b/codbex-payments/gen/codbex-payments/data/Settings/PaymentDirection.extensionpoint new file mode 100644 index 0000000..44517c5 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentDirection.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "codbex-payments-Settings-PaymentDirection", + "description": "Extension Point for the codbex-payments-Settings-PaymentDirection entity" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionEntity.ts b/codbex-payments/gen/codbex-payments/data/Settings/PaymentDirectionEntity.ts similarity index 50% rename from codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionEntity.ts rename to codbex-payments/gen/codbex-payments/data/Settings/PaymentDirectionEntity.ts index 15fdbd8..7a89d4a 100644 --- a/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionEntity.ts +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentDirectionEntity.ts @@ -1,28 +1,27 @@ import { Entity, Table, Id, Generated, Column, Documentation, CreatedAt, CreatedBy, UpdatedAt, UpdatedBy} from '@aerokit/sdk/db' -@Entity('PaymentRecordDirectionEntity') -@Table('CODBEX_PAYMENTRECORDDIRECTION') -@Documentation('PaymentRecordDirection entity mapping') -export class PaymentRecordDirectionEntity { +@Entity('PaymentDirectionEntity') +@Table('CODBEX_PAYMENTDIRECTION') +@Documentation('PaymentDirection entity mapping') +export class PaymentDirectionEntity { @Id() @Generated('sequence') @Documentation('Id') @Column({ - name: 'PAYMENTRECORDDIRECTION_ID', + name: 'PAYMENTDIRECTION_ID', type: 'integer', }) public Id?: number; @Documentation('Name') @Column({ - name: 'PAYMENTRECORDDIRECTION_NAME', + name: 'PAYMENTDIRECTION_NAME', type: 'string', length: 20, - nullable: true, }) - public Name?: string; + public Name!: string; } -(new PaymentRecordDirectionEntity()); +(new PaymentDirectionEntity()); diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionRepository.ts b/codbex-payments/gen/codbex-payments/data/Settings/PaymentDirectionRepository.ts similarity index 54% rename from codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionRepository.ts rename to codbex-payments/gen/codbex-payments/data/Settings/PaymentDirectionRepository.ts index 91f7202..353f921 100644 --- a/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionRepository.ts +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentDirectionRepository.ts @@ -2,17 +2,17 @@ import { Repository, EntityEvent, EntityConstructor } from '@aerokit/sdk/db' import { Component } from '@aerokit/sdk/component' import { Producer } from '@aerokit/sdk/messaging' import { Extensions } from '@aerokit/sdk/extensions' -import { PaymentRecordDirectionEntity } from './PaymentRecordDirectionEntity' +import { PaymentDirectionEntity } from './PaymentDirectionEntity' -@Component('PaymentRecordDirectionRepository') -export class PaymentRecordDirectionRepository extends Repository { +@Component('PaymentDirectionRepository') +export class PaymentDirectionRepository extends Repository { constructor() { - super((PaymentRecordDirectionEntity as EntityConstructor)); + super((PaymentDirectionEntity as EntityConstructor)); } - protected override async triggerEvent(data: EntityEvent): Promise { - const triggerExtensions = await Extensions.loadExtensionModules('codbex-payments-Settings-PaymentRecordDirection', ['trigger']); + protected override async triggerEvent(data: EntityEvent): Promise { + const triggerExtensions = await Extensions.loadExtensionModules('codbex-payments-Settings-PaymentDirection', ['trigger']); triggerExtensions.forEach(triggerExtension => { try { triggerExtension.trigger(data); @@ -20,6 +20,6 @@ export class PaymentRecordDirectionRepository extends Repository { @@ -238,8 +238,8 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer }); }); - $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts').then((response) => { - $scope.optionsCompany = response.data.map(e => ({ + $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts').then((response) => { + $scope.optionsPaymentDirection = response.data.map(e => ({ value: e.Id, text: e.Name })); @@ -247,14 +247,14 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer console.error(error); const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'Company', + title: 'PaymentDirection', message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts').then((response) => { - $scope.optionsPaymentRecordDirection = response.data.map(e => ({ + $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts').then((response) => { + $scope.optionsPaymentType = response.data.map(e => ({ value: e.Id, text: e.Name })); @@ -262,14 +262,14 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer console.error(error); const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'PaymentRecordDirection', + title: 'PaymentType', message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts').then((response) => { - $scope.optionsPaymentType = response.data.map(e => ({ + $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts').then((response) => { + $scope.optionsCompany = response.data.map(e => ({ value: e.Id, text: e.Name })); @@ -277,7 +277,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer console.error(error); const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'PaymentType', + title: 'Company', message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); @@ -291,18 +291,10 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer } return null; }; - $scope.optionsCompanyValue = (optionKey) => { - for (let i = 0; i < $scope.optionsCompany.length; i++) { - if ($scope.optionsCompany[i].value === optionKey) { - return $scope.optionsCompany[i].text; - } - } - return null; - }; - $scope.optionsPaymentRecordDirectionValue = (optionKey) => { - for (let i = 0; i < $scope.optionsPaymentRecordDirection.length; i++) { - if ($scope.optionsPaymentRecordDirection[i].value === optionKey) { - return $scope.optionsPaymentRecordDirection[i].text; + $scope.optionsPaymentDirectionValue = (optionKey) => { + for (let i = 0; i < $scope.optionsPaymentDirection.length; i++) { + if ($scope.optionsPaymentDirection[i].value === optionKey) { + return $scope.optionsPaymentDirection[i].text; } } return null; @@ -315,5 +307,13 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer } return null; }; + $scope.optionsCompanyValue = (optionKey) => { + for (let i = 0; i < $scope.optionsCompany.length; i++) { + if ($scope.optionsCompany[i].value === optionKey) { + return $scope.optionsCompany[i].text; + } + } + return null; + }; //----------------Dropdowns-----------------// }); diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/controller.js b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/controller.js index 2e71112..c847905 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/controller.js @@ -23,9 +23,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle $scope.selectedMainEntityKey = params.selectedMainEntityKey; $scope.selectedMainEntityId = params.selectedMainEntityId; $scope.optionsCurrency = params.optionsCurrency; - $scope.optionsCompany = params.optionsCompany; - $scope.optionsPaymentRecordDirection = params.optionsPaymentRecordDirection; + $scope.optionsPaymentDirection = params.optionsPaymentDirection; $scope.optionsPaymentType = params.optionsPaymentType; + $scope.optionsCompany = params.optionsCompany; } $scope.filter = () => { @@ -78,6 +78,14 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle const condition = { propertyName: 'Currency', operator: 'EQ', value: entity.Currency }; filter.$filter.conditions.push(condition); } + if (entity.PaymentDirection !== undefined) { + const condition = { propertyName: 'PaymentDirection', operator: 'EQ', value: entity.PaymentDirection }; + filter.$filter.conditions.push(condition); + } + if (entity.PaymentType !== undefined) { + const condition = { propertyName: 'PaymentType', operator: 'EQ', value: entity.PaymentType }; + filter.$filter.conditions.push(condition); + } if (entity.Reason) { const condition = { propertyName: 'Reason', operator: 'LIKE', value: `%${entity.Reason}%` }; filter.$filter.conditions.push(condition); @@ -90,14 +98,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle const condition = { propertyName: 'Company', operator: 'EQ', value: entity.Company }; filter.$filter.conditions.push(condition); } - if (entity.PaymentRecordDirection !== undefined) { - const condition = { propertyName: 'PaymentRecordDirection', operator: 'EQ', value: entity.PaymentRecordDirection }; - filter.$filter.conditions.push(condition); - } - if (entity.PaymentType !== undefined) { - const condition = { propertyName: 'PaymentType', operator: 'EQ', value: entity.PaymentType }; - filter.$filter.conditions.push(condition); - } if (entity.UUID) { const condition = { propertyName: 'UUID', operator: 'LIKE', value: `%${entity.UUID}%` }; filter.$filter.conditions.push(condition); diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/index.html b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/index.html index f7daeff..7e72e05 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/index.html +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/index.html @@ -152,6 +152,36 @@
+ +
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTDIRECTION' | t }} +
+
+ + +
+
+ +
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} +
+
+ + +
+
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REASON' | t }} @@ -201,36 +231,6 @@
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTRECORDDIRECTION' | t }} -
-
- - -
-
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} -
-
- - -
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_UUID' | t }} diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/controller.js b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/controller.js index 124854b..9d620b1 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/controller.js @@ -41,9 +41,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.selectedMainEntityKey = params.selectedMainEntityKey; $scope.selectedMainEntityId = params.selectedMainEntityId; $scope.optionsCurrency = params.optionsCurrency; - $scope.optionsCompany = params.optionsCompany; - $scope.optionsPaymentRecordDirection = params.optionsPaymentRecordDirection; + $scope.optionsPaymentDirection = params.optionsPaymentDirection; $scope.optionsPaymentType = params.optionsPaymentType; + $scope.optionsCompany = params.optionsCompany; } $scope.create = () => { @@ -105,12 +105,12 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer type: AlertTypes.Error }); }); - $scope.serviceCompany = '/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts'; + $scope.servicePaymentDirection = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts'; - $scope.optionsCompany = []; + $scope.optionsPaymentDirection = []; - $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts').then((response) => { - $scope.optionsCompany = response.data.map(e => ({ + $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts').then((response) => { + $scope.optionsPaymentDirection = response.data.map(e => ({ value: e.Id, text: e.Name })); @@ -118,17 +118,17 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer console.error(error); const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'Company', + title: 'PaymentDirection', message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); - $scope.servicePaymentRecordDirection = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts'; + $scope.servicePaymentType = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts'; - $scope.optionsPaymentRecordDirection = []; + $scope.optionsPaymentType = []; - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts').then((response) => { - $scope.optionsPaymentRecordDirection = response.data.map(e => ({ + $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts').then((response) => { + $scope.optionsPaymentType = response.data.map(e => ({ value: e.Id, text: e.Name })); @@ -136,17 +136,17 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer console.error(error); const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'PaymentRecordDirection', + title: 'PaymentType', message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); - $scope.servicePaymentType = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts'; + $scope.serviceCompany = '/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts'; - $scope.optionsPaymentType = []; + $scope.optionsCompany = []; - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts').then((response) => { - $scope.optionsPaymentType = response.data.map(e => ({ + $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts').then((response) => { + $scope.optionsCompany = response.data.map(e => ({ value: e.Id, text: e.Name })); @@ -154,7 +154,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer console.error(error); const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'PaymentType', + title: 'Company', message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/index.html b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/index.html index 95565c2..ecde131 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/index.html +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/index.html @@ -144,6 +144,40 @@
+ +
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTDIRECTION' | t }} +
+
+ + +
+
+ +
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} +
+
+ + +
+
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REASON' | t }} @@ -201,40 +235,6 @@
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTRECORDDIRECTION' | t }} -
-
- - -
-
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} -
-
- - -
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_UUID' | t }} diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/index.html b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/index.html index 96abdaa..d7cd2ea 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/index.html +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/index.html @@ -46,11 +46,11 @@ {{next.CounterpartyName}} | {{next.Amount}} | {{optionsCurrencyValue(next.Currency)}} | + {{optionsPaymentDirectionValue(next.PaymentDirection)}} | + {{optionsPaymentTypeValue(next.PaymentType)}} | {{next.Reason}} | {{next.Description}} | {{optionsCompanyValue(next.Company)}} | - {{optionsPaymentRecordDirectionValue(next.PaymentRecordDirection)}} | - {{optionsPaymentTypeValue(next.PaymentType)}} | {{next.UUID}} | {{next.Reference}} | {{next.Deleted}} diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/controller.js b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/controller.js index ed4afb3..1b56b13 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/controller.js @@ -51,9 +51,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.$evalAsync(() => { $scope.entity = {}; $scope.optionsCurrency = []; - $scope.optionsCompany = []; - $scope.optionsPaymentRecordDirection = []; + $scope.optionsPaymentDirection = []; $scope.optionsPaymentType = []; + $scope.optionsCompany = []; $scope.action = 'select'; }); }}); @@ -67,9 +67,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer } $scope.entity = data.entity; $scope.optionsCurrency = data.optionsCurrency; - $scope.optionsCompany = data.optionsCompany; - $scope.optionsPaymentRecordDirection = data.optionsPaymentRecordDirection; + $scope.optionsPaymentDirection = data.optionsPaymentDirection; $scope.optionsPaymentType = data.optionsPaymentType; + $scope.optionsCompany = data.optionsCompany; $scope.action = 'select'; }); }}); @@ -77,9 +77,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.$evalAsync(() => { $scope.entity = {}; $scope.optionsCurrency = data.optionsCurrency; - $scope.optionsCompany = data.optionsCompany; - $scope.optionsPaymentRecordDirection = data.optionsPaymentRecordDirection; + $scope.optionsPaymentDirection = data.optionsPaymentDirection; $scope.optionsPaymentType = data.optionsPaymentType; + $scope.optionsCompany = data.optionsCompany; $scope.action = 'create'; }); }}); @@ -93,17 +93,17 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer } $scope.entity = data.entity; $scope.optionsCurrency = data.optionsCurrency; - $scope.optionsCompany = data.optionsCompany; - $scope.optionsPaymentRecordDirection = data.optionsPaymentRecordDirection; + $scope.optionsPaymentDirection = data.optionsPaymentDirection; $scope.optionsPaymentType = data.optionsPaymentType; + $scope.optionsCompany = data.optionsCompany; $scope.action = 'update'; }); }}); $scope.serviceCurrency = '/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts'; - $scope.serviceCompany = '/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts'; - $scope.servicePaymentRecordDirection = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts'; + $scope.servicePaymentDirection = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts'; $scope.servicePaymentType = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts'; + $scope.serviceCompany = '/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts'; //-----------------Events-------------------// @@ -171,9 +171,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer closeButton: false }); }; - $scope.createCompany = () => { + $scope.createPaymentDirection = () => { Dialogs.showWindow({ - id: 'Company-details', + id: 'PaymentDirection-details', params: { action: 'create', entity: {}, @@ -181,9 +181,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer closeButton: false }); }; - $scope.createPaymentRecordDirection = () => { + $scope.createPaymentType = () => { Dialogs.showWindow({ - id: 'PaymentRecordDirection-details', + id: 'PaymentType-details', params: { action: 'create', entity: {}, @@ -191,9 +191,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer closeButton: false }); }; - $scope.createPaymentType = () => { + $scope.createCompany = () => { Dialogs.showWindow({ - id: 'PaymentType-details', + id: 'Company-details', params: { action: 'create', entity: {}, @@ -225,10 +225,10 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer }); }); }; - $scope.refreshCompany = () => { - $scope.optionsCompany = []; - $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts').then((response) => { - $scope.optionsCompany = response.data.map(e => ({ + $scope.refreshPaymentDirection = () => { + $scope.optionsPaymentDirection = []; + $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts').then((response) => { + $scope.optionsPaymentDirection = response.data.map(e => ({ value: e.Id, text: e.Name })); @@ -236,16 +236,16 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer console.error(error); const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'Company', + title: 'PaymentDirection', message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); }; - $scope.refreshPaymentRecordDirection = () => { - $scope.optionsPaymentRecordDirection = []; - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts').then((response) => { - $scope.optionsPaymentRecordDirection = response.data.map(e => ({ + $scope.refreshPaymentType = () => { + $scope.optionsPaymentType = []; + $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts').then((response) => { + $scope.optionsPaymentType = response.data.map(e => ({ value: e.Id, text: e.Name })); @@ -253,16 +253,16 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer console.error(error); const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'PaymentRecordDirection', + title: 'PaymentType', message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); }; - $scope.refreshPaymentType = () => { - $scope.optionsPaymentType = []; - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts').then((response) => { - $scope.optionsPaymentType = response.data.map(e => ({ + $scope.refreshCompany = () => { + $scope.optionsCompany = []; + $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts').then((response) => { + $scope.optionsCompany = response.data.map(e => ({ value: e.Id, text: e.Name })); @@ -270,7 +270,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer console.error(error); const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'PaymentType', + title: 'Company', message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/index.html b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/index.html index 7ec1658..7b9ab94 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/index.html +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/index.html @@ -146,6 +146,48 @@
+ +
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTDIRECTION' | t }} +
+
+ + +
+
+ + +
+
+ +
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} +
+
+ + +
+
+ + +
+
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REASON' | t }} @@ -207,48 +249,6 @@
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTRECORDDIRECTION' | t }} -
-
- - -
-
- - -
-
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} -
-
- - -
-
- - -
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_UUID' | t }} diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/controller.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/controller.js index bd5b9fc..960e43e 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/controller.js @@ -22,9 +22,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer params: { filterEntity: $scope.filterEntity, optionsCurrency: $scope.optionsCurrency, - optionsCompany: $scope.optionsCompany, - optionsPaymentRecordDirection: $scope.optionsPaymentRecordDirection, + optionsPaymentDirection: $scope.optionsPaymentDirection, optionsPaymentType: $scope.optionsPaymentType, + optionsCompany: $scope.optionsCompany, }, maxWidth: action.maxWidth, maxHeight: action.maxHeight, @@ -127,9 +127,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer action: "select", entity: entity, optionsCurrency: $scope.optionsCurrency, - optionsCompany: $scope.optionsCompany, - optionsPaymentRecordDirection: $scope.optionsPaymentRecordDirection, + optionsPaymentDirection: $scope.optionsPaymentDirection, optionsPaymentType: $scope.optionsPaymentType, + optionsCompany: $scope.optionsCompany, }, }); }; @@ -140,18 +140,18 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer params: { entity: $scope.filterEntity, optionsCurrency: $scope.optionsCurrency, - optionsCompany: $scope.optionsCompany, - optionsPaymentRecordDirection: $scope.optionsPaymentRecordDirection, + optionsPaymentDirection: $scope.optionsPaymentDirection, optionsPaymentType: $scope.optionsPaymentType, + optionsCompany: $scope.optionsCompany, }, }); }; //----------------Dropdowns-----------------// $scope.optionsCurrency = []; - $scope.optionsCompany = []; - $scope.optionsPaymentRecordDirection = []; + $scope.optionsPaymentDirection = []; $scope.optionsPaymentType = []; + $scope.optionsCompany = []; $http.get('/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts').then((response) => { $scope.optionsCurrency = response.data.map(e => ({ @@ -168,8 +168,8 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer }); }); - $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts').then((response) => { - $scope.optionsCompany = response.data.map(e => ({ + $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts').then((response) => { + $scope.optionsPaymentDirection = response.data.map(e => ({ value: e.Id, text: e.Name })); @@ -177,14 +177,14 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer console.error(error); const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'Company', + title: 'PaymentDirection', message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts').then((response) => { - $scope.optionsPaymentRecordDirection = response.data.map(e => ({ + $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts').then((response) => { + $scope.optionsPaymentType = response.data.map(e => ({ value: e.Id, text: e.Name })); @@ -192,14 +192,14 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer console.error(error); const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'PaymentRecordDirection', + title: 'PaymentType', message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); - $http.get('/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts').then((response) => { - $scope.optionsPaymentType = response.data.map(e => ({ + $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts').then((response) => { + $scope.optionsCompany = response.data.map(e => ({ value: e.Id, text: e.Name })); @@ -207,7 +207,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer console.error(error); const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'PaymentType', + title: 'Company', message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); @@ -220,18 +220,10 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer } return null; }; - $scope.optionsCompanyValue = (optionKey) => { - for (let i = 0; i < $scope.optionsCompany.length; i++) { - if ($scope.optionsCompany[i].value === optionKey) { - return $scope.optionsCompany[i].text; - } - } - return null; - }; - $scope.optionsPaymentRecordDirectionValue = (optionKey) => { - for (let i = 0; i < $scope.optionsPaymentRecordDirection.length; i++) { - if ($scope.optionsPaymentRecordDirection[i].value === optionKey) { - return $scope.optionsPaymentRecordDirection[i].text; + $scope.optionsPaymentDirectionValue = (optionKey) => { + for (let i = 0; i < $scope.optionsPaymentDirection.length; i++) { + if ($scope.optionsPaymentDirection[i].value === optionKey) { + return $scope.optionsPaymentDirection[i].text; } } return null; @@ -244,5 +236,13 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer } return null; }; + $scope.optionsCompanyValue = (optionKey) => { + for (let i = 0; i < $scope.optionsCompany.length; i++) { + if ($scope.optionsCompany[i].value === optionKey) { + return $scope.optionsCompany[i].text; + } + } + return null; + }; //----------------Dropdowns-----------------// }); \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/controller.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/controller.js index 56ecb0d..5db3241 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/controller.js @@ -23,9 +23,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle $scope.selectedMainEntityKey = params.selectedMainEntityKey; $scope.selectedMainEntityId = params.selectedMainEntityId; $scope.optionsCurrency = params.optionsCurrency; - $scope.optionsCompany = params.optionsCompany; - $scope.optionsPaymentRecordDirection = params.optionsPaymentRecordDirection; + $scope.optionsPaymentDirection = params.optionsPaymentDirection; $scope.optionsPaymentType = params.optionsPaymentType; + $scope.optionsCompany = params.optionsCompany; } $scope.filter = () => { @@ -78,6 +78,14 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle const condition = { propertyName: 'Currency', operator: 'EQ', value: entity.Currency }; filter.$filter.conditions.push(condition); } + if (entity.PaymentDirection !== undefined) { + const condition = { propertyName: 'PaymentDirection', operator: 'EQ', value: entity.PaymentDirection }; + filter.$filter.conditions.push(condition); + } + if (entity.PaymentType !== undefined) { + const condition = { propertyName: 'PaymentType', operator: 'EQ', value: entity.PaymentType }; + filter.$filter.conditions.push(condition); + } if (entity.Reason) { const condition = { propertyName: 'Reason', operator: 'LIKE', value: `%${entity.Reason}%` }; filter.$filter.conditions.push(condition); @@ -90,14 +98,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle const condition = { propertyName: 'Company', operator: 'EQ', value: entity.Company }; filter.$filter.conditions.push(condition); } - if (entity.PaymentRecordDirection !== undefined) { - const condition = { propertyName: 'PaymentRecordDirection', operator: 'EQ', value: entity.PaymentRecordDirection }; - filter.$filter.conditions.push(condition); - } - if (entity.PaymentType !== undefined) { - const condition = { propertyName: 'PaymentType', operator: 'EQ', value: entity.PaymentType }; - filter.$filter.conditions.push(condition); - } if (entity.UUID) { const condition = { propertyName: 'UUID', operator: 'LIKE', value: `%${entity.UUID}%` }; filter.$filter.conditions.push(condition); diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/index.html b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/index.html index 3568436..8a5488c 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/index.html +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-filter/index.html @@ -153,6 +153,36 @@
+ +
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTDIRECTION' | t }} +
+
+ + +
+
+ +
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} +
+
+ + +
+
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REASON' | t }} @@ -202,36 +232,6 @@
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTRECORDDIRECTION' | t }} -
-
- - -
-
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} -
-
- - -
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_UUID' | t }} diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/controller.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/controller.js index 8fe6bf0..1423990 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/controller.js @@ -56,6 +56,14 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer const condition = { propertyName: 'Currency', operator: 'EQ', value: entity.Currency }; filter.$filter.conditions.push(condition); } + if (entity.PaymentDirection !== undefined) { + const condition = { propertyName: 'PaymentDirection', operator: 'EQ', value: entity.PaymentDirection }; + filter.$filter.conditions.push(condition); + } + if (entity.PaymentType !== undefined) { + const condition = { propertyName: 'PaymentType', operator: 'EQ', value: entity.PaymentType }; + filter.$filter.conditions.push(condition); + } if (entity.Reason) { const condition = { propertyName: 'Reason', operator: 'LIKE', value: `%${entity.Reason}%` }; filter.$filter.conditions.push(condition); @@ -68,14 +76,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer const condition = { propertyName: 'Company', operator: 'EQ', value: entity.Company }; filter.$filter.conditions.push(condition); } - if (entity.PaymentRecordDirection !== undefined) { - const condition = { propertyName: 'PaymentRecordDirection', operator: 'EQ', value: entity.PaymentRecordDirection }; - filter.$filter.conditions.push(condition); - } - if (entity.PaymentType !== undefined) { - const condition = { propertyName: 'PaymentType', operator: 'EQ', value: entity.PaymentType }; - filter.$filter.conditions.push(condition); - } if (entity.UUID) { const condition = { propertyName: 'UUID', operator: 'LIKE', value: `%${entity.UUID}%` }; filter.$filter.conditions.push(condition); @@ -92,9 +92,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.filter = filter; $scope.optionsCurrency = params.optionsCurrency; - $scope.optionsCompany = params.optionsCompany; - $scope.optionsPaymentRecordDirection = params.optionsPaymentRecordDirection; + $scope.optionsPaymentDirection = params.optionsPaymentDirection; $scope.optionsPaymentType = params.optionsPaymentType; + $scope.optionsCompany = params.optionsCompany; } $scope.loadPage = (filter) => { @@ -141,18 +141,10 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer } return null; }; - $scope.optionsCompanyValue = (optionKey) => { - for (let i = 0; i < $scope.optionsCompany.length; i++) { - if ($scope.optionsCompany[i].value === optionKey) { - return $scope.optionsCompany[i].text; - } - } - return null; - }; - $scope.optionsPaymentRecordDirectionValue = (optionKey) => { - for (let i = 0; i < $scope.optionsPaymentRecordDirection.length; i++) { - if ($scope.optionsPaymentRecordDirection[i].value === optionKey) { - return $scope.optionsPaymentRecordDirection[i].text; + $scope.optionsPaymentDirectionValue = (optionKey) => { + for (let i = 0; i < $scope.optionsPaymentDirection.length; i++) { + if ($scope.optionsPaymentDirection[i].value === optionKey) { + return $scope.optionsPaymentDirection[i].text; } } return null; @@ -165,6 +157,14 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer } return null; }; + $scope.optionsCompanyValue = (optionKey) => { + for (let i = 0; i < $scope.optionsCompany.length; i++) { + if ($scope.optionsCompany[i].value === optionKey) { + return $scope.optionsCompany[i].text; + } + } + return null; + }; window.onafterprint = () => { Dialogs.closeWindow({ path: viewData.path }); } diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/index.html b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/index.html index 1166045..5efdaef 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/index.html +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/index.html @@ -27,11 +27,11 @@ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_COUNTERPARTYNAME' | t:'CounterpartyName' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_AMOUNT' | t:'Amount' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_CURRENCY' | t:'Currency' }} + {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTDIRECTION' | t:'PaymentDirection' }} + {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t:'PaymentType' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REASON' | t:'Reason' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_DESCRIPTION' | t:'Description' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_COMPANY' | t:'Company' }} - {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTRECORDDIRECTION' | t:'PaymentRecordDirection' }} - {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t:'PaymentType' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_UUID' | t:'UUID' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REFERENCE' | t:'Reference' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_DELETED' | t:'Deleted' }} @@ -53,11 +53,11 @@ {{next.CounterpartyName}} {{next.Amount}} {{optionsCurrencyValue(next.Currency)}} + {{optionsPaymentDirectionValue(next.PaymentDirection)}} + {{optionsPaymentTypeValue(next.PaymentType)}} {{next.Reason}} {{next.Description}} {{optionsCompanyValue(next.Company)}} - {{optionsPaymentRecordDirectionValue(next.PaymentRecordDirection)}} - {{optionsPaymentTypeValue(next.PaymentType)}} {{next.UUID}} {{next.Reference}} diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/controller.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/controller.js index 05b4281..b09f472 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/controller.js @@ -13,8 +13,8 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle } $scope.entity = params.entity; $scope.optionsCurrency = params.optionsCurrency; - $scope.optionsCompany = params.optionsCompany; - $scope.optionsPaymentRecordDirection = params.optionsPaymentRecordDirection; + $scope.optionsPaymentDirection = params.optionsPaymentDirection; $scope.optionsPaymentType = params.optionsPaymentType; + $scope.optionsCompany = params.optionsCompany; } }); \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/index.html b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/index.html index 6f07a04..b62ad59 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/index.html +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/index.html @@ -119,6 +119,38 @@
+ +
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTDIRECTION' | t }} +
+
+ + +
+
+ +
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} +
+
+ + +
+
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REASON' | t }} @@ -165,38 +197,6 @@
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTRECORDDIRECTION' | t }} -
-
- - -
-
- -
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }} -
-
- - -
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_UUID' | t }} diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/index.html b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/index.html index 7112ffd..528be82 100644 --- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/index.html +++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/index.html @@ -31,11 +31,11 @@ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_COUNTERPARTYNAME' | t:'CounterpartyName' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_AMOUNT' | t:'Amount' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_CURRENCY' | t:'Currency' }} + {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTDIRECTION' | t:'PaymentDirection' }} + {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t:'PaymentType' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REASON' | t:'Reason' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_DESCRIPTION' | t:'Description' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_COMPANY' | t:'Company' }} - {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTRECORDDIRECTION' | t:'PaymentRecordDirection' }} - {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t:'PaymentType' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_UUID' | t:'UUID' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REFERENCE' | t:'Reference' }} {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_DELETED' | t:'Deleted' }} @@ -61,16 +61,16 @@ {{optionsCurrencyValue(next.Currency)}} - {{next.Reason}} - {{next.Description}} - {{optionsCompanyValue(next.Company)}} + {{optionsPaymentDirectionValue(next.PaymentDirection)}} - {{optionsPaymentRecordDirectionValue(next.PaymentRecordDirection)}} + {{optionsPaymentTypeValue(next.PaymentType)}} + {{next.Reason}} + {{next.Description}} - {{optionsPaymentTypeValue(next.PaymentType)}} + {{optionsCompanyValue(next.Company)}} {{next.UUID}} {{next.Reference}} diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/controller.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/controller.js similarity index 82% rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/controller.js rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/controller.js index f11c128..82ee113 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/controller.js @@ -1,21 +1,21 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntityService']) .config(['EntityServiceProvider', (EntityServiceProvider) => { - EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts'; + EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts'; }]) .controller('PageController', ($scope, EntityService, Extensions, LocaleService, ButtonStates) => { const Dialogs = new DialogHub(); let translated = { yes: 'Yes', no: 'No', - deleteConfirm: 'Are you sure you want to delete PaymentRecordDirection? This action cannot be undone.', - deleteTitle: 'Delete PaymentRecordDirection?' + deleteConfirm: 'Are you sure you want to delete PaymentDirection? This action cannot be undone.', + deleteTitle: 'Delete PaymentDirection?' }; LocaleService.onInit(() => { translated.yes = LocaleService.t('codbex-payments:codbex-payments-model.defaults.yes'); translated.no = LocaleService.t('codbex-payments:codbex-payments-model.defaults.no'); - translated.deleteTitle = LocaleService.t('codbex-payments:codbex-payments-model.defaults.deleteTitle', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' }); - translated.deleteConfirm = LocaleService.t('codbex-payments:codbex-payments-model.messages.deleteConfirm', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' }); + translated.deleteTitle = LocaleService.t('codbex-payments:codbex-payments-model.defaults.deleteTitle', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' }); + translated.deleteConfirm = LocaleService.t('codbex-payments:codbex-payments-model.messages.deleteConfirm', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' }); }); $scope.dataPage = 1; @@ -24,8 +24,8 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer //-----------------Custom Actions-------------------// Extensions.getWindows(['codbex-payments-custom-action']).then((response) => { - $scope.pageActions = response.data.filter(e => e.perspective === 'Settings' && e.view === 'PaymentRecordDirection' && (e.type === 'page' || e.type === undefined)); - $scope.entityActions = response.data.filter(e => e.perspective === 'Settings' && e.view === 'PaymentRecordDirection' && e.type === 'entity'); + $scope.pageActions = response.data.filter(e => e.perspective === 'Settings' && e.view === 'PaymentDirection' && (e.type === 'page' || e.type === undefined)); + $scope.entityActions = response.data.filter(e => e.perspective === 'Settings' && e.view === 'PaymentDirection' && e.type === 'entity'); }); $scope.triggerPageAction = (action) => { @@ -60,13 +60,13 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer resetPagination(); //-----------------Events-------------------// - Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentRecordDirection.entityCreated', handler: () => { + Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentDirection.entityCreated', handler: () => { $scope.loadPage($scope.dataPage, $scope.filter); }}); - Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentRecordDirection.entityUpdated', handler: () => { + Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentDirection.entityUpdated', handler: () => { $scope.loadPage($scope.dataPage, $scope.filter); }}); - Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentRecordDirection.entitySearch', handler: (data) => { + Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentDirection.entitySearch', handler: (data) => { resetPagination(); $scope.filter = data.filter; $scope.filterEntity = data.entity; @@ -101,8 +101,8 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer }, (error) => { const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION'), - message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLF', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)', message: message }), + title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION'), + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLF', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)', message: message }), type: AlertTypes.Error }); console.error('EntityService:', error); @@ -110,8 +110,8 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer }, (error) => { const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION'), - message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCount', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)', message: message }), + title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION'), + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCount', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)', message: message }), type: AlertTypes.Error }); console.error('EntityService:', error); @@ -126,7 +126,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.openDetails = (entity) => { $scope.selectedEntity = entity; Dialogs.showWindow({ - id: 'PaymentRecordDirection-details', + id: 'PaymentDirection-details', params: { action: 'select', entity: entity, @@ -137,7 +137,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.openFilter = () => { Dialogs.showWindow({ - id: 'PaymentRecordDirection-filter', + id: 'PaymentDirection-filter', params: { entity: $scope.filterEntity, }, @@ -148,7 +148,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.createEntity = () => { $scope.selectedEntity = null; Dialogs.showWindow({ - id: 'PaymentRecordDirection-details', + id: 'PaymentDirection-details', params: { action: 'create', entity: {}, @@ -159,7 +159,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.updateEntity = (entity) => { Dialogs.showWindow({ - id: 'PaymentRecordDirection-details', + id: 'PaymentDirection-details', params: { action: 'update', entity: entity, @@ -185,12 +185,12 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer if (buttonId === 'delete-btn-yes') { EntityService.delete(id).then((response) => { $scope.loadPage($scope.dataPage, $scope.filter); - Dialogs.triggerEvent('codbex-payments.Settings.PaymentRecordDirection.clearDetails'); + Dialogs.triggerEvent('codbex-payments.Settings.PaymentDirection.clearDetails'); }, (error) => { const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION'), - message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToDelete', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)', message: message }), + title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION'), + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToDelete', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)', message: message }), type: AlertTypes.Error }); console.error('EntityService:', error); diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/controller.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/controller.js similarity index 94% rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/controller.js rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/controller.js index 5846e24..b20b3dd 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/controller.js @@ -35,7 +35,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle const condition = { propertyName: 'Name', operator: 'LIKE', value: `%${entity.Name}%` }; filter.$filter.conditions.push(condition); } - Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentRecordDirection.entitySearch', data: { + Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentDirection.entitySearch', data: { entity: entity, filter: filter }}); @@ -57,7 +57,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle }; $scope.cancel = () => { - Dialogs.closeWindow({ id: 'PaymentRecordDirection-filter' }); + Dialogs.closeWindow({ id: 'PaymentDirection-filter' }); }; $scope.clearErrorMessage = () => { diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/index.html b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/index.html similarity index 89% rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/index.html rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/index.html index fc606e2..84bfc9c 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/index.html +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/index.html @@ -16,10 +16,10 @@ {{ errorMessage }} - +
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION_NAME' | t }} + {{ 'codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION_NAME' | t }}
@@ -29,7 +29,7 @@ ng-model="entity.Name" ng-maxlength="20.0" type="text" - placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION_NAME)'} }}"> + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION_NAME)'} }}">
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/view.extension similarity index 50% rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.extension rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/view.extension index 4537bff..4d2ea8f 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/view.extension @@ -1,6 +1,5 @@ { - "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.js", + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/view.js", "extensionPoint": "application-windows", - "description": "codbex-payments - Application Dialog Window", - "role": "codbex-payments.Settings.PaymentRecordDirectionReadOnly,codbex-payments.Settings.PaymentRecordDirectionFullAccess" + "description": "codbex-payments - Application Dialog Window" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/view.js similarity index 69% rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.js rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/view.js index 33e67fe..b7cb4be 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/view.js @@ -4,15 +4,15 @@ * Do not modify the content as it may be re-generated again. */ const viewData = { - id: 'PaymentRecordDirection-filter', - label: 'PaymentRecordDirection Filter', + id: 'PaymentDirection-filter', + label: 'PaymentDirection Filter', translation: { key: 'codbex-payments:codbex-payments-model.extName', options: { - content: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION) $t(codbex-payments:codbex-payments-model.defaults.filter)', + content: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION) $t(codbex-payments:codbex-payments-model.defaults.filter)', } }, - path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/index.html', + path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/index.html', perspectiveName: 'Settings' }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/controller.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/controller.js similarity index 75% rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/controller.js rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/controller.js index bc6d2e2..f7b68dc 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/controller.js @@ -1,32 +1,32 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntityService']) .config(['EntityServiceProvider', (EntityServiceProvider) => { - EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts'; + EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts'; }]) .controller('PageController', ($scope, $http, ViewParameters, LocaleService, EntityService) => { const Dialogs = new DialogHub(); const Notifications = new NotificationHub(); let description = 'Description'; - let propertySuccessfullyCreated = 'PaymentRecordDirection successfully created'; - let propertySuccessfullyUpdated = 'PaymentRecordDirection successfully updated'; + let propertySuccessfullyCreated = 'PaymentDirection successfully created'; + let propertySuccessfullyUpdated = 'PaymentDirection successfully updated'; $scope.entity = {}; $scope.forms = { details: {}, }; $scope.formHeaders = { - select: 'PaymentRecordDirection Details', - create: 'Create PaymentRecordDirection', - update: 'Update PaymentRecordDirection' + select: 'PaymentDirection Details', + create: 'Create PaymentDirection', + update: 'Update PaymentDirection' }; $scope.action = 'select'; LocaleService.onInit(() => { description = LocaleService.t('codbex-payments:codbex-payments-model.defaults.description'); - $scope.formHeaders.select = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadSelect', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' }); - $scope.formHeaders.create = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadCreate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' }); - $scope.formHeaders.update = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' }); - propertySuccessfullyCreated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyCreated', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' }); - propertySuccessfullyUpdated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyUpdated', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' }); + $scope.formHeaders.select = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadSelect', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' }); + $scope.formHeaders.create = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadCreate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' }); + $scope.formHeaders.update = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' }); + propertySuccessfullyCreated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyCreated', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' }); + propertySuccessfullyUpdated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyUpdated', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' }); }); let params = ViewParameters.get(); @@ -41,9 +41,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer let entity = $scope.entity; entity[$scope.selectedMainEntityKey] = $scope.selectedMainEntityId; EntityService.create(entity).then((response) => { - Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentRecordDirection.entityCreated', data: response.data }); + Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentDirection.entityCreated', data: response.data }); Notifications.show({ - title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION'), + title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION'), description: propertySuccessfullyCreated, type: 'positive' }); @@ -51,7 +51,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer }, (error) => { const message = error.data ? error.data.message : ''; $scope.$evalAsync(() => { - $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCreate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)', message: message }); + $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCreate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)', message: message }); }); console.error('EntityService:', error); }); @@ -62,9 +62,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer let entity = $scope.entity; entity[$scope.selectedMainEntityKey] = $scope.selectedMainEntityId; EntityService.update(id, entity).then((response) => { - Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentRecordDirection.entityUpdated', data: response.data }); + Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentDirection.entityUpdated', data: response.data }); Notifications.show({ - title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION'), + title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION'), description: propertySuccessfullyUpdated, type: 'positive' }); @@ -72,7 +72,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer }, (error) => { const message = error.data ? error.data.message : ''; $scope.$evalAsync(() => { - $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)', message: message }); + $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)', message: message }); }); console.error('EntityService:', error); }); @@ -91,7 +91,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer $scope.cancel = () => { $scope.entity = {}; $scope.action = 'select'; - Dialogs.closeWindow({ id: 'PaymentRecordDirection-details' }); + Dialogs.closeWindow({ id: 'PaymentDirection-details' }); }; $scope.clearErrorMessage = () => { diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/index.html b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/index.html similarity index 93% rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/index.html rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/index.html index f56bfb9..2847e95 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/index.html +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/index.html @@ -20,20 +20,20 @@
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION_NAME' | t }} + {{ 'codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION_NAME' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION_NAME)'} }}">
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/view.extension similarity index 50% rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.extension rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/view.extension index 22d35ab..59ed78f 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/view.extension @@ -1,6 +1,5 @@ { - "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.js", + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/view.js", "extensionPoint": "application-windows", - "description": "codbex-payments - Application Dialog Window", - "role": "codbex-payments.Settings.PaymentRecordDirectionReadOnly,codbex-payments.Settings.PaymentRecordDirectionFullAccess" + "description": "codbex-payments - Application Dialog Window" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/view.js similarity index 62% rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.js rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/view.js index 1c02375..8a47327 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/view.js @@ -4,12 +4,12 @@ * Do not modify the content as it may be re-generated again. */ const viewData = { - id: 'PaymentRecordDirection-details', - label: 'PaymentRecordDirection', + id: 'PaymentDirection-details', + label: 'PaymentDirection', translation: { - key: 'codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION', + key: 'codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION', }, - path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/index.html', + path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/index.html', perspectiveName: 'Settings' }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/index.html b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/index.html similarity index 98% rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/index.html rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/index.html index cd22b33..f0ef63f 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/index.html +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/index.html @@ -25,7 +25,7 @@ - + diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.extension new file mode 100644 index 0000000..0106979 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.extension @@ -0,0 +1,5 @@ +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.js", + "extensionPoint": "application-settings", + "description": "codbex-payments - Application View" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.js similarity index 68% rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.js rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.js index 4c7c7a3..8929684 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.js @@ -4,15 +4,15 @@ * Do not modify the content as it may be re-generated again. */ const viewData = { - id: 'PaymentRecordDirection', - label: 'PaymentRecordDirection', + id: 'PaymentDirection', + label: 'PaymentDirection', translation: { - key: 'codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION', + key: 'codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION', }, region: 'center', lazyLoad: true, autoFocusTab: false, - path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/index.html', + path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/index.html', perspectiveName: 'Settings' }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension deleted file mode 100644 index 25393f9..0000000 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension +++ /dev/null @@ -1,6 +0,0 @@ -{ - "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.js", - "extensionPoint": "application-settings", - "description": "codbex-payments - Application View", - "role": "codbex-payments.Settings.PaymentRecordDirectionReadOnly,codbex-payments.Settings.PaymentRecordDirectionFullAccess" -} \ No newline at end of file diff --git a/codbex-payments/translations/en-US/codbex-payments.model.json b/codbex-payments/translations/en-US/codbex-payments.model.json index 777efe7..0eead0d 100644 --- a/codbex-payments/translations/en-US/codbex-payments.model.json +++ b/codbex-payments/translations/en-US/codbex-payments.model.json @@ -120,11 +120,11 @@ "PAYMENTRECORD_COUNTERPARTYNAME": "CounterpartyName", "PAYMENTRECORD_AMOUNT": "Amount", "PAYMENTRECORD_CURRENCY": "Currency", + "PAYMENTRECORD_PAYMENTDIRECTION": "PaymentDirection", + "PAYMENTRECORD_PAYMENTTYPE": "PaymentType", "PAYMENTRECORD_REASON": "Reason", "PAYMENTRECORD_DESCRIPTION": "Description", "PAYMENTRECORD_COMPANY": "Company", - "PAYMENTRECORD_PAYMENTRECORDDIRECTION": "PaymentRecordDirection", - "PAYMENTRECORD_PAYMENTTYPE": "PaymentType", "PAYMENTRECORD_UUID": "UUID", "PAYMENTRECORD_REFERENCE": "Reference", "PAYMENTRECORD_DELETED": "Deleted", @@ -148,9 +148,6 @@ "COMPANY_COUNTRY": "Country", "COMPANY_TIN": "TIN", "COMPANY_IBAN": "IBAN", - "PAYMENTRECORDDIRECTION": "PaymentRecordDirection", - "PAYMENTRECORDDIRECTION_ID": "Id", - "PAYMENTRECORDDIRECTION_NAME": "Name", "PAYMENTTYPE": "PaymentType", "PAYMENTTYPE_ID": "Id", "PAYMENTTYPE_NAME": "Name", @@ -190,6 +187,9 @@ "SUPPLIER_CITY": "City", "SUPPLIER_TIN": "TIN", "SUPPLIER_IBAN": "IBAN", + "PAYMENTDIRECTION": "PaymentDirection", + "PAYMENTDIRECTION_ID": "Id", + "PAYMENTDIRECTION_NAME": "Name", "CustomerPayment": "CustomerPayment", "SupplierPayment": "SupplierPayment", "PaymentRecord": "PaymentRecord",
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION_NAME' | t:'Name' }}{{ 'codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION_NAME' | t:'Name' }}