From c5321b7d3a6669cdee9a08f6555adba83c97c898 Mon Sep 17 00:00:00 2001
From: fiter-julius-oketayot
<140818859+fiter-julius-oketayot@users.noreply.github.com>
Date: Mon, 4 Mar 2024 15:29:45 +0300
Subject: [PATCH 1/6] Improvements/FBR-615: Schedular Jobs Improvements (#337)
---
app/global-translations/locale-en.json | 35 +++++++++++++++++++
app/global-translations/locale-es.json | 35 +++++++++++++++++++
.../system/SchedulerJobsController.js | 2 +-
app/views/system/schedulerjobs.html | 8 ++---
app/views/system/viewschedulerjob.html | 4 +--
5 files changed, 77 insertions(+), 7 deletions(-)
diff --git a/app/global-translations/locale-en.json b/app/global-translations/locale-en.json
index d4d2f6690c..402647184a 100644
--- a/app/global-translations/locale-en.json
+++ b/app/global-translations/locale-en.json
@@ -5407,5 +5407,40 @@
"DaysInYearType.invalid": "Invalid",
"DaysInMonthType.actual": "Actual",
"DaysInMonthType.days360": "30 Days",
+ "update.loan.arrears.ageing": "Update Loan Arrears Ageing",
+ "apply.annual.fee.for.savings": "Apply Annual Fee For Savings",
+ "apply.holidays.to.loans": "Apply Holidays To Loans",
+ "post.interest.for.savings": "Post Interest For Savings",
+ "transfer.fee.for.loans.from.savings": "Transfer Fee For Loans From Savings",
+ "pay.due.savings.charges": "Pay Due Savings Charges",
+ "update.accounting.running.balances": "Update Accounting Running Balances",
+ "execute.standing.instruction": "Execute Standing Instruction",
+ "add.accrual.transactions": "Add Accrual Transactions",
+ "apply.penalty.to.overdue.loans": "Apply penalty to overdue loans",
+ "update.non.performing.assets": "Update Non Performing Assets",
+ "transfer.interest.to.savings": "Transfer Interest To Savings",
+ "update.deposit.accounts.maturity.details": "Update Deposit Accounts Maturity details",
+ "add.periodic.accrual.transactions": "Add Periodic Accrual Transactions",
+ "recalculate.interest.for.loans": "Recalculate Interest For Loans",
+ "generate.mandatory.savings.schedule": "Generate Mandatory Savings Schedule",
+ "generate.loan.loss.provisioning": "Generate Loan Loss Provisioning",
+ "post.dividends.for.shares": "Post Dividends For Shares",
+ "update.savings.dormant.accounts": "Update Savings Dormant Accounts",
+ "add.accrual.transactions.for.loans.with.income.posted.as.transactions": "Add Accrual Transactions For Loans With Income Posted As Transactions",
+ "execute.report.mailing.jobs": "Execute Report Mailing Jobs",
+ "update.sms.outbound.with.campaign.message": "Update SMS Outbound with Campaign Message",
+ "send.messages.to.sms.gateway": "Send Messages to SMS Gateway",
+ "get.delivery.reports.from.sms.gateway": "Get Delivery Reports from SMS Gateway",
+ "execute.email": "Execute Email",
+ "update.email.outbound.with.campaign.message": "Update Email Outbound with campaign message",
+ "generate.adhocclient.schedule": "Generate AdhocClient Schedule",
+ "update.trial.balance.details": "Update Trial Balance Details",
+ "execute.all.dirty.jobs": "Execute All Dirty Jobs",
+ "increase.business.date.by.1.day": "Increase Business Date by 1 day",
+ "increase.cob.date.by.1.day": "Increase COB Date by 1 day",
+ "disable.expired.prequalifications": "Disable Expired Prequalifications",
+ "import.batches.of.loan.repayments": "Import Batches of Loan Repayments",
+ "scheduler.status.active": "Active",
+ "scheduler.status.standby": "Standy",
"----End---": "--End of file--- "
}
diff --git a/app/global-translations/locale-es.json b/app/global-translations/locale-es.json
index 5cf05669d9..c111cf5b30 100644
--- a/app/global-translations/locale-es.json
+++ b/app/global-translations/locale-es.json
@@ -5028,5 +5028,40 @@
"DaysInYearType.days364": "364 días",
"DaysInYearType.days365": "365 dias",
"DaysInYearType.invalid": "Invalid",
+ "update.loan.arrears.ageing": "Actualizar la antigüedad de los atrasos en los préstamos",
+ "apply.annual.fee.for.savings": "Aplicar tarifa anual para ahorros",
+ "apply.holidays.to.loans": "Aplicar días festivos a préstamos",
+ "post.interest.for.savings": "Publicar intereses para ahorros",
+ "transfer.fee.for.loans.from.savings": "Tarifa de transferencia para préstamos de ahorros",
+ "pay.due.savings.charges": "Pagar los cargos de ahorro adeudados",
+ "update.accounting.running.balances": "Actualizar saldos corrientes contables",
+ "execute.standing.instruction": "Ejecutar instrucción permanente",
+ "add.accrual.transactions": "Agregar transacciones de acumulación",
+ "apply.penalty.to.overdue.loans": "Aplicar penalización a préstamos vencidos",
+ "update.non.performing.assets": "Actualizar activos improductivos",
+ "transfer.interest.to.savings": "Transferir intereses a ahorros",
+ "update.deposit.accounts.maturity.details": "Actualizar detalles de vencimiento de cuentas de depósito",
+ "add.periodic.accrual.transactions": "Agregar transacciones de acumulación periódica",
+ "recalculate.interest.for.loans": "Recalcular el interés de los préstamos",
+ "generate.mandatory.savings.schedule": "Generar Cronograma de Ahorro Obligatorio",
+ "generate.loan.loss.provisioning": "Generar provisiones para pérdidas crediticias",
+ "post.dividends.for.shares": "Publicar dividendos para acciones",
+ "update.savings.dormant.accounts": "Actualizar cuentas de ahorro inactivas",
+ "add.accrual.transactions.for.loans.with.income.posted.as.transactions": "Agregar transacciones de acumulación para préstamos con ingresos contabilizados como transacciones",
+ "execute.report.mailing.jobs": "Ejecutar trabajos de envío de informes",
+ "update.sms.outbound.with.campaign.message": "Actualizar SMS salientes con mensaje de campaña",
+ "send.messages.to.sms.gateway": "Enviar mensajes a la puerta de enlace SMS",
+ "get.delivery.reports.from.sms.gateway": "Obtenga informes de entrega desde SMS Gateway",
+ "execute.email": "Ejecutar correo electrónico",
+ "update.email.outbound.with.campaign.message": "Actualizar correo electrónico saliente con mensaje de campaña",
+ "generate.adhocclient.schedule": "Generar programación AdhocClient",
+ "update.trial.balance.details": "Actualizar detalles del saldo de prueba",
+ "execute.all.dirty.jobs": "Ejecutar todos los trabajos sucios",
+ "increase.business.date.by.1.day": "Aumentar la fecha comercial en 1 día",
+ "increase.cob.date.by.1.day": "Aumentar la fecha COB en 1 día",
+ "disable.expired.prequalifications": "Deshabilitar precalificaciones vencidas",
+ "import.batches.of.loan.repayments": "Importar lotes de reembolsos de préstamos",
+ "scheduler.status.active": "Activo",
+ "scheduler.status.standby": "Apoyar",
"----End---": "---Fin del archivo---"
}
diff --git a/app/scripts/controllers/system/SchedulerJobsController.js b/app/scripts/controllers/system/SchedulerJobsController.js
index 08ad5f3324..e903ff0873 100644
--- a/app/scripts/controllers/system/SchedulerJobsController.js
+++ b/app/scripts/controllers/system/SchedulerJobsController.js
@@ -8,7 +8,7 @@
});
resourceFactory.schedulerResource.get(function (data) {
- scope.schedulerstatus = data.active === true ? 'Active' : 'Standby';
+ scope.schedulerstatus = data.active === true ? 'scheduler.status.active' : 'scheduler.status.standby';
});
scope.selectAll = function (selectAll) {
diff --git a/app/views/system/schedulerjobs.html b/app/views/system/schedulerjobs.html
index bb522813cd..659524ddfd 100644
--- a/app/views/system/schedulerjobs.html
+++ b/app/views/system/schedulerjobs.html
@@ -8,11 +8,11 @@
- {{'label.heading.schedulerstatus' | translate}} : {{schedulerstatus}} |
+ {{'label.heading.schedulerstatus' | translate}} : {{schedulerstatus | translate}} |
|
-
-
+
+
|
@@ -42,7 +42,7 @@
|
- {{job.displayName}} |
+ {{job.displayNameCode | translate}} |
{{job.nextRunTime}} |
{{job.lastRunHistory.jobRunStartTime}} |
{{job.lastRunHistory.status}} |
diff --git a/app/views/system/viewschedulerjob.html b/app/views/system/viewschedulerjob.html
index 6366aec019..6e0e9dfc9b 100644
--- a/app/views/system/viewschedulerjob.html
+++ b/app/views/system/viewschedulerjob.html
@@ -2,7 +2,7 @@
@@ -22,7 +22,7 @@
{{ 'label.heading.jobname' | translate }} |
- {{job.displayName}} |
+ {{job.displayNameCode | translate}} |
{{ 'label.heading.cronexpression' | translate }} |
From ef59d8d269117253ef089648c31cdb272b753ee6 Mon Sep 17 00:00:00 2001
From: Muhimbura Brian Mart
Date: Mon, 4 Mar 2024 22:03:06 +0300
Subject: [PATCH 2/6] Edit loan application validatoins
---
.../loanAccount/EditLoanAccAppController.js | 8 +++---
app/views/loans/editloanaccount.html | 25 ++++++-------------
2 files changed, 12 insertions(+), 21 deletions(-)
diff --git a/app/scripts/controllers/loanAccount/EditLoanAccAppController.js b/app/scripts/controllers/loanAccount/EditLoanAccAppController.js
index 0b0e933828..43df93e3af 100755
--- a/app/scripts/controllers/loanAccount/EditLoanAccAppController.js
+++ b/app/scripts/controllers/loanAccount/EditLoanAccAppController.js
@@ -22,12 +22,12 @@
}, function (data) {
scope.loanaccountinfo = data;
if (data.groupLoanAdditionalData) {
- scope.formData.dateRequested=new Date(data.groupLoanAdditionalData.dateRequested) || new Date();
- scope.formData.dateOfBirth=new Date(data.groupLoanAdditionalData.dateOfBirth) || new Date();
+ scope.formData.dateRequested=new Date(data.timeline.submittedOnDate) || new Date();
+ scope.formData.dateOfBirth=data.groupLoanAdditionalData.dateOfBirth? new Date(data.groupLoanAdditionalData.dateOfBirth) : new Date();
scope.formData.loanCycleCompleted=data.groupLoanAdditionalData.loanCycleCompleted;
scope.formData.earlyCancellationReason=data.groupLoanAdditionalData.earlyCancellationReason;
scope.formData.sourceOfFunds=data.groupLoanAdditionalData.sourceOfFunds;
- scope.formData.clientLoanRequestNumber=data.groupLoanAdditionalData.clientLoanRequestNumber;
+ scope.formData.clientLoanRequestNumber=data.contractNo;
scope.formData.position=data.groupLoanAdditionalData.position;
scope.formData.facilitator=data.groupLoanAdditionalData.facilitatorId;
scope.formData.fullName=data.groupLoanAdditionalData.fullName;
@@ -128,6 +128,7 @@
scope.formData.clientId = scope.clientId;
resourceFactory.clientResource.get({clientId: scope.clientId}, function (clientData) {
scope.clientData = clientData;
+ scope.formData.dpi = clientData.dpiNumber;
scope.prequalificationOptions = clientData.clientPrequalifications;
if (scope.loanaccountinfo.prequalificationData && scope.loanaccountinfo.prequalificationData.id) {
scope.formData.prequalificationId = scope.loanaccountinfo.prequalificationData.id;
@@ -309,6 +310,7 @@
scope.cancellationReasonOptions = data.cancellationReasonOptions || [];
scope.facilitatorOptions = data.facilitatorOptions || [];
scope.documentTypeOptions = data.documentTypeOptions || [];
+ scope.economicSectorOptions = data.economicSectorOptions || [];
});
scope.previewClientLoanAccInfo = function () {
diff --git a/app/views/loans/editloanaccount.html b/app/views/loans/editloanaccount.html
index 761bcb431b..7816539158 100755
--- a/app/views/loans/editloanaccount.html
+++ b/app/views/loans/editloanaccount.html
@@ -7,7 +7,7 @@
{{'label.anchor.modifyloanapplication' | translate}}
-