From ccac75152afe714257350dd09daf89cc1fa9965e Mon Sep 17 00:00:00 2001 From: NicoleNG18 Date: Mon, 24 Feb 2025 22:05:49 +0200 Subject: [PATCH] add supplier to supplier payment --- codbex-payments/codbex-payments.edm | 42 +- codbex-payments/codbex-payments.gen | 438 +++++- codbex-payments/codbex-payments.model | 215 +++ .../api/Suppliers/SupplierService.ts | 166 +++ .../codbex-payments/codbex-payments.openapi | 1211 +++++++++++++++-- .../SupplierPaymentRepository.ts | 14 + .../dao/Suppliers/Supplier.extensionpoint | 4 + .../dao/Suppliers/SupplierRepository.ts | 321 +++++ .../codbex-payments/roles/default-roles.roles | 2 + .../schema/codbex-payments.schema | 85 ++ .../dialog-filter/view.extension | 2 +- .../CustomerPayment/dialog-filter/view.js | 2 +- .../dialog-window/view.extension | 6 +- .../main-details/view.extension | 6 +- .../CustomerPayment/main-details/view.js | 2 +- .../CustomerPayment/tile-portal.extension | 6 +- .../CustomerPayment/tile.extension | 6 +- .../CustomerPayment/CustomerPayment/tile.js | 4 +- .../CustomerPayment/view.extension | 6 +- .../CustomerPayment/CustomerPayment/view.js | 2 +- .../perspective-portal.extension | 6 +- .../ui/CustomerPayment/perspective.extension | 6 +- .../dialog-filter/view.extension | 2 +- .../EmployeePayment/dialog-filter/view.js | 2 +- .../dialog-window/view.extension | 6 +- .../main-details/view.extension | 6 +- .../EmployeePayment/main-details/view.js | 2 +- .../EmployeePayment/tile-portal.extension | 6 +- .../EmployeePayment/tile.extension | 6 +- .../EmployeePayment/EmployeePayment/tile.js | 4 +- .../EmployeePayment/view.extension | 6 +- .../EmployeePayment/EmployeePayment/view.js | 2 +- .../perspective-portal.extension | 6 +- .../ui/EmployeePayment/perspective.extension | 6 +- .../dialog-filter/view.extension | 2 +- .../PaymentAdjustment/dialog-filter/view.js | 2 +- .../dialog-window/view.extension | 6 +- .../main-details/view.extension | 6 +- .../PaymentAdjustment/main-details/view.js | 2 +- .../PaymentAdjustment/tile-portal.extension | 6 +- .../PaymentAdjustment/tile.extension | 6 +- .../PaymentAdjustment/tile.js | 4 +- .../PaymentAdjustment/view.extension | 6 +- .../PaymentAdjustment/view.js | 2 +- .../perspective-portal.extension | 6 +- .../PaymentAdjustment/perspective.extension | 6 +- .../dialog-filter/view.extension | 2 +- .../PaymentRecord/dialog-filter/view.js | 2 +- .../dialog-window/view.extension | 6 +- .../PaymentRecord/main-details/view.extension | 6 +- .../PaymentRecord/main-details/view.js | 2 +- .../PaymentRecord/tile-portal.extension | 6 +- .../PaymentRecord/tile.extension | 6 +- .../ui/PaymentRecord/PaymentRecord/tile.js | 4 +- .../PaymentRecord/view.extension | 6 +- .../ui/PaymentRecord/PaymentRecord/view.js | 2 +- .../perspective-portal.extension | 6 +- .../ui/PaymentRecord/perspective.extension | 6 +- .../dialog-filter/view.extension | 2 +- .../dialog-filter/view.js | 2 +- .../dialog-window/view.extension | 6 +- .../dialog-window/view.js | 2 +- .../tile-portal.extension | 6 +- .../PaymentRecordDirection/tile.extension | 6 +- .../Settings/PaymentRecordDirection/tile.js | 4 +- .../PaymentRecordDirection/view.extension | 6 +- .../Settings/PaymentRecordDirection/view.js | 2 +- .../dialog-filter/view.extension | 2 +- .../PaymentStatus/dialog-filter/view.js | 2 +- .../dialog-window/view.extension | 6 +- .../PaymentStatus/dialog-window/view.js | 2 +- .../PaymentStatus/tile-portal.extension | 6 +- .../ui/Settings/PaymentStatus/tile.extension | 6 +- .../ui/Settings/PaymentStatus/tile.js | 4 +- .../ui/Settings/PaymentStatus/view.extension | 6 +- .../ui/Settings/PaymentStatus/view.js | 2 +- .../PaymentType/dialog-filter/view.extension | 2 +- .../PaymentType/dialog-filter/view.js | 2 +- .../PaymentType/dialog-window/view.extension | 6 +- .../PaymentType/dialog-window/view.js | 2 +- .../PaymentType/tile-portal.extension | 6 +- .../ui/Settings/PaymentType/tile.extension | 6 +- .../ui/Settings/PaymentType/tile.js | 4 +- .../ui/Settings/PaymentType/view.extension | 6 +- .../ui/Settings/PaymentType/view.js | 2 +- .../ui/Settings/perspective-portal.extension | 6 +- .../ui/Settings/perspective.extension | 6 +- .../SupplierPayment/controller.js | 22 + .../dialog-filter/controller.js | 4 + .../SupplierPayment/dialog-filter/index.html | 14 + .../dialog-filter/view.extension | 2 +- .../SupplierPayment/dialog-filter/view.js | 2 +- .../dialog-window/controller.js | 13 + .../SupplierPayment/dialog-window/index.html | 17 + .../dialog-window/view.extension | 6 +- .../SupplierPayment/index.html | 3 +- .../main-details/controller.js | 22 + .../SupplierPayment/main-details/index.html | 25 + .../main-details/view.extension | 6 +- .../SupplierPayment/main-details/view.js | 2 +- .../SupplierPayment/tile-portal.extension | 6 +- .../SupplierPayment/tile.extension | 6 +- .../SupplierPayment/SupplierPayment/tile.js | 4 +- .../SupplierPayment/view.extension | 6 +- .../SupplierPayment/SupplierPayment/view.js | 2 +- .../perspective-portal.extension | 6 +- .../ui/SupplierPayment/perspective.extension | 6 +- 107 files changed, 2766 insertions(+), 242 deletions(-) create mode 100644 codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts create mode 100644 codbex-payments/gen/codbex-payments/dao/Suppliers/Supplier.extensionpoint create mode 100644 codbex-payments/gen/codbex-payments/dao/Suppliers/SupplierRepository.ts create mode 100644 codbex-payments/gen/codbex-payments/roles/default-roles.roles diff --git a/codbex-payments/codbex-payments.edm b/codbex-payments/codbex-payments.edm index acb1fc1..1c52b2c 100644 --- a/codbex-payments/codbex-payments.edm +++ b/codbex-payments/codbex-payments.edm @@ -1,6 +1,6 @@ - + @@ -18,8 +18,9 @@ - + + @@ -34,7 +35,7 @@ - + @@ -50,7 +51,7 @@ - + @@ -69,7 +70,7 @@ - + @@ -80,7 +81,7 @@ - + @@ -95,7 +96,7 @@ - + @@ -105,13 +106,13 @@ - + - + @@ -125,13 +126,13 @@ - + - + @@ -146,7 +147,7 @@ - + @@ -160,6 +161,21 @@ + + + + + + + + + + + + + + + CustomerPayment/services/web/resources/unicons/usd-square.svg10 @@ -171,5 +187,5 @@ - + \ No newline at end of file diff --git a/codbex-payments/codbex-payments.gen b/codbex-payments/codbex-payments.gen index 0a8f6aa..88b6fd9 100644 --- a/codbex-payments/codbex-payments.gen +++ b/codbex-payments/codbex-payments.gen @@ -228,8 +228,19 @@ "order": "110", "icon": "/services/web/resources/unicons/paypal.svg", "role": "" + }, + "Suppliers": { + "views": [ + "Supplier" + ], + "name": "Suppliers", + "label": "Suppliers", + "order": "200", + "icon": "/services/web/resources/unicons/user-minus.svg", + "role": "" } }, + "roles": [], "models": [ { "properties": [ @@ -663,6 +674,7 @@ "dataName": "CUSTOMERPAYMENT", "dataQuery": "", "description": "Manage entity CustomerPayment", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "importsCode": "import { NumberGeneratorService } from \"/codbex-number-generator/service/generator\";", @@ -1087,6 +1099,35 @@ "dataTypeTypescript": "number", "inputRule": "" }, + { + "dataName": "SUPPLIERPAYMENT_SUPPLIER", + "dataNullable": true, + "dataType": "INTEGER", + "description": "", + "name": "Supplier", + "tooltip": "", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "", + "widgetType": "DROPDOWN", + "relationshipName": "SupplierPayment_Supplier", + "relationshipEntityName": "Supplier", + "relationshipEntityPerspectiveName": "Suppliers", + "relationshipEntityPerspectiveLabel": "Suppliers", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "Supplier", + "widgetDropdownUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierService.ts", + "dataTypeJava": "int", + "dataTypeTypescript": "number", + "inputRule": "" + }, { "dataName": "SUPPLIERPAYMENT_DATE", "dataNullable": false, @@ -1436,6 +1477,7 @@ "dataName": "SUPPLIERPAYMENT", "dataQuery": "", "description": "Manage entity SupplierPayment", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "importsCode": "import { NumberGeneratorService } from \"/codbex-number-generator/service/generator\";", @@ -1455,6 +1497,11 @@ "type": "PRIMARY", "dataSource": "DefaultDB", "referencedProjections": [ + { + "name": "Supplier", + "project": "codbex-partners", + "genFolderName": "codbex-partners" + }, { "name": "Currency", "project": "codbex-currencies", @@ -1472,31 +1519,60 @@ "primaryKeysString": "Id", "masterProperties": { "title": { - "dataName": "SUPPLIERPAYMENT_DATE", - "dataNullable": false, - "dataOrderBy": "DESC", - "dataType": "DATE", + "dataName": "SUPPLIERPAYMENT_SUPPLIER", + "dataNullable": true, + "dataType": "INTEGER", "description": "", - "isRequiredProperty": true, - "name": "Date", + "name": "Supplier", "tooltip": "", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", "widgetIsMajor": true, "widgetLength": "20", "widgetSize": "", - "widgetType": "DATE", - "dataNotNull": true, + "widgetType": "DROPDOWN", + "relationshipName": "SupplierPayment_Supplier", + "relationshipEntityName": "Supplier", + "relationshipEntityPerspectiveName": "Suppliers", + "relationshipEntityPerspectiveLabel": "Suppliers", + "dataNotNull": false, "dataAutoIncrement": false, "dataPrimaryKey": false, "dataUnique": false, + "isRequiredProperty": false, "isCalculatedProperty": false, - "widgetLabel": "Date", - "widgetDropdownUrl": "", - "dataTypeJava": "date", - "dataTypeTypescript": "Date", - "isDateType": true, + "widgetLabel": "Supplier", + "widgetDropdownUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierService.ts", + "dataTypeJava": "int", + "dataTypeTypescript": "number", "inputRule": "" }, "properties": [ + { + "dataName": "SUPPLIERPAYMENT_DATE", + "dataNullable": false, + "dataOrderBy": "DESC", + "dataType": "DATE", + "description": "", + "isRequiredProperty": true, + "name": "Date", + "tooltip": "", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "", + "widgetType": "DATE", + "dataNotNull": true, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, + "widgetLabel": "Date", + "widgetDropdownUrl": "", + "dataTypeJava": "date", + "dataTypeTypescript": "Date", + "isDateType": true, + "inputRule": "" + }, { "dataName": "SUPPLIERPAYMENT_VALOR", "dataNullable": false, @@ -1817,8 +1893,8 @@ } ] }, - "hasDates": true, - "hasDropdowns": true + "hasDropdowns": true, + "hasDates": true }, { "properties": [ @@ -2194,6 +2270,7 @@ "dataName": "EMPLOYEEPAYMENT", "dataQuery": "", "description": "Manage entity EmployeePayment", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "importsCode": "import { NumberGeneratorService } from \"/codbex-number-generator/service/generator\";", @@ -3035,6 +3112,7 @@ "dataName": "PAYMENTRECORD", "dataQuery": "", "description": "Manage entity PaymentRecord", + "generateDefaultRoles": "false", "generateReport": "true", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE_MASTER", @@ -3693,6 +3771,7 @@ "dataName": "CURRENCY", "dataQuery": "", "description": "Manage entity Currency", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -4033,6 +4112,7 @@ "dataName": "COMPANY", "dataQuery": "", "description": "Manage entity Company", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -4116,6 +4196,7 @@ "dataName": "PAYMENTRECORDDIRECTION", "dataQuery": "", "description": "Manage entity PaymentRecordDirection", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -4196,6 +4277,7 @@ "dataName": "PAYMENTSTATUS", "dataQuery": "", "description": "Manage entity PaymentStatus", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -4276,6 +4358,7 @@ "dataName": "PAYMENTTYPE", "dataQuery": "", "description": "Manage entity PaymentType", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -4356,6 +4439,7 @@ "dataName": "PAYMENTMETHOD", "dataQuery": "", "description": "Manage entity PaymentMethod", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -4676,6 +4760,7 @@ "dataName": "CUSTOMER", "dataQuery": "", "description": "Manage entity Customer", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -4918,6 +5003,7 @@ "dataName": "PAYMENTADJUSTMENT", "dataQuery": "", "description": "Manage entity PaymentAdjustment", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE_MASTER", @@ -5142,6 +5228,328 @@ }, "hasDates": true, "hasDropdowns": true + }, + { + "properties": [ + { + "dataAutoIncrement": true, + "dataName": "SUPPLIER_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": "", + "dataTypeJava": "int", + "dataTypeTypescript": "number", + "inputRule": "" + }, + { + "dataLength": "100", + "dataName": "SUPPLIER_NAME", + "dataNullable": true, + "dataType": "VARCHAR", + "description": "", + "isRequiredProperty": true, + "name": "Name", + "tooltip": "", + "widgetIsMajor": true, + "widgetLength": "100", + "widgetSize": "", + "widgetType": "TEXTBOX", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, + "widgetLabel": "Name", + "widgetDropdownUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 100, + "inputRule": "" + }, + { + "dataLength": "200", + "dataName": "SUPPLIER_ADDRESS", + "dataNullable": true, + "dataType": "VARCHAR", + "description": "", + "isRequiredProperty": true, + "name": "Address", + "tooltip": "", + "widgetIsMajor": true, + "widgetLength": "200", + "widgetSize": "", + "widgetType": "TEXTAREA", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, + "widgetLabel": "Address", + "widgetDropdownUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 200, + "inputRule": "" + }, + { + "dataLength": "20", + "dataName": "SUPPLIER_POSTALCODE", + "dataNullable": true, + "dataType": "VARCHAR", + "description": "", + "name": "PostalCode", + "tooltip": "", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "fd-col-md--2 fd-col--3", + "widgetType": "TEXTBOX", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "PostalCode", + "widgetDropdownUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 20, + "inputRule": "" + }, + { + "dataLength": "100", + "dataName": "SUPPLIER_EMAIL", + "dataNullable": true, + "dataType": "VARCHAR", + "description": "", + "isRequiredProperty": true, + "name": "Email", + "tooltip": "", + "widgetIsMajor": true, + "widgetLength": "100", + "widgetSize": "fd-col-md--4 fd-col--6", + "widgetType": "TEXTBOX", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, + "widgetLabel": "Email", + "widgetDropdownUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 100, + "inputRule": "" + }, + { + "dataLength": "20", + "dataName": "SUPPLIER_PHONE", + "dataNullable": true, + "dataType": "VARCHAR", + "description": "", + "name": "Phone", + "tooltip": "", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "fd-col-md--2 fd-col--3", + "widgetType": "TEXTBOX", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "Phone", + "widgetDropdownUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 20, + "inputRule": "" + }, + { + "dataLength": "20", + "dataName": "SUPPLIER_FAX", + "dataNullable": true, + "dataType": "VARCHAR", + "description": "", + "name": "Fax", + "tooltip": "", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "fd-col-md--2 fd-col--3", + "widgetType": "TEXTBOX", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "Fax", + "widgetDropdownUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 20, + "inputRule": "" + }, + { + "dataName": "SUPPLIER_COUNTRY", + "dataNullable": true, + "dataType": "INTEGER", + "description": "", + "isRequiredProperty": true, + "name": "Country", + "relationshipEntityPerspectiveLabel": "Entities", + "relationshipEntityPerspectiveName": "Countries", + "relationshipName": "Supplier_Country", + "tooltip": "", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "", + "widgetType": "DROPDOWN", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, + "widgetLabel": "Country", + "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Countries/undefinedService.ts", + "dataTypeJava": "int", + "dataTypeTypescript": "number", + "inputRule": "" + }, + { + "dataName": "SUPPLIER_CITY", + "dataNullable": true, + "dataType": "INTEGER", + "description": "", + "isRequiredProperty": true, + "name": "City", + "relationshipEntityPerspectiveLabel": "Entities", + "relationshipEntityPerspectiveName": "Cities", + "relationshipName": "Supplier_City", + "tooltip": "", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "", + "widgetType": "DROPDOWN", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isCalculatedProperty": false, + "widgetLabel": "City", + "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Cities/undefinedService.ts", + "dataTypeJava": "int", + "dataTypeTypescript": "number", + "inputRule": "" + }, + { + "dataLength": "20", + "dataName": "SUPPLIER_TIN", + "dataNullable": true, + "dataType": "VARCHAR", + "description": "", + "name": "TIN", + "tooltip": "", + "widgetIsMajor": true, + "widgetLength": "20", + "widgetSize": "fd-col-md--4 fd-col--6", + "widgetType": "TEXTBOX", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "TIN", + "widgetDropdownUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 20, + "inputRule": "" + }, + { + "dataLength": "36", + "dataName": "SUPPLIER_IBAN", + "dataNullable": true, + "dataType": "VARCHAR", + "description": "", + "name": "IBAN", + "tooltip": "", + "widgetIsMajor": true, + "widgetLength": "36", + "widgetSize": "fd-col-md--4 fd-col--6", + "widgetType": "TEXTBOX", + "dataNotNull": false, + "dataAutoIncrement": false, + "dataPrimaryKey": false, + "dataUnique": false, + "isRequiredProperty": false, + "isCalculatedProperty": false, + "widgetLabel": "IBAN", + "widgetDropdownUrl": "", + "dataTypeJava": "string", + "dataTypeTypescript": "string", + "minLength": 0, + "maxLength": 36, + "inputRule": "" + } + ], + "caption": "Manage entity Supplier", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"CODBEX_SUPPLIER\"", + "dataName": "SUPPLIER", + "dataQuery": "", + "description": "Manage entity Supplier", + "generateDefaultRoles": "false", + "generateReport": "false", + "icon": "/services/web/resources/unicons/file.svg", + "layoutType": "MANAGE", + "menuIndex": "100", + "menuKey": "supplier", + "menuLabel": "Supplier", + "name": "Supplier", + "navigationPath": "/Home", + "perspectiveIcon": "/services/web/resources/unicons/user-minus.svg", + "perspectiveLabel": "Suppliers", + "perspectiveName": "Suppliers", + "perspectiveOrder": "200", + "perspectiveRole": "", + "projectionReferencedEntity": "Supplier", + "projectionReferencedModel": "/workspace/codbex-partners/codbex-partners.model", + "title": "Supplier", + "tooltip": "Supplier", + "type": "COPIED", + "dataSource": "DefaultDB", + "referencedProjections": [], + "primaryKeys": [ + "Id" + ], + "primaryKeysString": "Id", + "hasDropdowns": true } ] } \ No newline at end of file diff --git a/codbex-payments/codbex-payments.model b/codbex-payments/codbex-payments.model index 7036bea..3d10c82 100644 --- a/codbex-payments/codbex-payments.model +++ b/codbex-payments/codbex-payments.model @@ -250,6 +250,7 @@ "dataName": "CUSTOMERPAYMENT", "dataQuery": "", "description": "Manage entity CustomerPayment", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "importsCode": "aW1wb3J0IHsgTnVtYmVyR2VuZXJhdG9yU2VydmljZSB9IGZyb20gIi9jb2RiZXgtbnVtYmVyLWdlbmVyYXRvci9zZXJ2aWNlL2dlbmVyYXRvciI7", @@ -284,6 +285,24 @@ "widgetSize": "", "widgetType": "TEXTBOX" }, + { + "dataName": "SUPPLIERPAYMENT_SUPPLIER", + "dataNullable": "true", + "dataType": "INTEGER", + "description": "", + "name": "Supplier", + "tooltip": "", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "", + "widgetType": "DROPDOWN", + "relationshipName": "SupplierPayment_Supplier", + "relationshipEntityName": "Supplier", + "relationshipEntityPerspectiveName": "Suppliers", + "relationshipEntityPerspectiveLabel": "Suppliers" + }, { "dataName": "SUPPLIERPAYMENT_DATE", "dataNullable": "false", @@ -480,6 +499,7 @@ "dataName": "SUPPLIERPAYMENT", "dataQuery": "", "description": "Manage entity SupplierPayment", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "importsCode": "aW1wb3J0IHsgTnVtYmVyR2VuZXJhdG9yU2VydmljZSB9IGZyb20gIi9jb2RiZXgtbnVtYmVyLWdlbmVyYXRvci9zZXJ2aWNlL2dlbmVyYXRvciI7", @@ -710,6 +730,7 @@ "dataName": "EMPLOYEEPAYMENT", "dataQuery": "", "description": "Manage entity EmployeePayment", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "importsCode": "aW1wb3J0IHsgTnVtYmVyR2VuZXJhdG9yU2VydmljZSB9IGZyb20gIi9jb2RiZXgtbnVtYmVyLWdlbmVyYXRvci9zZXJ2aWNlL2dlbmVyYXRvciI7", @@ -988,6 +1009,7 @@ "dataName": "PAYMENTRECORD", "dataQuery": "", "description": "Manage entity PaymentRecord", + "generateDefaultRoles": "false", "generateReport": "true", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE_MASTER", @@ -1116,6 +1138,7 @@ "dataName": "CURRENCY", "dataQuery": "", "description": "Manage entity Currency", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -1321,6 +1344,7 @@ "dataName": "COMPANY", "dataQuery": "", "description": "Manage entity Company", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -1375,6 +1399,7 @@ "dataName": "PAYMENTRECORDDIRECTION", "dataQuery": "", "description": "Manage entity PaymentRecordDirection", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -1427,6 +1452,7 @@ "dataName": "PAYMENTSTATUS", "dataQuery": "", "description": "Manage entity PaymentStatus", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -1479,6 +1505,7 @@ "dataName": "PAYMENTTYPE", "dataQuery": "", "description": "Manage entity PaymentType", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -1531,6 +1558,7 @@ "dataName": "PAYMENTMETHOD", "dataQuery": "", "description": "Manage entity PaymentMethod", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -1715,6 +1743,7 @@ "dataName": "CUSTOMER", "dataQuery": "", "description": "Manage entity Customer", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE", @@ -1864,6 +1893,7 @@ "dataName": "PAYMENTADJUSTMENT", "dataQuery": "", "description": "Manage entity PaymentAdjustment", + "generateDefaultRoles": "false", "generateReport": "false", "icon": "/services/web/resources/unicons/file.svg", "layoutType": "MANAGE_MASTER", @@ -1880,6 +1910,191 @@ "title": "PaymentAdjustment", "tooltip": "PaymentAdjustment", "type": "PRIMARY" + }, + { + "properties": [ + { + "dataAutoIncrement": "true", + "dataName": "SUPPLIER_ID", + "dataNullable": "true", + "dataPrimaryKey": "true", + "dataType": "INTEGER", + "description": "", + "name": "Id", + "tooltip": "", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "", + "widgetType": "TEXTBOX" + }, + { + "dataLength": "100", + "dataName": "SUPPLIER_NAME", + "dataNullable": "true", + "dataType": "VARCHAR", + "description": "", + "isRequiredProperty": "true", + "name": "Name", + "tooltip": "", + "widgetIsMajor": "true", + "widgetLength": "100", + "widgetSize": "", + "widgetType": "TEXTBOX" + }, + { + "dataLength": "200", + "dataName": "SUPPLIER_ADDRESS", + "dataNullable": "true", + "dataType": "VARCHAR", + "description": "", + "isRequiredProperty": "true", + "name": "Address", + "tooltip": "", + "widgetIsMajor": "true", + "widgetLength": "200", + "widgetSize": "", + "widgetType": "TEXTAREA" + }, + { + "dataLength": "20", + "dataName": "SUPPLIER_POSTALCODE", + "dataNullable": "true", + "dataType": "VARCHAR", + "description": "", + "name": "PostalCode", + "tooltip": "", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "fd-col-md--2 fd-col--3", + "widgetType": "TEXTBOX" + }, + { + "dataLength": "100", + "dataName": "SUPPLIER_EMAIL", + "dataNullable": "true", + "dataType": "VARCHAR", + "description": "", + "isRequiredProperty": "true", + "name": "Email", + "tooltip": "", + "widgetIsMajor": "true", + "widgetLength": "100", + "widgetSize": "fd-col-md--4 fd-col--6", + "widgetType": "TEXTBOX" + }, + { + "dataLength": "20", + "dataName": "SUPPLIER_PHONE", + "dataNullable": "true", + "dataType": "VARCHAR", + "description": "", + "name": "Phone", + "tooltip": "", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "fd-col-md--2 fd-col--3", + "widgetType": "TEXTBOX" + }, + { + "dataLength": "20", + "dataName": "SUPPLIER_FAX", + "dataNullable": "true", + "dataType": "VARCHAR", + "description": "", + "name": "Fax", + "tooltip": "", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "fd-col-md--2 fd-col--3", + "widgetType": "TEXTBOX" + }, + { + "dataName": "SUPPLIER_COUNTRY", + "dataNullable": "true", + "dataType": "INTEGER", + "description": "", + "isRequiredProperty": "true", + "name": "Country", + "relationshipEntityPerspectiveLabel": "Entities", + "relationshipEntityPerspectiveName": "Countries", + "relationshipName": "Supplier_Country", + "tooltip": "", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "", + "widgetType": "DROPDOWN" + }, + { + "dataName": "SUPPLIER_CITY", + "dataNullable": "true", + "dataType": "INTEGER", + "description": "", + "isRequiredProperty": "true", + "name": "City", + "relationshipEntityPerspectiveLabel": "Entities", + "relationshipEntityPerspectiveName": "Cities", + "relationshipName": "Supplier_City", + "tooltip": "", + "widgetDropDownKey": "Id", + "widgetDropDownValue": "Name", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "", + "widgetType": "DROPDOWN" + }, + { + "dataLength": "20", + "dataName": "SUPPLIER_TIN", + "dataNullable": "true", + "dataType": "VARCHAR", + "description": "", + "name": "TIN", + "tooltip": "", + "widgetIsMajor": "true", + "widgetLength": "20", + "widgetSize": "fd-col-md--4 fd-col--6", + "widgetType": "TEXTBOX" + }, + { + "dataLength": "36", + "dataName": "SUPPLIER_IBAN", + "dataNullable": "true", + "dataType": "VARCHAR", + "description": "", + "name": "IBAN", + "tooltip": "", + "widgetIsMajor": "true", + "widgetLength": "36", + "widgetSize": "fd-col-md--4 fd-col--6", + "widgetType": "TEXTBOX" + } + ], + "caption": "Manage entity Supplier", + "dataCount": "SELECT COUNT(*) AS COUNT FROM \"${tablePrefix}SUPPLIER\"", + "dataName": "SUPPLIER", + "dataQuery": "", + "description": "Manage entity Supplier", + "generateDefaultRoles": "false", + "generateReport": "false", + "icon": "/services/web/resources/unicons/file.svg", + "layoutType": "MANAGE", + "menuIndex": "100", + "menuKey": "supplier", + "menuLabel": "Supplier", + "name": "Supplier", + "navigationPath": "/Home", + "perspectiveIcon": "/services/web/resources/unicons/user-minus.svg", + "perspectiveLabel": "Suppliers", + "perspectiveName": "Suppliers", + "perspectiveOrder": "200", + "perspectiveRole": "", + "projectionReferencedEntity": "Supplier", + "projectionReferencedModel": "/workspace/codbex-partners/codbex-partners.model", + "title": "Supplier", + "tooltip": "Supplier", + "type": "COPIED" } ], "perspectives": [ diff --git a/codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts b/codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts new file mode 100644 index 0000000..6ffe061 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts @@ -0,0 +1,166 @@ +import { Controller, Get, Post, Put, Delete, response } from "sdk/http" +import { Extensions } from "sdk/extensions" +import { SupplierRepository, SupplierEntityOptions } from "../../dao/Suppliers/SupplierRepository"; +import { ValidationError } from "../utils/ValidationError"; +import { HttpUtils } from "../utils/HttpUtils"; + +const validationModules = await Extensions.loadExtensionModules("codbex-payments-Suppliers-Supplier", ["validate"]); + +@Controller +class SupplierService { + + private readonly repository = new SupplierRepository(); + + @Get("/") + public getAll(_: any, ctx: any) { + try { + const options: SupplierEntityOptions = { + $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, + $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined + }; + + return this.repository.findAll(options); + } catch (error: any) { + this.handleError(error); + } + } + + @Post("/") + public create(entity: any) { + try { + this.validateEntity(entity); + entity.Id = this.repository.create(entity); + response.setHeader("Content-Location", "/services/ts/codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts/" + entity.Id); + response.setStatus(response.CREATED); + return entity; + } catch (error: any) { + this.handleError(error); + } + } + + @Get("/count") + public count() { + try { + return this.repository.count(); + } catch (error: any) { + this.handleError(error); + } + } + + @Post("/count") + public countWithFilter(filter: any) { + try { + return this.repository.count(filter); + } catch (error: any) { + this.handleError(error); + } + } + + @Post("/search") + public search(filter: any) { + try { + return this.repository.findAll(filter); + } catch (error: any) { + this.handleError(error); + } + } + + @Get("/:id") + public getById(_: any, ctx: any) { + try { + const id = parseInt(ctx.pathParameters.id); + const entity = this.repository.findById(id); + if (entity) { + return entity; + } else { + HttpUtils.sendResponseNotFound("Supplier not found"); + } + } catch (error: any) { + this.handleError(error); + } + } + + @Put("/:id") + public update(entity: any, ctx: any) { + try { + entity.Id = ctx.pathParameters.id; + this.validateEntity(entity); + this.repository.update(entity); + return entity; + } catch (error: any) { + this.handleError(error); + } + } + + @Delete("/:id") + public deleteById(_: any, ctx: any) { + try { + const id = ctx.pathParameters.id; + const entity = this.repository.findById(id); + if (entity) { + this.repository.deleteById(id); + HttpUtils.sendResponseNoContent(); + } else { + HttpUtils.sendResponseNotFound("Supplier 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 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 > 100) { + throw new ValidationError(`The 'Name' exceeds the maximum length of [100] characters`); + } + if (entity.Address === null || entity.Address === undefined) { + throw new ValidationError(`The 'Address' property is required, provide a valid value`); + } + if (entity.Address?.length > 200) { + throw new ValidationError(`The 'Address' exceeds the maximum length of [200] characters`); + } + if (entity.PostalCode?.length > 20) { + throw new ValidationError(`The 'PostalCode' exceeds the maximum length of [20] characters`); + } + if (entity.Email === null || entity.Email === undefined) { + throw new ValidationError(`The 'Email' property is required, provide a valid value`); + } + if (entity.Email?.length > 100) { + throw new ValidationError(`The 'Email' exceeds the maximum length of [100] characters`); + } + if (entity.Phone?.length > 20) { + throw new ValidationError(`The 'Phone' exceeds the maximum length of [20] characters`); + } + if (entity.Fax?.length > 20) { + throw new ValidationError(`The 'Fax' exceeds the maximum length of [20] characters`); + } + if (entity.Country === null || entity.Country === undefined) { + throw new ValidationError(`The 'Country' property is required, provide a valid value`); + } + if (entity.City === null || entity.City === undefined) { + throw new ValidationError(`The 'City' property is required, provide a valid value`); + } + if (entity.TIN?.length > 20) { + throw new ValidationError(`The 'TIN' exceeds the maximum length of [20] characters`); + } + if (entity.IBAN?.length > 36) { + throw new ValidationError(`The 'IBAN' exceeds the maximum length of [36] characters`); + } + for (const next of validationModules) { + next.validate(entity); + } + } + +} diff --git a/codbex-payments/gen/codbex-payments/codbex-payments.openapi b/codbex-payments/gen/codbex-payments/codbex-payments.openapi index d539e94..fc80f79 100644 --- a/codbex-payments/gen/codbex-payments/codbex-payments.openapi +++ b/codbex-payments/gen/codbex-payments/codbex-payments.openapi @@ -17,6 +17,7 @@ tags: - name: Settings - name: Settings - name: PaymentAdjustment + - name: Suppliers paths: /codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts: get: @@ -3330,6 +3331,434 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' + /codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts: + get: + summary: List Supplier + parameters: + - in: query + name: $limit + description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + - in: query + name: $offset + description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. + required: false + allowReserved: true + schema: + type: integer + allowEmptyValue: true + tags: + - Suppliers + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Supplier' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Create Supplier + tags: + - Suppliers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Supplier' + required: true + responses: + 201: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/Supplier' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts/{id}: + get: + summary: Get Supplier by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - Suppliers + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Supplier' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + put: + summary: Update Supplier by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - Suppliers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/Supplier' + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + $ref: '#/components/schemas/Supplier' + 400: + description: Bad Request Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + delete: + summary: Delete Supplier by Id + parameters: + - in: path + name: id + description: The Id of the entity. + required: true + schema: + type: string + tags: + - Suppliers + responses: + 204: + description: Successful Request + 404: + description: Entity Not Found + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts/count: + get: + summary: Count the number of Supplier + tags: + - Suppliers + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + post: + summary: Count the number of Supplier by SupplierFilterOptions + tags: + - Suppliers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SupplierFilterOptions' + examples: + countWithMultipleCriteria: + summary: Count with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + Name: "abcd" + Address: "abcd" + PostalCode: "abcd" + Email: "abcd" + Phone: "abcd" + Fax: "abcd" + TIN: "abcd" + IBAN: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + countWithEquals: + summary: Count with Equals + value: + $filter: + equals: + Id: 0 + countWithNotEquals: + summary: Count with Not Equals + value: + $filter: + notEquals: + Id: 0 + countWithContains: + summary: Count with Contains + value: + $filter: + contains: + Name: "abcd" + Address: "abcd" + PostalCode: "abcd" + Email: "abcd" + Phone: "abcd" + Fax: "abcd" + TIN: "abcd" + IBAN: "abcd" + countWithGreaterThan: + summary: Count with Greater Than + value: + $filter: + greaterThan: + Id: 0 + countWithGreaterThanOrEqual: + summary: Count with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + countWithLessThan: + summary: Count with Less Than + value: + $filter: + lessThan: + Id: 0 + countWithLessThanOrEqual: + summary: Count with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: integer + example: 100 + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + /codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts/search: + post: + summary: Search Supplier by SupplierFilterOptions + tags: + - Suppliers + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SupplierFilterOptions' + examples: + searchWithMultipleCriteria: + summary: Search with multiple criteria + value: + $filter: + notEquals: + Id: 33 + contains: + Name: "abcd" + Address: "abcd" + PostalCode: "abcd" + Email: "abcd" + Phone: "abcd" + Fax: "abcd" + TIN: "abcd" + IBAN: "abcd" + greaterThan: + Id: 0 + lessThanOrEqual: + Id: 100 + searchWithEquals: + summary: Search with Equals + value: + $filter: + equals: + Id: 0 + searchWithNotEquals: + summary: Search with Not Equals + value: + $filter: + notEquals: + Id: 0 + searchWithContains: + summary: Search with Contains + value: + $filter: + contains: + Name: "abcd" + Address: "abcd" + PostalCode: "abcd" + Email: "abcd" + Phone: "abcd" + Fax: "abcd" + TIN: "abcd" + IBAN: "abcd" + searchWithGreaterThan: + summary: Search with Greater Than + value: + $filter: + greaterThan: + Id: 0 + searchWithGreaterThanOrEqual: + summary: Search with Greater Than Or Equal + value: + $filter: + greaterThanOrEqual: + Id: 0 + searchWithLessThan: + summary: Search with Less Than + value: + $filter: + lessThan: + Id: 0 + searchWithLessThanOrEqual: + summary: Search with Less Than Or Equal + value: + $filter: + lessThanOrEqual: + Id: 0 + required: true + responses: + 200: + description: Successful Request + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Supplier' + 403: + description: Forbidden Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 500: + description: Internal Server Error + content: + application/json: + schema: + $ref: '#/components/schemas/Error' components: schemas: CustomerPayment: @@ -3981,6 +4410,9 @@ components: Id: type: integer format: int32 + Supplier: + type: integer + format: int32 Date: Valor: CompanyIBAN: @@ -4043,6 +4475,14 @@ components: items: type: integer format: int32 + Supplier: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 Date: oneOf: Valor: @@ -4170,6 +4610,14 @@ components: items: type: integer format: int32 + Supplier: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 Date: oneOf: Valor: @@ -4290,6 +4738,7 @@ components: type: object properties: Id: + Supplier: Date: Valor: CompanyIBAN: @@ -4333,6 +4782,9 @@ components: Id: type: integer format: int32 + Supplier: + type: integer + format: int32 Date: Valor: CompanyIBAN: @@ -4382,6 +4834,9 @@ components: Id: type: integer format: int32 + Supplier: + type: integer + format: int32 Date: Valor: CompanyIBAN: @@ -4431,6 +4886,9 @@ components: Id: type: integer format: int32 + Supplier: + type: integer + format: int32 Date: Valor: CompanyIBAN: @@ -4480,6 +4938,9 @@ components: Id: type: integer format: int32 + Supplier: + type: integer + format: int32 Date: Valor: CompanyIBAN: @@ -4525,12 +4986,12 @@ components: maxLength: 36 $select: type: array - example: ["Id", "Date", "Valor", "CompanyIBAN", "CounterpartyIBAN", "CounterpartyName", "Amount", "Currency", "Reason", "Description", "Company", "Name", "UUID", "Reference"] + example: ["Id", "Supplier", "Date", "Valor", "CompanyIBAN", "CounterpartyIBAN", "CounterpartyName", "Amount", "Currency", "Reason", "Description", "Company", "Name", "UUID", "Reference"] items: type: string $sort: - type: string - example: "Id,Date,Valor,CompanyIBAN,CounterpartyIBAN,CounterpartyName,Amount,Currency,Reason,Description,Company,Name,UUID,Reference" + example: "Id,Supplier,Date,Valor,CompanyIBAN,CounterpartyIBAN,CounterpartyName,Amount,Currency,Reason,Description,Company,Name,UUID,Reference" $order: type: string enum: ["asc", "desc"] @@ -6011,11 +6472,159 @@ components: Id: type: integer format: int32 - Name: + Name: + type: string + minLength: 0 + maxLength: 20 + PaymentTypeFilterOptions: + type: object + properties: + $filter: + type: object + properties: + equals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Name: + oneOf: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + notEquals: + type: object + properties: + Id: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Name: + oneOf: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + contains: + type: object + properties: + Id: + Name: + type: string + minLength: 0 + maxLength: 20 + greaterThan: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 20 + greaterThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 20 + lessThan: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 20 + lessThanOrEqual: + type: object + properties: + Id: + type: integer + format: int32 + Name: + type: string + minLength: 0 + maxLength: 20 + $select: + type: array + example: ["Id", "Name"] + items: + type: string + $sort: + - type: string + example: "Id,Name" + $order: + type: string + enum: ["asc", "desc"] + example: "asc" + $offset: + type: integer + example: 0 + $limit: + type: integer + example: 10 + PaymentAdjustment: + type: object + required: + - Date + - Valor + - Amount + - Currency + - Company + properties: + Id: + type: integer + format: int32 + Date: + Valor: + Amount: + type: number + format: double + Currency: + type: integer + format: int32 + Company: + type: integer + format: int32 + Reason: type: string minLength: 0 - maxLength: 20 - PaymentTypeFilterOptions: + maxLength: 100 + UUID: + type: string + minLength: 0 + maxLength: 36 + readOnly: true + PaymentAdjustmentFilterOptions: type: object properties: $filter: @@ -6032,17 +6641,56 @@ components: items: type: integer format: int32 - Name: + Date: + oneOf: + Valor: + oneOf: + Amount: + oneOf: + - type: number + format: double + - type: array + items: + type: number + format: double + Currency: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Company: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Reason: oneOf: - type: string minLength: 0 - maxLength: 20 + maxLength: 100 - type: array items: type: string format: double minLength: 0 - maxLength: 20 + maxLength: 100 + UUID: + oneOf: + - type: string + minLength: 0 + maxLength: 36 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 36 notEquals: type: object properties: @@ -6054,73 +6702,181 @@ components: items: type: integer format: int32 - Name: + Date: + oneOf: + Valor: + oneOf: + Amount: + oneOf: + - type: number + format: double + - type: array + items: + type: number + format: double + Currency: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Company: + oneOf: + - type: integer + format: int32 + - type: array + items: + type: integer + format: int32 + Reason: oneOf: - type: string minLength: 0 - maxLength: 20 + maxLength: 100 - type: array items: type: string format: double minLength: 0 - maxLength: 20 + maxLength: 100 + UUID: + oneOf: + - type: string + minLength: 0 + maxLength: 36 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 36 contains: type: object properties: Id: - Name: + Date: + Valor: + Amount: + Currency: + Company: + Reason: type: string minLength: 0 - maxLength: 20 + maxLength: 100 + UUID: + type: string + minLength: 0 + maxLength: 36 greaterThan: type: object properties: Id: type: integer format: int32 - Name: + Date: + Valor: + Amount: + type: number + format: double + Currency: + type: integer + format: int32 + Company: + type: integer + format: int32 + Reason: type: string minLength: 0 - maxLength: 20 + maxLength: 100 + UUID: + type: string + minLength: 0 + maxLength: 36 greaterThanOrEqual: type: object properties: Id: type: integer format: int32 - Name: + Date: + Valor: + Amount: + type: number + format: double + Currency: + type: integer + format: int32 + Company: + type: integer + format: int32 + Reason: type: string minLength: 0 - maxLength: 20 + maxLength: 100 + UUID: + type: string + minLength: 0 + maxLength: 36 lessThan: type: object properties: Id: type: integer format: int32 - Name: + Date: + Valor: + Amount: + type: number + format: double + Currency: + type: integer + format: int32 + Company: + type: integer + format: int32 + Reason: type: string minLength: 0 - maxLength: 20 + maxLength: 100 + UUID: + type: string + minLength: 0 + maxLength: 36 lessThanOrEqual: type: object properties: Id: type: integer format: int32 - Name: + Date: + Valor: + Amount: + type: number + format: double + Currency: + type: integer + format: int32 + Company: + type: integer + format: int32 + Reason: type: string minLength: 0 - maxLength: 20 + maxLength: 100 + UUID: + type: string + minLength: 0 + maxLength: 36 $select: type: array - example: ["Id", "Name"] + example: ["Id", "Date", "Valor", "Amount", "Currency", "Company", "Reason", "UUID"] items: type: string $sort: - type: string - example: "Id,Name" + example: "Id,Date,Valor,Amount,Currency,Company,Reason,UUID" $order: type: string enum: ["asc", "desc"] @@ -6131,39 +6887,57 @@ components: $limit: type: integer example: 10 - PaymentAdjustment: + Supplier: type: object required: - - Date - - Valor - - Amount - - Currency - - Company + - Name + - Address + - Email + - Country + - City properties: Id: type: integer format: int32 - Date: - Valor: - Amount: - type: number - format: double - Currency: + Name: + type: string + minLength: 0 + maxLength: 100 + Address: + type: string + minLength: 0 + maxLength: 200 + PostalCode: + type: string + minLength: 0 + maxLength: 20 + Email: + type: string + minLength: 0 + maxLength: 100 + Phone: + type: string + minLength: 0 + maxLength: 20 + Fax: + type: string + minLength: 0 + maxLength: 20 + Country: type: integer format: int32 - Company: + City: type: integer format: int32 - Reason: + TIN: type: string minLength: 0 - maxLength: 100 - UUID: + maxLength: 20 + IBAN: type: string minLength: 0 maxLength: 36 - readOnly: true - PaymentAdjustmentFilterOptions: + SupplierFilterOptions: type: object properties: $filter: @@ -6178,21 +6952,75 @@ components: format: int32 - type: array items: - type: integer - format: int32 - Date: + type: integer + format: int32 + Name: + oneOf: + - type: string + minLength: 0 + maxLength: 100 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 100 + Address: + oneOf: + - type: string + minLength: 0 + maxLength: 200 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 200 + PostalCode: + oneOf: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + Email: oneOf: - Valor: + - type: string + minLength: 0 + maxLength: 100 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 100 + Phone: oneOf: - Amount: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + Fax: oneOf: - - type: number - format: double + - type: string + minLength: 0 + maxLength: 20 - type: array items: - type: number + type: string format: double - Currency: + minLength: 0 + maxLength: 20 + Country: oneOf: - type: integer format: int32 @@ -6200,7 +7028,7 @@ components: items: type: integer format: int32 - Company: + City: oneOf: - type: integer format: int32 @@ -6208,18 +7036,18 @@ components: items: type: integer format: int32 - Reason: + TIN: oneOf: - type: string minLength: 0 - maxLength: 100 + maxLength: 20 - type: array items: type: string format: double minLength: 0 - maxLength: 100 - UUID: + maxLength: 20 + IBAN: oneOf: - type: string minLength: 0 @@ -6241,19 +7069,73 @@ components: items: type: integer format: int32 - Date: + Name: oneOf: - Valor: + - type: string + minLength: 0 + maxLength: 100 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 100 + Address: oneOf: - Amount: + - type: string + minLength: 0 + maxLength: 200 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 200 + PostalCode: oneOf: - - type: number - format: double + - type: string + minLength: 0 + maxLength: 20 - type: array items: - type: number + type: string format: double - Currency: + minLength: 0 + maxLength: 20 + Email: + oneOf: + - type: string + minLength: 0 + maxLength: 100 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 100 + Phone: + oneOf: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + Fax: + oneOf: + - type: string + minLength: 0 + maxLength: 20 + - type: array + items: + type: string + format: double + minLength: 0 + maxLength: 20 + Country: oneOf: - type: integer format: int32 @@ -6261,7 +7143,7 @@ components: items: type: integer format: int32 - Company: + City: oneOf: - type: integer format: int32 @@ -6269,18 +7151,18 @@ components: items: type: integer format: int32 - Reason: + TIN: oneOf: - type: string minLength: 0 - maxLength: 100 + maxLength: 20 - type: array items: type: string format: double minLength: 0 - maxLength: 100 - UUID: + maxLength: 20 + IBAN: oneOf: - type: string minLength: 0 @@ -6295,16 +7177,37 @@ components: type: object properties: Id: - Date: - Valor: - Amount: - Currency: - Company: - Reason: + Name: type: string minLength: 0 maxLength: 100 - UUID: + Address: + type: string + minLength: 0 + maxLength: 200 + PostalCode: + type: string + minLength: 0 + maxLength: 20 + Email: + type: string + minLength: 0 + maxLength: 100 + Phone: + type: string + minLength: 0 + maxLength: 20 + Fax: + type: string + minLength: 0 + maxLength: 20 + Country: + City: + TIN: + type: string + minLength: 0 + maxLength: 20 + IBAN: type: string minLength: 0 maxLength: 36 @@ -6314,22 +7217,41 @@ components: Id: type: integer format: int32 - Date: - Valor: - Amount: - type: number - format: double - Currency: + Name: + type: string + minLength: 0 + maxLength: 100 + Address: + type: string + minLength: 0 + maxLength: 200 + PostalCode: + type: string + minLength: 0 + maxLength: 20 + Email: + type: string + minLength: 0 + maxLength: 100 + Phone: + type: string + minLength: 0 + maxLength: 20 + Fax: + type: string + minLength: 0 + maxLength: 20 + Country: type: integer format: int32 - Company: + City: type: integer format: int32 - Reason: + TIN: type: string minLength: 0 - maxLength: 100 - UUID: + maxLength: 20 + IBAN: type: string minLength: 0 maxLength: 36 @@ -6339,22 +7261,41 @@ components: Id: type: integer format: int32 - Date: - Valor: - Amount: - type: number - format: double - Currency: + Name: + type: string + minLength: 0 + maxLength: 100 + Address: + type: string + minLength: 0 + maxLength: 200 + PostalCode: + type: string + minLength: 0 + maxLength: 20 + Email: + type: string + minLength: 0 + maxLength: 100 + Phone: + type: string + minLength: 0 + maxLength: 20 + Fax: + type: string + minLength: 0 + maxLength: 20 + Country: type: integer format: int32 - Company: + City: type: integer format: int32 - Reason: + TIN: type: string minLength: 0 - maxLength: 100 - UUID: + maxLength: 20 + IBAN: type: string minLength: 0 maxLength: 36 @@ -6364,22 +7305,41 @@ components: Id: type: integer format: int32 - Date: - Valor: - Amount: - type: number - format: double - Currency: + Name: + type: string + minLength: 0 + maxLength: 100 + Address: + type: string + minLength: 0 + maxLength: 200 + PostalCode: + type: string + minLength: 0 + maxLength: 20 + Email: + type: string + minLength: 0 + maxLength: 100 + Phone: + type: string + minLength: 0 + maxLength: 20 + Fax: + type: string + minLength: 0 + maxLength: 20 + Country: type: integer format: int32 - Company: + City: type: integer format: int32 - Reason: + TIN: type: string minLength: 0 - maxLength: 100 - UUID: + maxLength: 20 + IBAN: type: string minLength: 0 maxLength: 36 @@ -6389,33 +7349,52 @@ components: Id: type: integer format: int32 - Date: - Valor: - Amount: - type: number - format: double - Currency: + Name: + type: string + minLength: 0 + maxLength: 100 + Address: + type: string + minLength: 0 + maxLength: 200 + PostalCode: + type: string + minLength: 0 + maxLength: 20 + Email: + type: string + minLength: 0 + maxLength: 100 + Phone: + type: string + minLength: 0 + maxLength: 20 + Fax: + type: string + minLength: 0 + maxLength: 20 + Country: type: integer format: int32 - Company: + City: type: integer format: int32 - Reason: + TIN: type: string minLength: 0 - maxLength: 100 - UUID: + maxLength: 20 + IBAN: type: string minLength: 0 maxLength: 36 $select: type: array - example: ["Id", "Date", "Valor", "Amount", "Currency", "Company", "Reason", "UUID"] + example: ["Id", "Name", "Address", "PostalCode", "Email", "Phone", "Fax", "Country", "City", "TIN", "IBAN"] items: type: string $sort: - type: string - example: "Id,Date,Valor,Amount,Currency,Company,Reason,UUID" + example: "Id,Name,Address,PostalCode,Email,Phone,Fax,Country,City,TIN,IBAN" $order: type: string enum: ["asc", "desc"] diff --git a/codbex-payments/gen/codbex-payments/dao/SupplierPayment/SupplierPaymentRepository.ts b/codbex-payments/gen/codbex-payments/dao/SupplierPayment/SupplierPaymentRepository.ts index 4fa79d0..582a291 100644 --- a/codbex-payments/gen/codbex-payments/dao/SupplierPayment/SupplierPaymentRepository.ts +++ b/codbex-payments/gen/codbex-payments/dao/SupplierPayment/SupplierPaymentRepository.ts @@ -8,6 +8,7 @@ import { NumberGeneratorService } from "/codbex-number-generator/service/generat export interface SupplierPaymentEntity { readonly Id: number; + Supplier?: number; Date: Date; Valor: Date; CompanyIBAN?: string; @@ -24,6 +25,7 @@ export interface SupplierPaymentEntity { } export interface SupplierPaymentCreateEntity { + readonly Supplier?: number; readonly Date: Date; readonly Valor: Date; readonly CompanyIBAN?: string; @@ -45,6 +47,7 @@ export interface SupplierPaymentEntityOptions { $filter?: { equals?: { Id?: number | number[]; + Supplier?: number | number[]; Date?: Date | Date[]; Valor?: Date | Date[]; CompanyIBAN?: string | string[]; @@ -61,6 +64,7 @@ export interface SupplierPaymentEntityOptions { }; notEquals?: { Id?: number | number[]; + Supplier?: number | number[]; Date?: Date | Date[]; Valor?: Date | Date[]; CompanyIBAN?: string | string[]; @@ -77,6 +81,7 @@ export interface SupplierPaymentEntityOptions { }; contains?: { Id?: number; + Supplier?: number; Date?: Date; Valor?: Date; CompanyIBAN?: string; @@ -93,6 +98,7 @@ export interface SupplierPaymentEntityOptions { }; greaterThan?: { Id?: number; + Supplier?: number; Date?: Date; Valor?: Date; CompanyIBAN?: string; @@ -109,6 +115,7 @@ export interface SupplierPaymentEntityOptions { }; greaterThanOrEqual?: { Id?: number; + Supplier?: number; Date?: Date; Valor?: Date; CompanyIBAN?: string; @@ -125,6 +132,7 @@ export interface SupplierPaymentEntityOptions { }; lessThan?: { Id?: number; + Supplier?: number; Date?: Date; Valor?: Date; CompanyIBAN?: string; @@ -141,6 +149,7 @@ export interface SupplierPaymentEntityOptions { }; lessThanOrEqual?: { Id?: number; + Supplier?: number; Date?: Date; Valor?: Date; CompanyIBAN?: string; @@ -190,6 +199,11 @@ export class SupplierPaymentRepository { id: true, autoIncrement: true, }, + { + name: "Supplier", + column: "SUPPLIERPAYMENT_SUPPLIER", + type: "INTEGER", + }, { name: "Date", column: "SUPPLIERPAYMENT_DATE", diff --git a/codbex-payments/gen/codbex-payments/dao/Suppliers/Supplier.extensionpoint b/codbex-payments/gen/codbex-payments/dao/Suppliers/Supplier.extensionpoint new file mode 100644 index 0000000..eec18c7 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/dao/Suppliers/Supplier.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "codbex-payments-Suppliers-Supplier", + "description": "Extension Point for the codbex-payments-Suppliers-Supplier entity" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/dao/Suppliers/SupplierRepository.ts b/codbex-payments/gen/codbex-payments/dao/Suppliers/SupplierRepository.ts new file mode 100644 index 0000000..7564d80 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/dao/Suppliers/SupplierRepository.ts @@ -0,0 +1,321 @@ +import { query } from "sdk/db"; +import { producer } from "sdk/messaging"; +import { extensions } from "sdk/extensions"; +import { dao as daoApi } from "sdk/db"; + +export interface SupplierEntity { + readonly Id: number; + Name?: string; + Address?: string; + PostalCode?: string; + Email?: string; + Phone?: string; + Fax?: string; + Country?: number; + City?: number; + TIN?: string; + IBAN?: string; +} + +export interface SupplierCreateEntity { + readonly Name?: string; + readonly Address?: string; + readonly PostalCode?: string; + readonly Email?: string; + readonly Phone?: string; + readonly Fax?: string; + readonly Country?: number; + readonly City?: number; + readonly TIN?: string; + readonly IBAN?: string; +} + +export interface SupplierUpdateEntity extends SupplierCreateEntity { + readonly Id: number; +} + +export interface SupplierEntityOptions { + $filter?: { + equals?: { + Id?: number | number[]; + Name?: string | string[]; + Address?: string | string[]; + PostalCode?: string | string[]; + Email?: string | string[]; + Phone?: string | string[]; + Fax?: string | string[]; + Country?: number | number[]; + City?: number | number[]; + TIN?: string | string[]; + IBAN?: string | string[]; + }; + notEquals?: { + Id?: number | number[]; + Name?: string | string[]; + Address?: string | string[]; + PostalCode?: string | string[]; + Email?: string | string[]; + Phone?: string | string[]; + Fax?: string | string[]; + Country?: number | number[]; + City?: number | number[]; + TIN?: string | string[]; + IBAN?: string | string[]; + }; + contains?: { + Id?: number; + Name?: string; + Address?: string; + PostalCode?: string; + Email?: string; + Phone?: string; + Fax?: string; + Country?: number; + City?: number; + TIN?: string; + IBAN?: string; + }; + greaterThan?: { + Id?: number; + Name?: string; + Address?: string; + PostalCode?: string; + Email?: string; + Phone?: string; + Fax?: string; + Country?: number; + City?: number; + TIN?: string; + IBAN?: string; + }; + greaterThanOrEqual?: { + Id?: number; + Name?: string; + Address?: string; + PostalCode?: string; + Email?: string; + Phone?: string; + Fax?: string; + Country?: number; + City?: number; + TIN?: string; + IBAN?: string; + }; + lessThan?: { + Id?: number; + Name?: string; + Address?: string; + PostalCode?: string; + Email?: string; + Phone?: string; + Fax?: string; + Country?: number; + City?: number; + TIN?: string; + IBAN?: string; + }; + lessThanOrEqual?: { + Id?: number; + Name?: string; + Address?: string; + PostalCode?: string; + Email?: string; + Phone?: string; + Fax?: string; + Country?: number; + City?: number; + TIN?: string; + IBAN?: string; + }; + }, + $select?: (keyof SupplierEntity)[], + $sort?: string | (keyof SupplierEntity)[], + $order?: 'asc' | 'desc', + $offset?: number, + $limit?: number, +} + +interface SupplierEntityEvent { + readonly operation: 'create' | 'update' | 'delete'; + readonly table: string; + readonly entity: Partial; + readonly key: { + name: string; + column: string; + value: number; + } +} + +interface SupplierUpdateEntityEvent extends SupplierEntityEvent { + readonly previousEntity: SupplierEntity; +} + +export class SupplierRepository { + + private static readonly DEFINITION = { + table: "CODBEX_SUPPLIER", + properties: [ + { + name: "Id", + column: "SUPPLIER_ID", + type: "INTEGER", + id: true, + autoIncrement: true, + }, + { + name: "Name", + column: "SUPPLIER_NAME", + type: "VARCHAR", + }, + { + name: "Address", + column: "SUPPLIER_ADDRESS", + type: "VARCHAR", + }, + { + name: "PostalCode", + column: "SUPPLIER_POSTALCODE", + type: "VARCHAR", + }, + { + name: "Email", + column: "SUPPLIER_EMAIL", + type: "VARCHAR", + }, + { + name: "Phone", + column: "SUPPLIER_PHONE", + type: "VARCHAR", + }, + { + name: "Fax", + column: "SUPPLIER_FAX", + type: "VARCHAR", + }, + { + name: "Country", + column: "SUPPLIER_COUNTRY", + type: "INTEGER", + }, + { + name: "City", + column: "SUPPLIER_CITY", + type: "INTEGER", + }, + { + name: "TIN", + column: "SUPPLIER_TIN", + type: "VARCHAR", + }, + { + name: "IBAN", + column: "SUPPLIER_IBAN", + type: "VARCHAR", + } + ] + }; + + private readonly dao; + + constructor(dataSource = "DefaultDB") { + this.dao = daoApi.create(SupplierRepository.DEFINITION, null, dataSource); + } + + public findAll(options?: SupplierEntityOptions): SupplierEntity[] { + return this.dao.list(options); + } + + public findById(id: number): SupplierEntity | undefined { + const entity = this.dao.find(id); + return entity ?? undefined; + } + + public create(entity: SupplierCreateEntity): number { + const id = this.dao.insert(entity); + this.triggerEvent({ + operation: "create", + table: "CODBEX_SUPPLIER", + entity: entity, + key: { + name: "Id", + column: "SUPPLIER_ID", + value: id + } + }); + return id; + } + + public update(entity: SupplierUpdateEntity): void { + const previousEntity = this.findById(entity.Id); + this.dao.update(entity); + this.triggerEvent({ + operation: "update", + table: "CODBEX_SUPPLIER", + entity: entity, + previousEntity: previousEntity, + key: { + name: "Id", + column: "SUPPLIER_ID", + value: entity.Id + } + }); + } + + public upsert(entity: SupplierCreateEntity | SupplierUpdateEntity): number { + const id = (entity as SupplierUpdateEntity).Id; + if (!id) { + return this.create(entity); + } + + const existingEntity = this.findById(id); + if (existingEntity) { + this.update(entity as SupplierUpdateEntity); + 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_SUPPLIER", + entity: entity, + key: { + name: "Id", + column: "SUPPLIER_ID", + value: id + } + }); + } + + public count(options?: SupplierEntityOptions): number { + return this.dao.count(options); + } + + public customDataCount(): number { + const resultSet = query.execute('SELECT COUNT(*) AS COUNT FROM "CODBEX_SUPPLIER"'); + 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: SupplierEntityEvent | SupplierUpdateEntityEvent) { + const triggerExtensions = await extensions.loadExtensionModules("codbex-payments-Suppliers-Supplier", ["trigger"]); + triggerExtensions.forEach(triggerExtension => { + try { + triggerExtension.trigger(data); + } catch (error) { + console.error(error); + } + }); + producer.topic("codbex-payments-Suppliers-Supplier").send(JSON.stringify(data)); + } +} diff --git a/codbex-payments/gen/codbex-payments/roles/default-roles.roles b/codbex-payments/gen/codbex-payments/roles/default-roles.roles new file mode 100644 index 0000000..32960f8 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/roles/default-roles.roles @@ -0,0 +1,2 @@ +[ +] \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/schema/codbex-payments.schema b/codbex-payments/gen/codbex-payments/schema/codbex-payments.schema index edf7a1b..42542ee 100644 --- a/codbex-payments/gen/codbex-payments/schema/codbex-payments.schema +++ b/codbex-payments/gen/codbex-payments/schema/codbex-payments.schema @@ -105,6 +105,11 @@ "nullable": true, "name": "SUPPLIERPAYMENT_ID" }, + { + "type": "INTEGER", + "nullable": true, + "name": "SUPPLIERPAYMENT_SUPPLIER" + }, { "type": "DATE", "name": "SUPPLIERPAYMENT_DATE" @@ -470,6 +475,77 @@ } ] }, + { + "name": "CODBEX_SUPPLIER", + "type": "TABLE", + "columns": [ + { + "type": "INTEGER", + "primaryKey": true, + "identity": true, + "nullable": true, + "name": "SUPPLIER_ID" + }, + { + "type": "VARCHAR", + "length": 100, + "nullable": true, + "name": "SUPPLIER_NAME" + }, + { + "type": "VARCHAR", + "length": 200, + "nullable": true, + "name": "SUPPLIER_ADDRESS" + }, + { + "type": "VARCHAR", + "length": 20, + "nullable": true, + "name": "SUPPLIER_POSTALCODE" + }, + { + "type": "VARCHAR", + "length": 100, + "nullable": true, + "name": "SUPPLIER_EMAIL" + }, + { + "type": "VARCHAR", + "length": 20, + "nullable": true, + "name": "SUPPLIER_PHONE" + }, + { + "type": "VARCHAR", + "length": 20, + "nullable": true, + "name": "SUPPLIER_FAX" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "SUPPLIER_COUNTRY" + }, + { + "type": "INTEGER", + "nullable": true, + "name": "SUPPLIER_CITY" + }, + { + "type": "VARCHAR", + "length": 20, + "nullable": true, + "name": "SUPPLIER_TIN" + }, + { + "type": "VARCHAR", + "length": 36, + "nullable": true, + "name": "SUPPLIER_IBAN" + } + ] + }, { "name": "CustomerPayment_Customer", "type": "foreignKey", @@ -506,6 +582,15 @@ "referencedTable": "CODBEX_PAYMENTMETHOD", "referencedColumns": "PAYMENTMETHOD_ID" }, + { + "name": "SupplierPayment_Supplier", + "type": "foreignKey", + "table": "CODBEX_SUPPLIERPAYMENT", + "constraintName": "SupplierPayment_Supplier", + "columns": "SUPPLIERPAYMENT_SUPPLIER", + "referencedTable": "CODBEX_SUPPLIER", + "referencedColumns": "SUPPLIER_ID" + }, { "name": "SupplierPayment_Currency", "type": "foreignKey", diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.extension index 56f9800..a72a3fa 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.extension @@ -1,5 +1,5 @@ { "module": "codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.js", - "extensionPoint": "dialog-window", + "extensionPoint": "codbex-payments-dialog-window", "description": "codbex-payments - Application Dialog Window" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.js index 2684bc8..04cfa11 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.js @@ -7,7 +7,7 @@ const viewData = { id: "CustomerPayment-filter", label: "CustomerPayment Filter", link: "/services/web/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/index.html", - perspectiveName: "CustomerPayment", + perspectiveName: "CustomerPayment" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.extension index 45fd6d0..684d030 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.js","extensionPoint":"dialog-window","description":"codbex-payments - Application Dialog Window"} \ No newline at end of file +{ + "module": "{{projectName}}/gen/{{genFolderName}}/ui/{{perspectiveName}}/{{name}}/dialog-window/view.js", + "extensionPoint": "dialog-window", + "description": "{{projectName}} - Application Dialog Window" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.extension index 575de51..22e52f3 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.js","extensionPoint":"codbex-payments-view","description":"codbex-payments - Application View - Main Details"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.js", + "extensionPoint": "codbex-payments-view", + "description": "codbex-payments - Application View - Main Details" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.js index fdd6079..7902373 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "center", link: "/services/web/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/index.html", - perspectiveName: "CustomerPayment", + perspectiveName: "CustomerPayment" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile-portal.extension index 048a7b2..b80bba2 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.js","extensionPoint":"portal-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.js", + "extensionPoint": "portal-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.extension index d4d3dce..f8ca47f 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.js","extensionPoint":"codbex-payments-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.js", + "extensionPoint": "codbex-payments-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.js index c5c8c5d..8c90151 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/tile.js @@ -14,6 +14,6 @@ exports.getTile = function () { icon: "/services/web/resources/unicons/file.svg", location: "/services/web/codbex-payments/gen/codbex-payments/ui/CustomerPayment/index.html", order: "100", - groupOrder: "10", + groupOrder: "10" }; -}; +} diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.extension index a02a407..a950f3a 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.js","extensionPoint":"codbex-payments-view","description":"codbex-payments - Application View"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.js", + "extensionPoint": "codbex-payments-view", + "description": "codbex-payments - Application View" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.js index 653438c..c1ffa66 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "left", link: "/services/web/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/index.html", - perspectiveName: "CustomerPayment", + perspectiveName: "CustomerPayment" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective-portal.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective-portal.extension index b93474d..06420ef 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective.js","extensionPoint":"portal","description":"codbex-payments - Perspective - CustomerPayment"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective.js", + "extensionPoint": "portal", + "description": "codbex-payments - Perspective - CustomerPayment" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective.extension b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective.extension index c329954..6572427 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective.extension +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective.js","extensionPoint":"codbex-payments","description":"codbex-payments - Perspective - CustomerPayment"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/CustomerPayment/perspective.js", + "extensionPoint": "codbex-payments", + "description": "codbex-payments - Perspective - CustomerPayment" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.extension index 2760f4f..8f465f7 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.extension @@ -1,5 +1,5 @@ { "module": "codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.js", - "extensionPoint": "dialog-window", + "extensionPoint": "codbex-payments-dialog-window", "description": "codbex-payments - Application Dialog Window" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.js b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.js index 1832fbd..58d39d4 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.js +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/view.js @@ -7,7 +7,7 @@ const viewData = { id: "EmployeePayment-filter", label: "EmployeePayment Filter", link: "/services/web/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-filter/index.html", - perspectiveName: "EmployeePayment", + perspectiveName: "EmployeePayment" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/view.extension index fb51fdc..684d030 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/dialog-window/view.js","extensionPoint":"dialog-window","description":"codbex-payments - Application Dialog Window"} \ No newline at end of file +{ + "module": "{{projectName}}/gen/{{genFolderName}}/ui/{{perspectiveName}}/{{name}}/dialog-window/view.js", + "extensionPoint": "dialog-window", + "description": "{{projectName}} - Application Dialog Window" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.extension index d16b739..64ee369 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.js","extensionPoint":"codbex-payments-view","description":"codbex-payments - Application View - Main Details"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.js", + "extensionPoint": "codbex-payments-view", + "description": "codbex-payments - Application View - Main Details" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.js b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.js index 05f4d9c..f79f155 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.js +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "center", link: "/services/web/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/main-details/index.html", - perspectiveName: "EmployeePayment", + perspectiveName: "EmployeePayment" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile-portal.extension index 2be6120..d5b629d 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.js","extensionPoint":"portal-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.js", + "extensionPoint": "portal-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.extension index 3da94f8..733314c 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.js","extensionPoint":"codbex-payments-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.js", + "extensionPoint": "codbex-payments-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.js b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.js index 358ef81..34b01ff 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.js +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/tile.js @@ -14,6 +14,6 @@ exports.getTile = function () { icon: "/services/web/resources/unicons/file.svg", location: "/services/web/codbex-payments/gen/codbex-payments/ui/EmployeePayment/index.html", order: "100", - groupOrder: "30", + groupOrder: "30" }; -}; +} diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.extension index 26d662a..f4d195c 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.js","extensionPoint":"codbex-payments-view","description":"codbex-payments - Application View"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.js", + "extensionPoint": "codbex-payments-view", + "description": "codbex-payments - Application View" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.js b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.js index e8229bc..7b571a1 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.js +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "left", link: "/services/web/codbex-payments/gen/codbex-payments/ui/EmployeePayment/EmployeePayment/index.html", - perspectiveName: "EmployeePayment", + perspectiveName: "EmployeePayment" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective-portal.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective-portal.extension index 47cb39f..53d4962 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective.js","extensionPoint":"portal","description":"codbex-payments - Perspective - EmployeePayment"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective.js", + "extensionPoint": "portal", + "description": "codbex-payments - Perspective - EmployeePayment" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective.extension b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective.extension index 45b9e9b..37f150c 100644 --- a/codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective.extension +++ b/codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective.js","extensionPoint":"codbex-payments","description":"codbex-payments - Perspective - EmployeePayment"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/EmployeePayment/perspective.js", + "extensionPoint": "codbex-payments", + "description": "codbex-payments - Perspective - EmployeePayment" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.extension index 5898b5e..6f0c149 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.extension @@ -1,5 +1,5 @@ { "module": "codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.js", - "extensionPoint": "dialog-window", + "extensionPoint": "codbex-payments-dialog-window", "description": "codbex-payments - Application Dialog Window" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.js b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.js index 8506cb3..90b2cf1 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/view.js @@ -7,7 +7,7 @@ const viewData = { id: "PaymentAdjustment-filter", label: "PaymentAdjustment Filter", link: "/services/web/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-filter/index.html", - perspectiveName: "PaymentAdjustment", + perspectiveName: "PaymentAdjustment" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/view.extension index 7610c5e..684d030 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/dialog-window/view.js","extensionPoint":"dialog-window","description":"codbex-payments - Application Dialog Window"} \ No newline at end of file +{ + "module": "{{projectName}}/gen/{{genFolderName}}/ui/{{perspectiveName}}/{{name}}/dialog-window/view.js", + "extensionPoint": "dialog-window", + "description": "{{projectName}} - Application Dialog Window" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.extension index 3c5fa9b..37c1371 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.js","extensionPoint":"codbex-payments-view","description":"codbex-payments - Application View - Main Details"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.js", + "extensionPoint": "codbex-payments-view", + "description": "codbex-payments - Application View - Main Details" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.js b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.js index 3ec691e..f675e89 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "center", link: "/services/web/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/main-details/index.html", - perspectiveName: "PaymentAdjustment", + perspectiveName: "PaymentAdjustment" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile-portal.extension index f4aeed6..cf2abb9 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.js","extensionPoint":"portal-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.js", + "extensionPoint": "portal-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.extension index 1de894e..2c61a1a 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.js","extensionPoint":"codbex-payments-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.js", + "extensionPoint": "codbex-payments-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.js b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.js index d5d3889..3c7b141 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/tile.js @@ -14,6 +14,6 @@ exports.getTile = function () { icon: "/services/web/resources/unicons/file.svg", location: "/services/web/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/index.html", order: "100", - groupOrder: "110", + groupOrder: "110" }; -}; +} diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.extension index 542dce1..c3ebe4a 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.js","extensionPoint":"codbex-payments-view","description":"codbex-payments - Application View"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.js", + "extensionPoint": "codbex-payments-view", + "description": "codbex-payments - Application View" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.js b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.js index 12baf34..4ffe621 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "left", link: "/services/web/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/PaymentAdjustment/index.html", - perspectiveName: "PaymentAdjustment", + perspectiveName: "PaymentAdjustment" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective-portal.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective-portal.extension index f9ab95e..39e09dd 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective.js","extensionPoint":"portal","description":"codbex-payments - Perspective - PaymentAdjustment"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective.js", + "extensionPoint": "portal", + "description": "codbex-payments - Perspective - PaymentAdjustment" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective.extension b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective.extension index 780f0e4..8f4f241 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective.js","extensionPoint":"codbex-payments","description":"codbex-payments - Perspective - PaymentAdjustment"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/PaymentAdjustment/perspective.js", + "extensionPoint": "codbex-payments", + "description": "codbex-payments - Perspective - PaymentAdjustment" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.extension index 6264dce..fb731f3 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.extension @@ -1,5 +1,5 @@ { "module": "codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.js", - "extensionPoint": "dialog-window", + "extensionPoint": "codbex-payments-dialog-window", "description": "codbex-payments - Application Dialog Window" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.js b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.js index 96a789a..d260762 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/view.js @@ -7,7 +7,7 @@ const viewData = { id: "PaymentRecord-filter", label: "PaymentRecord Filter", link: "/services/web/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-filter/index.html", - perspectiveName: "PaymentRecord", + perspectiveName: "PaymentRecord" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/view.extension index 1fe713c..684d030 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/dialog-window/view.js","extensionPoint":"dialog-window","description":"codbex-payments - Application Dialog Window"} \ No newline at end of file +{ + "module": "{{projectName}}/gen/{{genFolderName}}/ui/{{perspectiveName}}/{{name}}/dialog-window/view.js", + "extensionPoint": "dialog-window", + "description": "{{projectName}} - Application Dialog Window" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.extension index d66e16d..807e76e 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.js","extensionPoint":"codbex-payments-view","description":"codbex-payments - Application View - Main Details"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.js", + "extensionPoint": "codbex-payments-view", + "description": "codbex-payments - Application View - Main Details" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.js b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.js index 6b774f3..cd7e31c 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "center", link: "/services/web/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/main-details/index.html", - perspectiveName: "PaymentRecord", + perspectiveName: "PaymentRecord" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile-portal.extension index 4dc9b25..41b7ee3 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.js","extensionPoint":"portal-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.js", + "extensionPoint": "portal-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.extension index 28b1617..4f9f9bd 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.js","extensionPoint":"codbex-payments-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.js", + "extensionPoint": "codbex-payments-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.js b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.js index 5a0b072..60ff8e9 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/tile.js @@ -14,6 +14,6 @@ exports.getTile = function () { icon: "/services/web/resources/unicons/file.svg", location: "/services/web/codbex-payments/gen/codbex-payments/ui/PaymentRecord/index.html", order: "100", - groupOrder: "40", + groupOrder: "40" }; -}; +} diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.extension index 4c08780..7fd3d91 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.js","extensionPoint":"codbex-payments-view","description":"codbex-payments - Application View"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.js", + "extensionPoint": "codbex-payments-view", + "description": "codbex-payments - Application View" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.js b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.js index 7c1ae21..173cc55 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.js +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "left", link: "/services/web/codbex-payments/gen/codbex-payments/ui/PaymentRecord/PaymentRecord/index.html", - perspectiveName: "PaymentRecord", + perspectiveName: "PaymentRecord" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective-portal.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective-portal.extension index ab605d8..9600550 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective.js","extensionPoint":"portal","description":"codbex-payments - Perspective - PaymentRecord"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective.js", + "extensionPoint": "portal", + "description": "codbex-payments - Perspective - PaymentRecord" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective.extension b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective.extension index 92bcb82..380bd92 100644 --- a/codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective.extension +++ b/codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective.js","extensionPoint":"codbex-payments","description":"codbex-payments - Perspective - PaymentRecord"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/PaymentRecord/perspective.js", + "extensionPoint": "codbex-payments", + "description": "codbex-payments - Perspective - PaymentRecord" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.extension index 32f624e..85b232a 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.extension @@ -1,5 +1,5 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.js", - "extensionPoint": "dialog-window", + "extensionPoint": "codbex-payments-dialog-window", "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/PaymentRecordDirection/dialog-filter/view.js index 454c31b..ef21d18 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.js @@ -7,7 +7,7 @@ const viewData = { id: "PaymentRecordDirection-filter", label: "PaymentRecordDirection Filter", link: "/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/index.html", - perspectiveName: "Settings", + perspectiveName: "Settings" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.extension index 36ce3b7..c9ef6ac 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.js","extensionPoint":"dialog-window","description":"codbex-payments - Application Dialog Window"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.js", + "extensionPoint": "codbex-payments-dialog-window", + "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/PaymentRecordDirection/dialog-window/view.js index f036b85..b7d9c1e 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.js @@ -7,7 +7,7 @@ const viewData = { id: "PaymentRecordDirection-details", label: "PaymentRecordDirection", link: "/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/index.html", - perspectiveName: "Settings", + perspectiveName: "Settings" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile-portal.extension index d9f65b3..d7547f1 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.js","extensionPoint":"portal-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.js", + "extensionPoint": "portal-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.extension index 8e2f731..10e65fa 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.js","extensionPoint":"codbex-payments-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.js", + "extensionPoint": "codbex-payments-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.js index 247e5c9..1e59ff4 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/tile.js @@ -14,6 +14,6 @@ exports.getTile = function () { icon: "/services/web/resources/unicons/file.svg", location: "/services/web/codbex-payments/gen/codbex-payments/ui/Settings/index.html", order: "100", - groupOrder: "999", + groupOrder: "999" }; -}; +} diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension index 7529c05..1c29383 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.js","extensionPoint":"codbex-payments-view","description":"codbex-payments - Application View"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.js", + "extensionPoint": "codbex-payments-view", + "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/PaymentRecordDirection/view.js index e01e4e0..9e991d1 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "center", link: "/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/index.html", - perspectiveName: "Settings", + perspectiveName: "Settings" }; if (typeof exports !== 'undefined') { 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 index 9669f27..2cca69e 100644 --- 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 @@ -1,5 +1,5 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.js", - "extensionPoint": "dialog-window", + "extensionPoint": "codbex-payments-dialog-window", "description": "codbex-payments - Application Dialog Window" } \ 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 index 39f3ce6..8676639 100644 --- 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 @@ -7,7 +7,7 @@ const viewData = { id: "PaymentStatus-filter", label: "PaymentStatus Filter", link: "/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/index.html", - perspectiveName: "Settings", + perspectiveName: "Settings" }; if (typeof exports !== 'undefined') { 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 index eaf79b6..e3a5244 100644 --- 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 @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.js","extensionPoint":"dialog-window","description":"codbex-payments - Application Dialog Window"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.js", + "extensionPoint": "codbex-payments-dialog-window", + "description": "codbex-payments - Application Dialog Window" +} \ 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 index 6d09b48..b5fce37 100644 --- 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 @@ -7,7 +7,7 @@ const viewData = { id: "PaymentStatus-details", label: "PaymentStatus", link: "/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/index.html", - perspectiveName: "Settings", + perspectiveName: "Settings" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile-portal.extension index 0b877c2..fbeef75 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.js","extensionPoint":"portal-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.js", + "extensionPoint": "portal-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.extension index d84356a..b79cc27 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.js","extensionPoint":"codbex-payments-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.js", + "extensionPoint": "codbex-payments-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.js index 2daec73..5416bff 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/tile.js @@ -14,6 +14,6 @@ exports.getTile = function () { icon: "/services/web/resources/unicons/file.svg", location: "/services/web/codbex-payments/gen/codbex-payments/ui/Settings/index.html", order: "100", - groupOrder: "999", + groupOrder: "999" }; -}; +} diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension index 94237c2..ca87978 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js","extensionPoint":"codbex-payments-view","description":"codbex-payments - Application View"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js", + "extensionPoint": "codbex-payments-view", + "description": "codbex-payments - Application View" +} \ 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 index f584b94..24159c7 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "center", link: "/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/index.html", - perspectiveName: "Settings", + perspectiveName: "Settings" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.extension index 7b420d3..fd788ca 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.extension @@ -1,5 +1,5 @@ { "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.js", - "extensionPoint": "dialog-window", + "extensionPoint": "codbex-payments-dialog-window", "description": "codbex-payments - Application Dialog Window" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.js index 87cdd83..2bbcba8 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/view.js @@ -7,7 +7,7 @@ const viewData = { id: "PaymentType-filter", label: "PaymentType Filter", link: "/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-filter/index.html", - perspectiveName: "Settings", + perspectiveName: "Settings" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.extension index 0f0eef4..c2e9825 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.js","extensionPoint":"dialog-window","description":"codbex-payments - Application Dialog Window"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.js", + "extensionPoint": "codbex-payments-dialog-window", + "description": "codbex-payments - Application Dialog Window" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.js index 4047734..34b059d 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/view.js @@ -7,7 +7,7 @@ const viewData = { id: "PaymentType-details", label: "PaymentType", link: "/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/dialog-window/index.html", - perspectiveName: "Settings", + perspectiveName: "Settings" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile-portal.extension index 4e6710f..a0ce65a 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.js","extensionPoint":"portal-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.js", + "extensionPoint": "portal-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.extension index 19c7e24..2f3f00c 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.js","extensionPoint":"codbex-payments-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.js", + "extensionPoint": "codbex-payments-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.js index cf8ebb6..eb7ca73 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/tile.js @@ -14,6 +14,6 @@ exports.getTile = function () { icon: "/services/web/resources/unicons/file.svg", location: "/services/web/codbex-payments/gen/codbex-payments/ui/Settings/index.html", order: "100", - groupOrder: "999", + groupOrder: "999" }; -}; +} diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.extension index 030ffb2..87ed9c2 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.js","extensionPoint":"codbex-payments-view","description":"codbex-payments - Application View"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.js", + "extensionPoint": "codbex-payments-view", + "description": "codbex-payments - Application View" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.js index f5d0a64..77e3863 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.js +++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "center", link: "/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentType/index.html", - perspectiveName: "Settings", + perspectiveName: "Settings" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/perspective-portal.extension b/codbex-payments/gen/codbex-payments/ui/Settings/perspective-portal.extension index 0064394..53317e7 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/perspective-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/perspective-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/perspective.js","extensionPoint":"portal","description":"codbex-payments - Perspective - Settings"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/perspective.js", + "extensionPoint": "portal", + "description": "codbex-payments - Perspective - Settings" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/perspective.extension b/codbex-payments/gen/codbex-payments/ui/Settings/perspective.extension index f6c650c..d0e31ad 100644 --- a/codbex-payments/gen/codbex-payments/ui/Settings/perspective.extension +++ b/codbex-payments/gen/codbex-payments/ui/Settings/perspective.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/Settings/perspective.js","extensionPoint":"codbex-payments","description":"codbex-payments - Perspective - Settings"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/Settings/perspective.js", + "extensionPoint": "codbex-payments", + "description": "codbex-payments - Perspective - Settings" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/controller.js b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/controller.js index 5ff68eb..8ef7d2c 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/controller.js @@ -122,6 +122,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.postMessage("entitySelected", { entity: entity, selectedMainEntityId: entity.Id, + optionsSupplier: $scope.optionsSupplier, optionsCurrency: $scope.optionsCurrency, optionsCompany: $scope.optionsCompany, }); @@ -133,6 +134,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.postMessage("createEntity", { entity: {}, + optionsSupplier: $scope.optionsSupplier, optionsCurrency: $scope.optionsCurrency, optionsCompany: $scope.optionsCompany, }); @@ -142,6 +144,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) $scope.action = "update"; messageHub.postMessage("updateEntity", { entity: $scope.selectedEntity, + optionsSupplier: $scope.optionsSupplier, optionsCurrency: $scope.optionsCurrency, optionsCompany: $scope.optionsCompany, }); @@ -180,16 +183,27 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) $scope.openFilter = function (entity) { messageHub.showDialogWindow("SupplierPayment-filter", { entity: $scope.filterEntity, + optionsSupplier: $scope.optionsSupplier, optionsCurrency: $scope.optionsCurrency, optionsCompany: $scope.optionsCompany, }); }; //----------------Dropdowns-----------------// + $scope.optionsSupplier = []; $scope.optionsCurrency = []; $scope.optionsCompany = []; + $http.get("/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierService.ts").then(function (response) { + $scope.optionsSupplier = response.data.map(e => { + return { + value: e.Id, + text: e.Name + } + }); + }); + $http.get("/services/ts/codbex-currencies/gen/codbex-currencies/api/Currencies/CurrencyService.ts").then(function (response) { $scope.optionsCurrency = response.data.map(e => { return { @@ -208,6 +222,14 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }); }); + $scope.optionsSupplierValue = function (optionKey) { + for (let i = 0; i < $scope.optionsSupplier.length; i++) { + if ($scope.optionsSupplier[i].value === optionKey) { + return $scope.optionsSupplier[i].text; + } + } + return null; + }; $scope.optionsCurrencyValue = function (optionKey) { for (let i = 0; i < $scope.optionsCurrency.length; i++) { if ($scope.optionsCurrency[i].value === optionKey) { diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/controller.js b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/controller.js index 7a28697..7e7f24f 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/controller.js @@ -26,6 +26,7 @@ angular.module('page', ["ideUI", "ideView"]) $scope.entity = params.entity ?? {}; $scope.selectedMainEntityKey = params.selectedMainEntityKey; $scope.selectedMainEntityId = params.selectedMainEntityId; + $scope.optionsSupplier = params.optionsSupplier; $scope.optionsCurrency = params.optionsCurrency; $scope.optionsCompany = params.optionsCompany; } @@ -53,6 +54,9 @@ angular.module('page', ["ideUI", "ideView"]) if (entity.Id !== undefined) { filter.$filter.equals.Id = entity.Id; } + if (entity.Supplier !== undefined) { + filter.$filter.equals.Supplier = entity.Supplier; + } if (entity.DateFrom) { filter.$filter.greaterThanOrEqual.Date = entity.DateFrom; } diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/index.html b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/index.html index f8a2055..12006b0 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/index.html +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/index.html @@ -27,6 +27,20 @@ + +
+ Supplier +
+
+ + +
+
From Date diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.extension index a518d80..f023ea1 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.extension @@ -1,5 +1,5 @@ { "module": "codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.js", - "extensionPoint": "dialog-window", + "extensionPoint": "codbex-payments-dialog-window", "description": "codbex-payments - Application Dialog Window" } \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.js b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.js index 867b9f6..18b5b7e 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.js +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/view.js @@ -7,7 +7,7 @@ const viewData = { id: "SupplierPayment-filter", label: "SupplierPayment Filter", link: "/services/web/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-filter/index.html", - perspectiveName: "SupplierPayment", + perspectiveName: "SupplierPayment" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/controller.js b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/controller.js index 6605f25..25231d7 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/controller.js @@ -30,6 +30,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) $scope.entity = params.entity; $scope.selectedMainEntityKey = params.selectedMainEntityKey; $scope.selectedMainEntityId = params.selectedMainEntityId; + $scope.optionsSupplier = params.optionsSupplier; $scope.optionsCurrency = params.optionsCurrency; $scope.optionsCompany = params.optionsCompany; } @@ -63,6 +64,18 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) }); }; + $scope.serviceSupplier = "/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierService.ts"; + + $scope.optionsSupplier = []; + + $http.get("/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierService.ts").then(function (response) { + $scope.optionsSupplier = response.data.map(e => { + return { + value: e.Id, + text: e.Name + } + }); + }); $scope.serviceCurrency = "/services/ts/codbex-currencies/gen/codbex-currencies/api/Currencies/CurrencyService.ts"; $scope.optionsCurrency = []; diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/index.html b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/index.html index f58150c..2086af1 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/index.html +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/index.html @@ -27,6 +27,23 @@ + +
+ Supplier +
+
+ + + +
+
Date diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/view.extension index 0c1f297..684d030 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/dialog-window/view.js","extensionPoint":"dialog-window","description":"codbex-payments - Application Dialog Window"} \ No newline at end of file +{ + "module": "{{projectName}}/gen/{{genFolderName}}/ui/{{perspectiveName}}/{{name}}/dialog-window/view.js", + "extensionPoint": "dialog-window", + "description": "{{projectName}} - Application Dialog Window" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/index.html b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/index.html index edc60e5..eaba1ea 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/index.html +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/index.html @@ -48,8 +48,9 @@ navigated="next.Id === selectedEntity.Id" ng-click="action == 'select' ? selectEntity(next) : ''"> + item-title="{{optionsSupplierValue(next.Supplier)}}"> + {{next.Date | date: "dd/MMM/yyyy"}} | {{next.Valor | date: "dd/MMM/yyyy"}} | {{next.CompanyIBAN}} | {{next.CounterpartyIBAN}} | diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/controller.js b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/controller.js index 76eb52a..93d7fab 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/controller.js @@ -40,6 +40,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.onDidReceiveMessage("clearDetails", function (msg) { $scope.$apply(function () { $scope.entity = {}; + $scope.optionsSupplier = []; $scope.optionsCurrency = []; $scope.optionsCompany = []; $scope.action = 'select'; @@ -55,6 +56,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) msg.data.entity.Valor = new Date(msg.data.entity.Valor); } $scope.entity = msg.data.entity; + $scope.optionsSupplier = msg.data.optionsSupplier; $scope.optionsCurrency = msg.data.optionsCurrency; $scope.optionsCompany = msg.data.optionsCompany; $scope.action = 'select'; @@ -64,6 +66,7 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) messageHub.onDidReceiveMessage("createEntity", function (msg) { $scope.$apply(function () { $scope.entity = {}; + $scope.optionsSupplier = msg.data.optionsSupplier; $scope.optionsCurrency = msg.data.optionsCurrency; $scope.optionsCompany = msg.data.optionsCompany; $scope.action = 'create'; @@ -79,12 +82,14 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) msg.data.entity.Valor = new Date(msg.data.entity.Valor); } $scope.entity = msg.data.entity; + $scope.optionsSupplier = msg.data.optionsSupplier; $scope.optionsCurrency = msg.data.optionsCurrency; $scope.optionsCompany = msg.data.optionsCompany; $scope.action = 'update'; }); }); + $scope.serviceSupplier = "/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierService.ts"; $scope.serviceCurrency = "/services/ts/codbex-currencies/gen/codbex-currencies/api/Currencies/CurrencyService.ts"; $scope.serviceCompany = "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts"; @@ -120,6 +125,12 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) //-----------------Dialogs-------------------// + $scope.createSupplier = function () { + messageHub.showDialogWindow("Supplier-details", { + action: "create", + entity: {}, + }, null, false); + }; $scope.createCurrency = function () { messageHub.showDialogWindow("Currency-details", { action: "create", @@ -139,6 +150,17 @@ angular.module('page', ["ideUI", "ideView", "entityApi"]) //----------------Dropdowns-----------------// + $scope.refreshSupplier = function () { + $scope.optionsSupplier = []; + $http.get("/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierService.ts").then(function (response) { + $scope.optionsSupplier = response.data.map(e => { + return { + value: e.Id, + text: e.Name + } + }); + }); + }; $scope.refreshCurrency = function () { $scope.optionsCurrency = []; $http.get("/services/ts/codbex-currencies/gen/codbex-currencies/api/Currencies/CurrencyService.ts").then(function (response) { diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/index.html b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/index.html index 27d5e06..0021511 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/index.html +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/index.html @@ -19,6 +19,31 @@ + +
+ Supplier +
+
+ + +
+
+ + + +
+
Date diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.extension index 68643e5..81c7683 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.js","extensionPoint":"codbex-payments-view","description":"codbex-payments - Application View - Main Details"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.js", + "extensionPoint": "codbex-payments-view", + "description": "codbex-payments - Application View - Main Details" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.js b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.js index 2d404ac..14e85cc 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.js +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "center", link: "/services/web/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/main-details/index.html", - perspectiveName: "SupplierPayment", + perspectiveName: "SupplierPayment" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile-portal.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile-portal.extension index d588651..98ad78c 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.js","extensionPoint":"portal-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.js", + "extensionPoint": "portal-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.extension index 7c2001b..eacea7b 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.js","extensionPoint":"codbex-payments-tile","description":"codbex-payments - Application Tile"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.js", + "extensionPoint": "codbex-payments-tile", + "description": "codbex-payments - Application Tile" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.js b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.js index 9579cea..61f2226 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.js +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/tile.js @@ -14,6 +14,6 @@ exports.getTile = function () { icon: "/services/web/resources/unicons/file.svg", location: "/services/web/codbex-payments/gen/codbex-payments/ui/SupplierPayment/index.html", order: "100", - groupOrder: "20", + groupOrder: "20" }; -}; +} diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.extension index 0073bbc..00010a8 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.js","extensionPoint":"codbex-payments-view","description":"codbex-payments - Application View"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.js", + "extensionPoint": "codbex-payments-view", + "description": "codbex-payments - Application View" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.js b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.js index 0f32a2b..b9df67d 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.js +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/view.js @@ -9,7 +9,7 @@ const viewData = { factory: "frame", region: "left", link: "/services/web/codbex-payments/gen/codbex-payments/ui/SupplierPayment/SupplierPayment/index.html", - perspectiveName: "SupplierPayment", + perspectiveName: "SupplierPayment" }; if (typeof exports !== 'undefined') { diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective-portal.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective-portal.extension index 1295a77..8fe6cad 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective-portal.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective-portal.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective.js","extensionPoint":"portal","description":"codbex-payments - Perspective - SupplierPayment"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective.js", + "extensionPoint": "portal", + "description": "codbex-payments - Perspective - SupplierPayment" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective.extension b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective.extension index 31aa138..9f76498 100644 --- a/codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective.extension +++ b/codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective.extension @@ -1 +1,5 @@ -{"module":"codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective.js","extensionPoint":"codbex-payments","description":"codbex-payments - Perspective - SupplierPayment"} \ No newline at end of file +{ + "module": "codbex-payments/gen/codbex-payments/ui/SupplierPayment/perspective.js", + "extensionPoint": "codbex-payments", + "description": "codbex-payments - Perspective - SupplierPayment" +} \ No newline at end of file