{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_UUID' | t }}
diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/controller.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/controller.js
index 0a1b27b..1423990 100644
--- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/controller.js
+++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/controller.js
@@ -56,6 +56,14 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
const condition = { propertyName: 'Currency', operator: 'EQ', value: entity.Currency };
filter.$filter.conditions.push(condition);
}
+ if (entity.PaymentDirection !== undefined) {
+ const condition = { propertyName: 'PaymentDirection', operator: 'EQ', value: entity.PaymentDirection };
+ filter.$filter.conditions.push(condition);
+ }
+ if (entity.PaymentType !== undefined) {
+ const condition = { propertyName: 'PaymentType', operator: 'EQ', value: entity.PaymentType };
+ filter.$filter.conditions.push(condition);
+ }
if (entity.Reason) {
const condition = { propertyName: 'Reason', operator: 'LIKE', value: `%${entity.Reason}%` };
filter.$filter.conditions.push(condition);
@@ -68,18 +76,6 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
const condition = { propertyName: 'Company', operator: 'EQ', value: entity.Company };
filter.$filter.conditions.push(condition);
}
- if (entity.PaymentRecordDirection !== undefined) {
- const condition = { propertyName: 'PaymentRecordDirection', operator: 'EQ', value: entity.PaymentRecordDirection };
- filter.$filter.conditions.push(condition);
- }
- if (entity.PaymentStatus !== undefined) {
- const condition = { propertyName: 'PaymentStatus', operator: 'EQ', value: entity.PaymentStatus };
- filter.$filter.conditions.push(condition);
- }
- if (entity.PaymentType !== undefined) {
- const condition = { propertyName: 'PaymentType', operator: 'EQ', value: entity.PaymentType };
- filter.$filter.conditions.push(condition);
- }
if (entity.UUID) {
const condition = { propertyName: 'UUID', operator: 'LIKE', value: `%${entity.UUID}%` };
filter.$filter.conditions.push(condition);
@@ -96,10 +92,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
$scope.filter = filter;
$scope.optionsCurrency = params.optionsCurrency;
- $scope.optionsCompany = params.optionsCompany;
- $scope.optionsPaymentRecordDirection = params.optionsPaymentRecordDirection;
- $scope.optionsPaymentStatus = params.optionsPaymentStatus;
+ $scope.optionsPaymentDirection = params.optionsPaymentDirection;
$scope.optionsPaymentType = params.optionsPaymentType;
+ $scope.optionsCompany = params.optionsCompany;
}
$scope.loadPage = (filter) => {
@@ -146,26 +141,10 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
}
return null;
};
- $scope.optionsCompanyValue = (optionKey) => {
- for (let i = 0; i < $scope.optionsCompany.length; i++) {
- if ($scope.optionsCompany[i].value === optionKey) {
- return $scope.optionsCompany[i].text;
- }
- }
- return null;
- };
- $scope.optionsPaymentRecordDirectionValue = (optionKey) => {
- for (let i = 0; i < $scope.optionsPaymentRecordDirection.length; i++) {
- if ($scope.optionsPaymentRecordDirection[i].value === optionKey) {
- return $scope.optionsPaymentRecordDirection[i].text;
- }
- }
- return null;
- };
- $scope.optionsPaymentStatusValue = (optionKey) => {
- for (let i = 0; i < $scope.optionsPaymentStatus.length; i++) {
- if ($scope.optionsPaymentStatus[i].value === optionKey) {
- return $scope.optionsPaymentStatus[i].text;
+ $scope.optionsPaymentDirectionValue = (optionKey) => {
+ for (let i = 0; i < $scope.optionsPaymentDirection.length; i++) {
+ if ($scope.optionsPaymentDirection[i].value === optionKey) {
+ return $scope.optionsPaymentDirection[i].text;
}
}
return null;
@@ -178,6 +157,14 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
}
return null;
};
+ $scope.optionsCompanyValue = (optionKey) => {
+ for (let i = 0; i < $scope.optionsCompany.length; i++) {
+ if ($scope.optionsCompany[i].value === optionKey) {
+ return $scope.optionsCompany[i].text;
+ }
+ }
+ return null;
+ };
window.onafterprint = () => {
Dialogs.closeWindow({ path: viewData.path });
}
diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/index.html b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/index.html
index 9b01eeb..5efdaef 100644
--- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/index.html
+++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-print/index.html
@@ -27,12 +27,11 @@
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_COUNTERPARTYNAME' | t:'CounterpartyName' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_AMOUNT' | t:'Amount' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_CURRENCY' | t:'Currency' }} |
+
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTDIRECTION' | t:'PaymentDirection' }} |
+
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t:'PaymentType' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REASON' | t:'Reason' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_DESCRIPTION' | t:'Description' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_COMPANY' | t:'Company' }} |
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTRECORDDIRECTION' | t:'PaymentRecordDirection' }} |
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTSTATUS' | t:'PaymentStatus' }} |
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t:'PaymentType' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_UUID' | t:'UUID' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REFERENCE' | t:'Reference' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_DELETED' | t:'Deleted' }} |
@@ -54,12 +53,11 @@
{{next.CounterpartyName}} |
{{next.Amount}} |
{{optionsCurrencyValue(next.Currency)}} |
+
{{optionsPaymentDirectionValue(next.PaymentDirection)}} |
+
{{optionsPaymentTypeValue(next.PaymentType)}} |
{{next.Reason}} |
{{next.Description}} |
{{optionsCompanyValue(next.Company)}} |
-
{{optionsPaymentRecordDirectionValue(next.PaymentRecordDirection)}} |
-
{{optionsPaymentStatusValue(next.PaymentStatus)}} |
-
{{optionsPaymentTypeValue(next.PaymentType)}} |
{{next.UUID}} |
{{next.Reference}} |
diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/controller.js b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/controller.js
index fc38a55..b09f472 100644
--- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/controller.js
+++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/controller.js
@@ -13,9 +13,8 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle
}
$scope.entity = params.entity;
$scope.optionsCurrency = params.optionsCurrency;
- $scope.optionsCompany = params.optionsCompany;
- $scope.optionsPaymentRecordDirection = params.optionsPaymentRecordDirection;
- $scope.optionsPaymentStatus = params.optionsPaymentStatus;
+ $scope.optionsPaymentDirection = params.optionsPaymentDirection;
$scope.optionsPaymentType = params.optionsPaymentType;
+ $scope.optionsCompany = params.optionsCompany;
}
});
\ No newline at end of file
diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/index.html b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/index.html
index 6a2f7c0..b62ad59 100644
--- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/index.html
+++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/dialog-window/index.html
@@ -119,6 +119,38 @@
+
+
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTDIRECTION' | t }}
+
+
+
+
+
+
+
+
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }}
+
+
+
+
+
+
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REASON' | t }}
@@ -165,54 +197,6 @@
-
-
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTRECORDDIRECTION' | t }}
-
-
-
-
-
-
-
-
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTSTATUS' | t }}
-
-
-
-
-
-
-
-
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t }}
-
-
-
-
-
-
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_UUID' | t }}
diff --git a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/index.html b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/index.html
index 2f4406c..528be82 100644
--- a/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/index.html
+++ b/codbex-payments/gen/codbex-payments/ui/Reports/PaymentRecord/index.html
@@ -31,12 +31,11 @@
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_COUNTERPARTYNAME' | t:'CounterpartyName' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_AMOUNT' | t:'Amount' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_CURRENCY' | t:'Currency' }} |
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTDIRECTION' | t:'PaymentDirection' }} |
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t:'PaymentType' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REASON' | t:'Reason' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_DESCRIPTION' | t:'Description' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_COMPANY' | t:'Company' }} |
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTRECORDDIRECTION' | t:'PaymentRecordDirection' }} |
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTSTATUS' | t:'PaymentStatus' }} |
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_PAYMENTTYPE' | t:'PaymentType' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_UUID' | t:'UUID' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_REFERENCE' | t:'Reference' }} |
{{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORD_DELETED' | t:'Deleted' }} |
@@ -62,19 +61,16 @@
{{optionsCurrencyValue(next.Currency)}}
|
- {{next.Reason}} |
- {{next.Description}} |
-
- {{optionsCompanyValue(next.Company)}}
- |
- {{optionsPaymentRecordDirectionValue(next.PaymentRecordDirection)}}
+ {{optionsPaymentDirectionValue(next.PaymentDirection)}}
|
- {{optionsPaymentStatusValue(next.PaymentStatus)}}
+ {{optionsPaymentTypeValue(next.PaymentType)}}
|
+ {{next.Reason}} |
+ {{next.Description}} |
- {{optionsPaymentTypeValue(next.PaymentType)}}
+ {{optionsCompanyValue(next.Company)}}
|
{{next.UUID}} |
{{next.Reference}} |
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/controller.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/controller.js
similarity index 83%
rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/controller.js
rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/controller.js
index a5b5a88..82ee113 100644
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/controller.js
+++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/controller.js
@@ -1,21 +1,21 @@
angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntityService'])
.config(['EntityServiceProvider', (EntityServiceProvider) => {
- EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts';
+ EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts';
}])
.controller('PageController', ($scope, EntityService, Extensions, LocaleService, ButtonStates) => {
const Dialogs = new DialogHub();
let translated = {
yes: 'Yes',
no: 'No',
- deleteConfirm: 'Are you sure you want to delete PaymentStatus? This action cannot be undone.',
- deleteTitle: 'Delete PaymentStatus?'
+ deleteConfirm: 'Are you sure you want to delete PaymentDirection? This action cannot be undone.',
+ deleteTitle: 'Delete PaymentDirection?'
};
LocaleService.onInit(() => {
translated.yes = LocaleService.t('codbex-payments:codbex-payments-model.defaults.yes');
translated.no = LocaleService.t('codbex-payments:codbex-payments-model.defaults.no');
- translated.deleteTitle = LocaleService.t('codbex-payments:codbex-payments-model.defaults.deleteTitle', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' });
- translated.deleteConfirm = LocaleService.t('codbex-payments:codbex-payments-model.messages.deleteConfirm', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' });
+ translated.deleteTitle = LocaleService.t('codbex-payments:codbex-payments-model.defaults.deleteTitle', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' });
+ translated.deleteConfirm = LocaleService.t('codbex-payments:codbex-payments-model.messages.deleteConfirm', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' });
});
$scope.dataPage = 1;
@@ -24,8 +24,8 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
//-----------------Custom Actions-------------------//
Extensions.getWindows(['codbex-payments-custom-action']).then((response) => {
- $scope.pageActions = response.data.filter(e => e.perspective === 'Settings' && e.view === 'PaymentStatus' && (e.type === 'page' || e.type === undefined));
- $scope.entityActions = response.data.filter(e => e.perspective === 'Settings' && e.view === 'PaymentStatus' && e.type === 'entity');
+ $scope.pageActions = response.data.filter(e => e.perspective === 'Settings' && e.view === 'PaymentDirection' && (e.type === 'page' || e.type === undefined));
+ $scope.entityActions = response.data.filter(e => e.perspective === 'Settings' && e.view === 'PaymentDirection' && e.type === 'entity');
});
$scope.triggerPageAction = (action) => {
@@ -60,13 +60,13 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
resetPagination();
//-----------------Events-------------------//
- Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentStatus.entityCreated', handler: () => {
+ Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentDirection.entityCreated', handler: () => {
$scope.loadPage($scope.dataPage, $scope.filter);
}});
- Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentStatus.entityUpdated', handler: () => {
+ Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentDirection.entityUpdated', handler: () => {
$scope.loadPage($scope.dataPage, $scope.filter);
}});
- Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentStatus.entitySearch', handler: (data) => {
+ Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentDirection.entitySearch', handler: (data) => {
resetPagination();
$scope.filter = data.filter;
$scope.filterEntity = data.entity;
@@ -101,8 +101,8 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
}, (error) => {
const message = error.data ? error.data.message : '';
Dialogs.showAlert({
- title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTSTATUS'),
- message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLF', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)', message: message }),
+ title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION'),
+ message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLF', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)', message: message }),
type: AlertTypes.Error
});
console.error('EntityService:', error);
@@ -110,8 +110,8 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
}, (error) => {
const message = error.data ? error.data.message : '';
Dialogs.showAlert({
- title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTSTATUS'),
- message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCount', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)', message: message }),
+ title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION'),
+ message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCount', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)', message: message }),
type: AlertTypes.Error
});
console.error('EntityService:', error);
@@ -126,7 +126,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
$scope.openDetails = (entity) => {
$scope.selectedEntity = entity;
Dialogs.showWindow({
- id: 'PaymentStatus-details',
+ id: 'PaymentDirection-details',
params: {
action: 'select',
entity: entity,
@@ -137,7 +137,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
$scope.openFilter = () => {
Dialogs.showWindow({
- id: 'PaymentStatus-filter',
+ id: 'PaymentDirection-filter',
params: {
entity: $scope.filterEntity,
},
@@ -148,7 +148,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
$scope.createEntity = () => {
$scope.selectedEntity = null;
Dialogs.showWindow({
- id: 'PaymentStatus-details',
+ id: 'PaymentDirection-details',
params: {
action: 'create',
entity: {},
@@ -159,7 +159,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
$scope.updateEntity = (entity) => {
Dialogs.showWindow({
- id: 'PaymentStatus-details',
+ id: 'PaymentDirection-details',
params: {
action: 'update',
entity: entity,
@@ -185,12 +185,12 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
if (buttonId === 'delete-btn-yes') {
EntityService.delete(id).then((response) => {
$scope.loadPage($scope.dataPage, $scope.filter);
- Dialogs.triggerEvent('codbex-payments.Settings.PaymentStatus.clearDetails');
+ Dialogs.triggerEvent('codbex-payments.Settings.PaymentDirection.clearDetails');
}, (error) => {
const message = error.data ? error.data.message : '';
Dialogs.showAlert({
- title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTSTATUS'),
- message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToDelete', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)', message: message }),
+ title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION'),
+ message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToDelete', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)', message: message }),
type: AlertTypes.Error
});
console.error('EntityService:', error);
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/controller.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/controller.js
similarity index 94%
rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/controller.js
rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/controller.js
index ad6c3e8..b20b3dd 100644
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/controller.js
+++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/controller.js
@@ -35,7 +35,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle
const condition = { propertyName: 'Name', operator: 'LIKE', value: `%${entity.Name}%` };
filter.$filter.conditions.push(condition);
}
- Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentStatus.entitySearch', data: {
+ Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentDirection.entitySearch', data: {
entity: entity,
filter: filter
}});
@@ -57,7 +57,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controlle
};
$scope.cancel = () => {
- Dialogs.closeWindow({ id: 'PaymentStatus-filter' });
+ Dialogs.closeWindow({ id: 'PaymentDirection-filter' });
};
$scope.clearErrorMessage = () => {
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/index.html b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/index.html
similarity index 90%
rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/index.html
rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/index.html
index 8ceb88d..84bfc9c 100644
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/index.html
+++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/index.html
@@ -16,10 +16,10 @@
{{ errorMessage }}
-
+
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTSTATUS_NAME' | t }}
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION_NAME' | t }}
@@ -29,7 +29,7 @@
ng-model="entity.Name"
ng-maxlength="20.0"
type="text"
- placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS_NAME)'} }}">
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION_NAME)'} }}">
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/view.extension
similarity index 54%
rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.extension
rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/view.extension
index 8130ba4..4d2ea8f 100644
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.extension
+++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/view.extension
@@ -1,6 +1,5 @@
{
- "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.js",
+ "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/view.js",
"extensionPoint": "application-windows",
- "description": "codbex-payments - Application Dialog Window",
- "role": "codbex-payments.Settings.PaymentStatusReadOnly,codbex-payments.Settings.PaymentStatusFullAccess"
+ "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/PaymentDirection/dialog-filter/view.js
similarity index 71%
rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.js
rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/view.js
index 9f1806c..b7cb4be 100644
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.js
+++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/view.js
@@ -4,15 +4,15 @@
* Do not modify the content as it may be re-generated again.
*/
const viewData = {
- id: 'PaymentStatus-filter',
- label: 'PaymentStatus Filter',
+ id: 'PaymentDirection-filter',
+ label: 'PaymentDirection Filter',
translation: {
key: 'codbex-payments:codbex-payments-model.extName',
options: {
- content: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS) $t(codbex-payments:codbex-payments-model.defaults.filter)',
+ content: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION) $t(codbex-payments:codbex-payments-model.defaults.filter)',
}
},
- path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/index.html',
+ path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-filter/index.html',
perspectiveName: 'Settings'
};
if (typeof exports !== 'undefined') {
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/controller.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/controller.js
similarity index 77%
rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/controller.js
rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/controller.js
index 059b6f1..f7b68dc 100644
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/controller.js
+++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/controller.js
@@ -1,32 +1,32 @@
angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntityService'])
.config(['EntityServiceProvider', (EntityServiceProvider) => {
- EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts';
+ EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentDirectionController.ts';
}])
.controller('PageController', ($scope, $http, ViewParameters, LocaleService, EntityService) => {
const Dialogs = new DialogHub();
const Notifications = new NotificationHub();
let description = 'Description';
- let propertySuccessfullyCreated = 'PaymentStatus successfully created';
- let propertySuccessfullyUpdated = 'PaymentStatus successfully updated';
+ let propertySuccessfullyCreated = 'PaymentDirection successfully created';
+ let propertySuccessfullyUpdated = 'PaymentDirection successfully updated';
$scope.entity = {};
$scope.forms = {
details: {},
};
$scope.formHeaders = {
- select: 'PaymentStatus Details',
- create: 'Create PaymentStatus',
- update: 'Update PaymentStatus'
+ select: 'PaymentDirection Details',
+ create: 'Create PaymentDirection',
+ update: 'Update PaymentDirection'
};
$scope.action = 'select';
LocaleService.onInit(() => {
description = LocaleService.t('codbex-payments:codbex-payments-model.defaults.description');
- $scope.formHeaders.select = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadSelect', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' });
- $scope.formHeaders.create = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadCreate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' });
- $scope.formHeaders.update = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' });
- propertySuccessfullyCreated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyCreated', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' });
- propertySuccessfullyUpdated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyUpdated', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)' });
+ $scope.formHeaders.select = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadSelect', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' });
+ $scope.formHeaders.create = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadCreate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' });
+ $scope.formHeaders.update = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' });
+ propertySuccessfullyCreated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyCreated', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' });
+ propertySuccessfullyUpdated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyUpdated', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)' });
});
let params = ViewParameters.get();
@@ -41,9 +41,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
let entity = $scope.entity;
entity[$scope.selectedMainEntityKey] = $scope.selectedMainEntityId;
EntityService.create(entity).then((response) => {
- Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentStatus.entityCreated', data: response.data });
+ Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentDirection.entityCreated', data: response.data });
Notifications.show({
- title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTSTATUS'),
+ title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION'),
description: propertySuccessfullyCreated,
type: 'positive'
});
@@ -51,7 +51,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
}, (error) => {
const message = error.data ? error.data.message : '';
$scope.$evalAsync(() => {
- $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCreate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)', message: message });
+ $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCreate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)', message: message });
});
console.error('EntityService:', error);
});
@@ -62,9 +62,9 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
let entity = $scope.entity;
entity[$scope.selectedMainEntityKey] = $scope.selectedMainEntityId;
EntityService.update(id, entity).then((response) => {
- Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentStatus.entityUpdated', data: response.data });
+ Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentDirection.entityUpdated', data: response.data });
Notifications.show({
- title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTSTATUS'),
+ title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION'),
description: propertySuccessfullyUpdated,
type: 'positive'
});
@@ -72,7 +72,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
}, (error) => {
const message = error.data ? error.data.message : '';
$scope.$evalAsync(() => {
- $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTSTATUS)', message: message });
+ $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION)', message: message });
});
console.error('EntityService:', error);
});
@@ -91,7 +91,7 @@ angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntitySer
$scope.cancel = () => {
$scope.entity = {};
$scope.action = 'select';
- Dialogs.closeWindow({ id: 'PaymentStatus-details' });
+ Dialogs.closeWindow({ id: 'PaymentDirection-details' });
};
$scope.clearErrorMessage = () => {
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/index.html b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/index.html
similarity index 93%
rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/index.html
rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/index.html
index fecf4b8..2847e95 100644
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/index.html
+++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/index.html
@@ -20,20 +20,20 @@
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTSTATUS_NAME' | t }}
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION_NAME' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION_NAME)'} }}">
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/view.extension
similarity index 54%
rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.extension
rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/view.extension
index f075746..59ed78f 100644
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.extension
+++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/view.extension
@@ -1,6 +1,5 @@
{
- "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-filter/view.js",
+ "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/view.js",
"extensionPoint": "application-windows",
- "description": "codbex-payments - Application Dialog Window",
- "role": "codbex-payments.Settings.PaymentStatusReadOnly,codbex-payments.Settings.PaymentStatusFullAccess"
+ "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/PaymentDirection/dialog-window/view.js
similarity index 64%
rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.js
rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/view.js
index cbc1977..8a47327 100644
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/view.js
+++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/view.js
@@ -4,12 +4,12 @@
* Do not modify the content as it may be re-generated again.
*/
const viewData = {
- id: 'PaymentStatus-details',
- label: 'PaymentStatus',
+ id: 'PaymentDirection-details',
+ label: 'PaymentDirection',
translation: {
- key: 'codbex-payments:codbex-payments-model.t.PAYMENTSTATUS',
+ key: 'codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION',
},
- path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/dialog-window/index.html',
+ path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/dialog-window/index.html',
perspectiveName: 'Settings'
};
if (typeof exports !== 'undefined') {
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/index.html b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/index.html
similarity index 98%
rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/index.html
rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/index.html
index 9c0d880..f0ef63f 100644
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/index.html
+++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/index.html
@@ -25,7 +25,7 @@
- | {{ 'codbex-payments:codbex-payments-model.t.PAYMENTSTATUS_NAME' | t:'Name' }} |
+ {{ 'codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION_NAME' | t:'Name' }} |
|
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.extension
new file mode 100644
index 0000000..0106979
--- /dev/null
+++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.extension
@@ -0,0 +1,5 @@
+{
+ "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.js",
+ "extensionPoint": "application-settings",
+ "description": "codbex-payments - Application View"
+}
\ No newline at end of file
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.js
similarity index 70%
rename from codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js
rename to codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.js
index 295ffab..8929684 100644
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js
+++ b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/view.js
@@ -4,15 +4,15 @@
* Do not modify the content as it may be re-generated again.
*/
const viewData = {
- id: 'PaymentStatus',
- label: 'PaymentStatus',
+ id: 'PaymentDirection',
+ label: 'PaymentDirection',
translation: {
- key: 'codbex-payments:codbex-payments-model.t.PAYMENTSTATUS',
+ key: 'codbex-payments:codbex-payments-model.t.PAYMENTDIRECTION',
},
region: 'center',
lazyLoad: true,
autoFocusTab: false,
- path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/index.html',
+ path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentDirection/index.html',
perspectiveName: 'Settings'
};
if (typeof exports !== 'undefined') {
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/controller.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/controller.js
deleted file mode 100644
index f11c128..0000000
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/controller.js
+++ /dev/null
@@ -1,202 +0,0 @@
-angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntityService'])
- .config(['EntityServiceProvider', (EntityServiceProvider) => {
- EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts';
- }])
- .controller('PageController', ($scope, EntityService, Extensions, LocaleService, ButtonStates) => {
- const Dialogs = new DialogHub();
- let translated = {
- yes: 'Yes',
- no: 'No',
- deleteConfirm: 'Are you sure you want to delete PaymentRecordDirection? This action cannot be undone.',
- deleteTitle: 'Delete PaymentRecordDirection?'
- };
-
- LocaleService.onInit(() => {
- translated.yes = LocaleService.t('codbex-payments:codbex-payments-model.defaults.yes');
- translated.no = LocaleService.t('codbex-payments:codbex-payments-model.defaults.no');
- translated.deleteTitle = LocaleService.t('codbex-payments:codbex-payments-model.defaults.deleteTitle', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' });
- translated.deleteConfirm = LocaleService.t('codbex-payments:codbex-payments-model.messages.deleteConfirm', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' });
- });
-
- $scope.dataPage = 1;
- $scope.dataCount = 0;
- $scope.dataLimit = 20;
-
- //-----------------Custom Actions-------------------//
- Extensions.getWindows(['codbex-payments-custom-action']).then((response) => {
- $scope.pageActions = response.data.filter(e => e.perspective === 'Settings' && e.view === 'PaymentRecordDirection' && (e.type === 'page' || e.type === undefined));
- $scope.entityActions = response.data.filter(e => e.perspective === 'Settings' && e.view === 'PaymentRecordDirection' && e.type === 'entity');
- });
-
- $scope.triggerPageAction = (action) => {
- Dialogs.showWindow({
- hasHeader: true,
- title: LocaleService.t(action.translation.key, action.translation.options, action.label),
- path: action.path,
- maxWidth: action.maxWidth,
- maxHeight: action.maxHeight,
- closeButton: true
- });
- };
-
- $scope.triggerEntityAction = (action) => {
- Dialogs.showWindow({
- hasHeader: true,
- title: LocaleService.t(action.translation.key, action.translation.options, action.label),
- path: action.path,
- params: {
- id: $scope.entity.Id
- },
- closeButton: true
- });
- };
- //-----------------Custom Actions-------------------//
-
- function resetPagination() {
- $scope.dataPage = 1;
- $scope.dataCount = 0;
- $scope.dataLimit = 20;
- }
- resetPagination();
-
- //-----------------Events-------------------//
- Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentRecordDirection.entityCreated', handler: () => {
- $scope.loadPage($scope.dataPage, $scope.filter);
- }});
- Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentRecordDirection.entityUpdated', handler: () => {
- $scope.loadPage($scope.dataPage, $scope.filter);
- }});
- Dialogs.addMessageListener({ topic: 'codbex-payments.Settings.PaymentRecordDirection.entitySearch', handler: (data) => {
- resetPagination();
- $scope.filter = data.filter;
- $scope.filterEntity = data.entity;
- $scope.loadPage($scope.dataPage, $scope.filter);
- }});
- //-----------------Events-------------------//
-
- $scope.loadPage = (pageNumber, filter) => {
- if (!filter && $scope.filter) {
- filter = $scope.filter;
- }
- $scope.dataPage = pageNumber;
- EntityService.count(filter).then((resp) => {
- if (resp.data) {
- $scope.dataCount = resp.data.count;
- }
- let offset = (pageNumber - 1) * $scope.dataLimit;
- let limit = $scope.dataLimit;
- let request;
- if (filter) {
- if (!filter.$filter) {
- filter.$filter = {};
- }
- filter.$filter.offset = offset;
- filter.$filter.limit = limit;
- request = EntityService.search(filter);
- } else {
- request = EntityService.list(offset, limit);
- }
- request.then((response) => {
- $scope.data = response.data;
- }, (error) => {
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION'),
- message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLF', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)', message: message }),
- type: AlertTypes.Error
- });
- console.error('EntityService:', error);
- });
- }, (error) => {
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION'),
- message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCount', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)', message: message }),
- type: AlertTypes.Error
- });
- console.error('EntityService:', error);
- });
- };
- $scope.loadPage($scope.dataPage, $scope.filter);
-
- $scope.selectEntity = (entity) => {
- $scope.selectedEntity = entity;
- };
-
- $scope.openDetails = (entity) => {
- $scope.selectedEntity = entity;
- Dialogs.showWindow({
- id: 'PaymentRecordDirection-details',
- params: {
- action: 'select',
- entity: entity,
- },
- closeButton: true,
- });
- };
-
- $scope.openFilter = () => {
- Dialogs.showWindow({
- id: 'PaymentRecordDirection-filter',
- params: {
- entity: $scope.filterEntity,
- },
- closeButton: true,
- });
- };
-
- $scope.createEntity = () => {
- $scope.selectedEntity = null;
- Dialogs.showWindow({
- id: 'PaymentRecordDirection-details',
- params: {
- action: 'create',
- entity: {},
- },
- closeButton: false,
- });
- };
-
- $scope.updateEntity = (entity) => {
- Dialogs.showWindow({
- id: 'PaymentRecordDirection-details',
- params: {
- action: 'update',
- entity: entity,
- },
- closeButton: false,
- });
- };
-
- $scope.deleteEntity = (entity) => {
- let id = entity.Id;
- Dialogs.showDialog({
- title: translated.deleteTitle,
- message: translated.deleteConfirm,
- buttons: [{
- id: 'delete-btn-yes',
- state: ButtonStates.Emphasized,
- label: translated.yes,
- }, {
- id: 'delete-btn-no',
- label: translated.no,
- }]
- }).then((buttonId) => {
- if (buttonId === 'delete-btn-yes') {
- EntityService.delete(id).then((response) => {
- $scope.loadPage($scope.dataPage, $scope.filter);
- Dialogs.triggerEvent('codbex-payments.Settings.PaymentRecordDirection.clearDetails');
- }, (error) => {
- const message = error.data ? error.data.message : '';
- Dialogs.showAlert({
- title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION'),
- message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToDelete', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)', message: message }),
- type: AlertTypes.Error
- });
- console.error('EntityService:', error);
- });
- }
- });
- };
-
- });
\ No newline at end of file
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/controller.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/controller.js
deleted file mode 100644
index 5846e24..0000000
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/controller.js
+++ /dev/null
@@ -1,66 +0,0 @@
-angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controller('PageController', ($scope, ViewParameters, LocaleService) => {
- const Dialogs = new DialogHub();
- let description = 'Description';
- $scope.entity = {};
- $scope.forms = {
- details: {},
- };
-
- LocaleService.onInit(() => {
- description = LocaleService.t('codbex-payments:codbex-payments-model.defaults.description');
- });
-
- let params = ViewParameters.get();
- if (Object.keys(params).length) {
- $scope.entity = params.entity ?? {};
- $scope.selectedMainEntityKey = params.selectedMainEntityKey;
- $scope.selectedMainEntityId = params.selectedMainEntityId;
- }
-
- $scope.filter = () => {
- let entity = $scope.entity;
- const filter = {
- $filter: {
- conditions: [],
- sorts: [],
- limit: 20,
- offset: 0
- }
- };
- if (entity.Id !== undefined) {
- const condition = { propertyName: 'Id', operator: 'EQ', value: entity.Id };
- filter.$filter.conditions.push(condition);
- }
- if (entity.Name) {
- const condition = { propertyName: 'Name', operator: 'LIKE', value: `%${entity.Name}%` };
- filter.$filter.conditions.push(condition);
- }
- Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentRecordDirection.entitySearch', data: {
- entity: entity,
- filter: filter
- }});
- $scope.cancel();
- };
-
- $scope.resetFilter = () => {
- $scope.entity = {};
- $scope.filter();
- };
-
- $scope.alert = (message) => {
- if (message) Dialogs.showAlert({
- title: description,
- message: message,
- type: AlertTypes.Information,
- preformatted: true,
- });
- };
-
- $scope.cancel = () => {
- Dialogs.closeWindow({ id: 'PaymentRecordDirection-filter' });
- };
-
- $scope.clearErrorMessage = () => {
- $scope.errorMessage = null;
- };
-});
\ No newline at end of file
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/index.html b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/index.html
deleted file mode 100644
index fc606e2..0000000
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/index.html
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ errorMessage }}
-
-
-
-
-
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION_NAME' | t }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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
deleted file mode 100644
index 4537bff..0000000
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.extension
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.js",
- "extensionPoint": "application-windows",
- "description": "codbex-payments - Application Dialog Window",
- "role": "codbex-payments.Settings.PaymentRecordDirectionReadOnly,codbex-payments.Settings.PaymentRecordDirectionFullAccess"
-}
\ 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
deleted file mode 100644
index 33e67fe..0000000
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/view.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Generated by Eclipse Dirigible based on model and template.
- *
- * Do not modify the content as it may be re-generated again.
- */
-const viewData = {
- id: 'PaymentRecordDirection-filter',
- label: 'PaymentRecordDirection Filter',
- translation: {
- key: 'codbex-payments:codbex-payments-model.extName',
- options: {
- content: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION) $t(codbex-payments:codbex-payments-model.defaults.filter)',
- }
- },
- path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-filter/index.html',
- perspectiveName: 'Settings'
-};
-if (typeof exports !== 'undefined') {
- exports.getView = () => viewData;
-}
\ No newline at end of file
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/controller.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/controller.js
deleted file mode 100644
index bc6d2e2..0000000
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/controller.js
+++ /dev/null
@@ -1,100 +0,0 @@
-angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntityService'])
- .config(['EntityServiceProvider', (EntityServiceProvider) => {
- EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts';
- }])
- .controller('PageController', ($scope, $http, ViewParameters, LocaleService, EntityService) => {
- const Dialogs = new DialogHub();
- const Notifications = new NotificationHub();
- let description = 'Description';
- let propertySuccessfullyCreated = 'PaymentRecordDirection successfully created';
- let propertySuccessfullyUpdated = 'PaymentRecordDirection successfully updated';
-
- $scope.entity = {};
- $scope.forms = {
- details: {},
- };
- $scope.formHeaders = {
- select: 'PaymentRecordDirection Details',
- create: 'Create PaymentRecordDirection',
- update: 'Update PaymentRecordDirection'
- };
- $scope.action = 'select';
-
- LocaleService.onInit(() => {
- description = LocaleService.t('codbex-payments:codbex-payments-model.defaults.description');
- $scope.formHeaders.select = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadSelect', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' });
- $scope.formHeaders.create = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadCreate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' });
- $scope.formHeaders.update = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' });
- propertySuccessfullyCreated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyCreated', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' });
- propertySuccessfullyUpdated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyUpdated', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)' });
- });
-
- let params = ViewParameters.get();
- if (Object.keys(params).length) {
- $scope.action = params.action;
- $scope.entity = params.entity;
- $scope.selectedMainEntityKey = params.selectedMainEntityKey;
- $scope.selectedMainEntityId = params.selectedMainEntityId;
- }
-
- $scope.create = () => {
- let entity = $scope.entity;
- entity[$scope.selectedMainEntityKey] = $scope.selectedMainEntityId;
- EntityService.create(entity).then((response) => {
- Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentRecordDirection.entityCreated', data: response.data });
- Notifications.show({
- title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION'),
- description: propertySuccessfullyCreated,
- type: 'positive'
- });
- $scope.cancel();
- }, (error) => {
- const message = error.data ? error.data.message : '';
- $scope.$evalAsync(() => {
- $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCreate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)', message: message });
- });
- console.error('EntityService:', error);
- });
- };
-
- $scope.update = () => {
- let id = $scope.entity.Id;
- let entity = $scope.entity;
- entity[$scope.selectedMainEntityKey] = $scope.selectedMainEntityId;
- EntityService.update(id, entity).then((response) => {
- Dialogs.postMessage({ topic: 'codbex-payments.Settings.PaymentRecordDirection.entityUpdated', data: response.data });
- Notifications.show({
- title: LocaleService.t('codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION'),
- description: propertySuccessfullyUpdated,
- type: 'positive'
- });
- $scope.cancel();
- }, (error) => {
- const message = error.data ? error.data.message : '';
- $scope.$evalAsync(() => {
- $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION)', message: message });
- });
- console.error('EntityService:', error);
- });
- };
-
-
- $scope.alert = (message) => {
- if (message) Dialogs.showAlert({
- title: description,
- message: message,
- type: AlertTypes.Information,
- preformatted: true,
- });
- };
-
- $scope.cancel = () => {
- $scope.entity = {};
- $scope.action = 'select';
- Dialogs.closeWindow({ id: 'PaymentRecordDirection-details' });
- };
-
- $scope.clearErrorMessage = () => {
- $scope.errorMessage = null;
- };
- });
\ No newline at end of file
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/index.html b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/index.html
deleted file mode 100644
index f56bfb9..0000000
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/index.html
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ errorMessage }}
-
-
-
-
-
- {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION_NAME' | t }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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
deleted file mode 100644
index 22d35ab..0000000
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.extension
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.js",
- "extensionPoint": "application-windows",
- "description": "codbex-payments - Application Dialog Window",
- "role": "codbex-payments.Settings.PaymentRecordDirectionReadOnly,codbex-payments.Settings.PaymentRecordDirectionFullAccess"
-}
\ 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
deleted file mode 100644
index 1c02375..0000000
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/view.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * Generated by Eclipse Dirigible based on model and template.
- *
- * Do not modify the content as it may be re-generated again.
- */
-const viewData = {
- id: 'PaymentRecordDirection-details',
- label: 'PaymentRecordDirection',
- translation: {
- key: 'codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION',
- },
- path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/dialog-window/index.html',
- perspectiveName: 'Settings'
-};
-if (typeof exports !== 'undefined') {
- exports.getView = () => viewData;
-}
\ No newline at end of file
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/index.html b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/index.html
deleted file mode 100644
index cd22b33..0000000
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/index.html
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{'codbex-payments:codbex-payments-model.defaults.items' | t}}
-
-
-
-
-
-
-
-
-
-
- | {{ 'codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION_NAME' | t:'Name' }} |
- |
-
-
-
-
- | {{'codbex-payments:codbex-payments-model.messages.noData' | t}} |
-
-
- | {{next.Name}} |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension
deleted file mode 100644
index 25393f9..0000000
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.extension
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.js",
- "extensionPoint": "application-settings",
- "description": "codbex-payments - Application View",
- "role": "codbex-payments.Settings.PaymentRecordDirectionReadOnly,codbex-payments.Settings.PaymentRecordDirectionFullAccess"
-}
\ No newline at end of file
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.js b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.js
deleted file mode 100644
index 4c7c7a3..0000000
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/view.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Generated by Eclipse Dirigible based on model and template.
- *
- * Do not modify the content as it may be re-generated again.
- */
-const viewData = {
- id: 'PaymentRecordDirection',
- label: 'PaymentRecordDirection',
- translation: {
- key: 'codbex-payments:codbex-payments-model.t.PAYMENTRECORDDIRECTION',
- },
- region: 'center',
- lazyLoad: true,
- autoFocusTab: false,
- path: '/services/web/codbex-payments/gen/codbex-payments/ui/Settings/PaymentRecordDirection/index.html',
- perspectiveName: 'Settings'
-};
-if (typeof exports !== 'undefined') {
- exports.getView = () => viewData;
-}
\ No newline at end of file
diff --git a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension b/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension
deleted file mode 100644
index 084aa66..0000000
--- a/codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.extension
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "module": "codbex-payments/gen/codbex-payments/ui/Settings/PaymentStatus/view.js",
- "extensionPoint": "application-settings",
- "description": "codbex-payments - Application View",
- "role": "codbex-payments.Settings.PaymentStatusReadOnly,codbex-payments.Settings.PaymentStatusFullAccess"
-}
\ No newline at end of file
diff --git a/codbex-payments/translations/en-US/codbex-payments.model.json b/codbex-payments/translations/en-US/codbex-payments.model.json
index c939666..0eead0d 100644
--- a/codbex-payments/translations/en-US/codbex-payments.model.json
+++ b/codbex-payments/translations/en-US/codbex-payments.model.json
@@ -120,12 +120,11 @@
"PAYMENTRECORD_COUNTERPARTYNAME": "CounterpartyName",
"PAYMENTRECORD_AMOUNT": "Amount",
"PAYMENTRECORD_CURRENCY": "Currency",
+ "PAYMENTRECORD_PAYMENTDIRECTION": "PaymentDirection",
+ "PAYMENTRECORD_PAYMENTTYPE": "PaymentType",
"PAYMENTRECORD_REASON": "Reason",
"PAYMENTRECORD_DESCRIPTION": "Description",
"PAYMENTRECORD_COMPANY": "Company",
- "PAYMENTRECORD_PAYMENTRECORDDIRECTION": "PaymentRecordDirection",
- "PAYMENTRECORD_PAYMENTSTATUS": "PaymentStatus",
- "PAYMENTRECORD_PAYMENTTYPE": "PaymentType",
"PAYMENTRECORD_UUID": "UUID",
"PAYMENTRECORD_REFERENCE": "Reference",
"PAYMENTRECORD_DELETED": "Deleted",
@@ -149,12 +148,6 @@
"COMPANY_COUNTRY": "Country",
"COMPANY_TIN": "TIN",
"COMPANY_IBAN": "IBAN",
- "PAYMENTRECORDDIRECTION": "PaymentRecordDirection",
- "PAYMENTRECORDDIRECTION_ID": "Id",
- "PAYMENTRECORDDIRECTION_NAME": "Name",
- "PAYMENTSTATUS": "PaymentStatus",
- "PAYMENTSTATUS_ID": "Id",
- "PAYMENTSTATUS_NAME": "Name",
"PAYMENTTYPE": "PaymentType",
"PAYMENTTYPE_ID": "Id",
"PAYMENTTYPE_NAME": "Name",
@@ -194,6 +187,9 @@
"SUPPLIER_CITY": "City",
"SUPPLIER_TIN": "TIN",
"SUPPLIER_IBAN": "IBAN",
+ "PAYMENTDIRECTION": "PaymentDirection",
+ "PAYMENTDIRECTION_ID": "Id",
+ "PAYMENTDIRECTION_NAME": "Name",
"CustomerPayment": "CustomerPayment",
"SupplierPayment": "SupplierPayment",
"PaymentRecord": "PaymentRecord",
|