diff --git a/client/src/i18n/en/form.json b/client/src/i18n/en/form.json
index d78a3b6e58..f65c5e5bcc 100644
--- a/client/src/i18n/en/form.json
+++ b/client/src/i18n/en/form.json
@@ -247,6 +247,7 @@
"PAYMENT_PERIOD": "Payment period",
"PER": "per",
"PREVIOUS": "Previous",
+ "PRICING_COEFFICIENT_ADMINISTRATION": "Pricing Coefficient Administration",
"RECORD_SAME": "No changes have been made to the form",
"REQUISITION": {
"CANCEL": "Cancel the inventory requisition request",
@@ -658,6 +659,7 @@
"NB_SPOUSE": "Spouse Count",
"NET_SALARY": "Net Salary",
"NEW_EXCHANGE_RATE": "New Exchange Rate",
+ "NEW_VALUE": "Updated Coefficient",
"NO_DEBTOR_GROUPS": "No debtor groups",
"NO_DISTRIBUTABLE": "Not distributable",
"NO_FISCALYEAR_REGISTERED": "There are no fiscal years registered so far! Click 'Create a Fiscal Year' to add your first fiscal year",
@@ -673,6 +675,7 @@
"NUMBER_SUBMISSIONS": "Number of submissions",
"OFF_DAYS": "Off Days",
"OF": "Of",
+ "OLD_VALUE": "Previous Coefficient",
"ON_DELIVERY": "On Delivery",
"ON": "On",
"ON_PURCHASE": "On Purchase",
@@ -1024,7 +1027,9 @@
"MANUFACTURER_MODEL": "Enter Manufacturer model",
"MAX_DEBT": "Overdraft Limit (Max Debt)",
"NAME": "Enter a name",
+ "NEW_VALUE": "eg. current exchange rate",
"NOTES": "Enter any additional information",
+ "OLD_VALUE": "eg. previous exchange rate",
"PACKAGING": "Enter count per package",
"PATIENT_ID": "Enter Patient ID",
"PATIENT_NAME": "Enter a Patient Name",
diff --git a/client/src/i18n/fr/form.json b/client/src/i18n/fr/form.json
index 5dbdfa9223..b70b0068b4 100644
--- a/client/src/i18n/fr/form.json
+++ b/client/src/i18n/fr/form.json
@@ -247,6 +247,7 @@
"PAYMENT_PERIOD": "Période de paiement",
"PER": "par",
"PREVIOUS": "Précédent",
+ "PRICING_COEFFICIENT_ADMINISTRATION": "Gestion des coefficients tarifaires",
"RECORD_SAME": "Aucun changement n'a été apporté sur le formulaire",
"REQUISITION": {
"CANCEL": "Annuler la demande de réquisition des stocks",
@@ -661,6 +662,7 @@
"NB_SPOUSE": "Nombre epoux (se)",
"NET_SALARY": "Salaire Net",
"NEW_EXCHANGE_RATE": "Nouveau taux d'echange",
+ "NEW_VALUE": "Nouveau Coefficient",
"NO_DEBTOR_GROUPS": "Aucun Groupes Débiteurs",
"NO_DISTRIBUTABLE": "Non distribuable",
"NO_FISCALYEAR_REGISTERED": "Il n'y a aucune année fiscale enregistré jusque là! Cliquez sur 'Créer L'année Fiscale' pour ajouter votre première année fiscale",
@@ -675,6 +677,7 @@
"NUMBER_SUBMISSIONS": "Nombre de soumissions",
"OF": "De",
"OFF_DAYS": "jours fériés",
+ "OLD_VALUE": "Ancien Coefficient",
"ON_DELIVERY": "Lors de la delivarance",
"ON_PURCHASE": "Lors de l'achat",
"ON": "Sur",
@@ -1023,7 +1026,9 @@
"MANUFACTURER_MODEL": "Entrer le modèle",
"MAX_DEBT": "Entrez la limite de découvert (dette maximale)",
"NAME": "Entrer le nom",
+ "NEW_VALUE": "Par exemple nouveau taux de Change",
"NOTES": "Commentaire",
+ "OLD_VALUE": "Par exemple l'ancien taux de change",
"ORIGIN": "Origine",
"PACKAGING": "Entrer le Conditionnement du paquet",
"PASSWORD": "Entrer le mot de passe",
diff --git a/client/src/js/services/ModalService.js b/client/src/js/services/ModalService.js
index ee77f5011a..cbecfe05d3 100644
--- a/client/src/js/services/ModalService.js
+++ b/client/src/js/services/ModalService.js
@@ -39,6 +39,8 @@ function ModalService(Modal) {
// inventory group action : add or edit
service.openInventoryGroupActions = openInventoryGroupActions;
+ service.openCoefficientAdministration = openCoefficientAdministration;
+
// inventory type action : add or edit
service.openInventoryTypeActions = openInventoryTypeActions;
@@ -187,6 +189,22 @@ function ModalService(Modal) {
return instance.result;
}
+ /**
+ * Coefficient Administration Modal
+ */
+ function openCoefficientAdministration(request) {
+ const params = angular.extend(modalParameters, {
+ templateUrl : 'modules/inventory/configuration/groups/modals/coefficient.tmpl.html',
+ controller : 'CoefficientActionsModalController',
+ controllerAs : '$ctrl',
+ size : 'xs',
+ resolve : { data : () => request },
+ });
+
+ const instance = Modal.open(params);
+ return instance.result;
+ }
+
/** Inventory Types Modal for actions */
function openInventoryTypeActions(request) {
diff --git a/client/src/modules/inventory/configuration/groups/groups.html b/client/src/modules/inventory/configuration/groups/groups.html
index f13e825bd8..5448f0493a 100644
--- a/client/src/modules/inventory/configuration/groups/groups.html
+++ b/client/src/modules/inventory/configuration/groups/groups.html
@@ -6,6 +6,13 @@
INVENTORY.LIST_GROUP ({{ GroupsCtrl.groupList.length }})
+
+