Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions codbex-payments/codbex-payments.edm

Large diffs are not rendered by default.

84 changes: 42 additions & 42 deletions codbex-payments/codbex-payments.gen
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,46 @@
"brandUrl": "https://www.codbex.com/",
"title": "Payments Management Module",
"description": "Managing Payments Data",
"fileName": "codbex-payments",
"genFolderName": "codbex-payments",
"dataSource": "DefaultDB",
"roles": [
{
"entityName": "CustomerPayment",
"roleRead": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly",
"roleWrite": "codbex-payments.CustomerPayment.CustomerPaymentFullAccess"
},
{
"entityName": "SupplierPayment",
"roleRead": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly",
"roleWrite": "codbex-payments.SupplierPayment.SupplierPaymentFullAccess"
},
{
"entityName": "EmployeePayment",
"roleRead": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly",
"roleWrite": "codbex-payments.EmployeePayment.EmployeePaymentFullAccess"
},
{
"entityName": "PaymentRecord",
"roleRead": "codbex-payments.PaymentRecord.PaymentRecordReadOnly",
"roleWrite": "codbex-payments.PaymentRecord.PaymentRecordFullAccess"
},
{
"entityName": "PaymentType",
"roleRead": "codbex-payments.Settings.PaymentTypeReadOnly",
"roleWrite": "codbex-payments.Settings.PaymentTypeFullAccess"
},
{
"entityName": "PaymentAdjustment",
"roleRead": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly",
"roleWrite": "codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess"
}
],
"tprefix": "codbex-payments-model",
"projectName": "codbex-payments",
"workspaceName": "workspace",
"filePath": "codbex-payments.model",
"templateId": "template-application-angular-v2/template/template.js",
"fileName": "codbex-payments",
"genFolderName": "codbex-payments",
"dataSource": "DefaultDB",
"perspectives": {
"CustomerPayment": {
"views": [
Expand Down Expand Up @@ -231,39 +264,6 @@
"role": ""
}
},
"roles": [
{
"entityName": "CustomerPayment",
"roleRead": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly",
"roleWrite": "codbex-payments.CustomerPayment.CustomerPaymentFullAccess"
},
{
"entityName": "SupplierPayment",
"roleRead": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly",
"roleWrite": "codbex-payments.SupplierPayment.SupplierPaymentFullAccess"
},
{
"entityName": "EmployeePayment",
"roleRead": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly",
"roleWrite": "codbex-payments.EmployeePayment.EmployeePaymentFullAccess"
},
{
"entityName": "PaymentRecord",
"roleRead": "codbex-payments.PaymentRecord.PaymentRecordReadOnly",
"roleWrite": "codbex-payments.PaymentRecord.PaymentRecordFullAccess"
},
{
"entityName": "PaymentType",
"roleRead": "codbex-payments.Settings.PaymentTypeReadOnly",
"roleWrite": "codbex-payments.Settings.PaymentTypeFullAccess"
},
{
"entityName": "PaymentAdjustment",
"roleRead": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly",
"roleWrite": "codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess"
}
],
"tprefix": "codbex-payments-model",
"models": [
{
"properties": [
Expand Down Expand Up @@ -622,7 +622,7 @@
},
{
"auditType": "NONE",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(18)",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generateByType('Customer Payment')",
"dataLength": "20",
"dataName": "CUSTOMERPAYMENT_NAME",
"dataNullable": true,
Expand Down Expand Up @@ -1131,7 +1131,7 @@
},
{
"auditType": "NONE",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(18)",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generateByType('Customer Payment')",
"dataLength": "20",
"dataName": "CUSTOMERPAYMENT_NAME",
"dataNullable": true,
Expand Down Expand Up @@ -1553,7 +1553,7 @@
},
{
"auditType": "NONE",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(19)",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generateByType('Supplier Payment')",
"dataLength": "20",
"dataName": "SUPPLIERPAYMENT_NAME",
"dataNullable": true,
Expand Down Expand Up @@ -2060,7 +2060,7 @@
},
{
"auditType": "NONE",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(19)",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generateByType('Supplier Payment')",
"dataLength": "20",
"dataName": "SUPPLIERPAYMENT_NAME",
"dataNullable": true,
Expand Down Expand Up @@ -2539,7 +2539,7 @@
},
{
"auditType": "NONE",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(20)",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generateByType('Employee Payment')",
"dataLength": "20",
"dataName": "EMPLOYEEPAYMENT_NAME",
"dataNullable": true,
Expand Down Expand Up @@ -3046,7 +3046,7 @@
},
{
"auditType": "NONE",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(20)",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generateByType('Employee Payment')",
"dataLength": "20",
"dataName": "EMPLOYEEPAYMENT_NAME",
"dataNullable": true,
Expand Down
6 changes: 3 additions & 3 deletions codbex-payments/codbex-payments.model
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
},
{
"auditType": "NONE",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(18)",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generateByType('Customer Payment')",
"dataLength": "20",
"dataName": "CUSTOMERPAYMENT_NAME",
"dataNullable": "true",
Expand Down Expand Up @@ -495,7 +495,7 @@
},
{
"auditType": "NONE",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(19)",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generateByType('Supplier Payment')",
"dataLength": "20",
"dataName": "SUPPLIERPAYMENT_NAME",
"dataNullable": "true",
Expand Down Expand Up @@ -788,7 +788,7 @@
},
{
"auditType": "NONE",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generate(20)",
"calculatedPropertyExpressionCreate": "new NumberGeneratorService().generateByType('Employee Payment')",
"dataLength": "20",
"dataName": "EMPLOYEEPAYMENT_NAME",
"dataNullable": "true",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ export class CustomerPaymentRepository extends Repository<CustomerPaymentEntity>
}

public override create(entity: CustomerPaymentEntity): string | number {
entity.Name = new NumberGeneratorService().generate(18);
entity.Name = new NumberGeneratorService().generateByType('Customer Payment');
entity.UUID = require("sdk/utils/uuid").random();
return super.create(entity);
}

public override upsert(entity: CustomerPaymentEntity): string | number {
entity.Name = new NumberGeneratorService().generate(18);
entity.Name = new NumberGeneratorService().generateByType('Customer Payment');
entity.UUID = require("sdk/utils/uuid").random();
return super.upsert(entity);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ export class EmployeePaymentRepository extends Repository<EmployeePaymentEntity>
}

public override create(entity: EmployeePaymentEntity): string | number {
entity.Name = new NumberGeneratorService().generate(20);
entity.Name = new NumberGeneratorService().generateByType('Employee Payment');
entity.UUID = require("sdk/utils/uuid").random();
return super.create(entity);
}

public override upsert(entity: EmployeePaymentEntity): string | number {
entity.Name = new NumberGeneratorService().generate(20);
entity.Name = new NumberGeneratorService().generateByType('Employee Payment');
entity.UUID = require("sdk/utils/uuid").random();
return super.upsert(entity);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ export class SupplierPaymentRepository extends Repository<SupplierPaymentEntity>
}

public override create(entity: SupplierPaymentEntity): string | number {
entity.Name = new NumberGeneratorService().generate(19);
entity.Name = new NumberGeneratorService().generateByType('Supplier Payment');
entity.UUID = require("sdk/utils/uuid").random();
return super.create(entity);
}

public override upsert(entity: SupplierPaymentEntity): string | number {
entity.Name = new NumberGeneratorService().generate(19);
entity.Name = new NumberGeneratorService().generateByType('Supplier Payment');
entity.UUID = require("sdk/utils/uuid").random();
return super.upsert(entity);
}
Expand Down
11 changes: 5 additions & 6 deletions codbex-payments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"scripts": {
"build": "tsc"
},
"dependencies": {
"@codbex/codbex-partners": "0.9.2",
"@codbex/codbex-employees": "0.6.0",
"@codbex/codbex-currencies": "1.0.0"
"@codbex/codbex-partners": "^1.0.0",
"@codbex/codbex-employees": "^1.0.0",
"@codbex/codbex-currencies": "^1.2.0",
"@codbex/codbex-number-generator": "^1.1.0",
"@codbex/codbex-number-generator-data": "^1.0.0"
}
}
49 changes: 1 addition & 48 deletions codbex-payments/project.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,3 @@
{
"guid": "codbex-payments",
"repository": {
"type": "git",
"branch": "main",
"url": "https://github.com/codbex/codbex-payments.git"
},
"dependencies": [
{
"guid": "codbex-partners",
"type": "git",
"url": "https://github.com/codbex/codbex-partners.git",
"branch": "main"
},
{
"guid": "codbex-employees",
"type": "git",
"url": "https://github.com/codbex/codbex-employees.git",
"branch": "main"
},
{
"guid": "codbex-currencies",
"type": "git",
"url": "https://github.com/codbex/codbex-currencies.git",
"branch": "main"
},
{
"guid": "codbex-navigation-groups",
"type": "git",
"url": "https://github.com/codbex/codbex-navigation-groups",
"branch": "main"
}
],
"actions": [
{
"name": "Build TypeScript",
"commands": [
{
"os": "unix",
"command": "tsc"
},
{
"os": "windows",
"command": "cmd /c tsc"
}
],
"registry": "true"
}
]
"guid": "codbex-payments"
}
23 changes: 0 additions & 23 deletions codbex-payments/tsconfig.json

This file was deleted.

Loading