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
78 changes: 39 additions & 39 deletions codbex-payments/codbex-payments.gen
Original file line number Diff line number Diff line change
@@ -1,49 +1,16 @@
{
"tablePrefix": "CODBEX_",
"brand": "codbex",
"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",
"brandUrl": "https://www.codbex.com",
"title": "Payments Management Application",
"description": "Managing payments data",
"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 @@ -264,6 +231,39 @@
"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
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CustomerPaymentController {
const options: Options = {
limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20,
offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0,
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};

return this.repository.findAll(options);
Expand Down Expand Up @@ -98,7 +98,7 @@ class CustomerPaymentController {
this.checkPermissions('read');
const id = parseInt(ctx.pathParameters.id);
const options: Options = {
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};
const entity = this.repository.findById(id, options);
if (entity) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class EmployeePaymentController {
const options: Options = {
limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20,
offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0,
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};

return this.repository.findAll(options);
Expand Down Expand Up @@ -98,7 +98,7 @@ class EmployeePaymentController {
this.checkPermissions('read');
const id = parseInt(ctx.pathParameters.id);
const options: Options = {
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};
const entity = this.repository.findById(id, options);
if (entity) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PaymentAdjustmentController {
const options: Options = {
limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20,
offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0,
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};

return this.repository.findAll(options);
Expand Down Expand Up @@ -96,7 +96,7 @@ class PaymentAdjustmentController {
this.checkPermissions('read');
const id = parseInt(ctx.pathParameters.id);
const options: Options = {
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};
const entity = this.repository.findById(id, options);
if (entity) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PaymentRecordController {
const options: Options = {
limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20,
offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0,
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};

return this.repository.findAll(options);
Expand Down Expand Up @@ -96,7 +96,7 @@ class PaymentRecordController {
this.checkPermissions('read');
const id = parseInt(ctx.pathParameters.id);
const options: Options = {
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};
const entity = this.repository.findById(id, options);
if (entity) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class PaymentDirectionController {
const options: Options = {
limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20,
offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0,
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};

return this.repository.findAll(options);
Expand Down Expand Up @@ -88,7 +88,7 @@ class PaymentDirectionController {
try {
const id = parseInt(ctx.pathParameters.id);
const options: Options = {
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};
const entity = this.repository.findById(id, options);
if (entity) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PaymentTypeController {
const options: Options = {
limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20,
offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0,
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};

return this.repository.findAll(options);
Expand Down Expand Up @@ -96,7 +96,7 @@ class PaymentTypeController {
this.checkPermissions('read');
const id = parseInt(ctx.pathParameters.id);
const options: Options = {
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};
const entity = this.repository.findById(id, options);
if (entity) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SupplierPaymentController {
const options: Options = {
limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20,
offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0,
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};

return this.repository.findAll(options);
Expand Down Expand Up @@ -98,7 +98,7 @@ class SupplierPaymentController {
this.checkPermissions('read');
const id = parseInt(ctx.pathParameters.id);
const options: Options = {
language: request.getLocale().split("_")[0]
language: request.getLocale()?.split("_")[0]
};
const entity = this.repository.findById(id, options);
if (entity) {
Expand Down
Loading
Loading