| Amount |
- {{ charge.amount }}
+ {{ charge.amount }}
@@ -52,21 +54,19 @@
| Date |
-
- {{(charge.dueDate | dateFormat) || 'Unassigned'}}
+
+ {{(charge.dueDate | dateFormat) || 'Unassigned'}}
- {{(charge.feeOnMonthDay | dateFormat) || 'Unassigned'}}
+ {{(charge.feeOnMonthDay | dateFormat) || 'Unassigned'}}
-
N/A
- |
@@ -75,8 +75,8 @@
Repayments Every |
- {{ charge.feeInterval || 'Not Provided' }}
-
diff --git a/src/app/savings/savings-account-stepper/savings-account-charges-step/savings-account-charges-step.component.ts b/src/app/savings/savings-account-stepper/savings-account-charges-step/savings-account-charges-step.component.ts
index a1c4df231..2391566a4 100644
--- a/src/app/savings/savings-account-stepper/savings-account-charges-step/savings-account-charges-step.component.ts
+++ b/src/app/savings/savings-account-stepper/savings-account-charges-step/savings-account-charges-step.component.ts
@@ -59,20 +59,22 @@ export class SavingsAccountChargesStepComponent implements OnInit, OnChanges {
private dateUtils: Dates) {}
ngOnInit() {
- this.currencyCode.valueChanges.subscribe(() => {
+ if (this.savingsAccountTemplate) {
if (!this.isChargesPatched && this.savingsAccountTemplate.charges) {
- this.chargesDataSource = this.savingsAccountTemplate.charges.map((charge: any) => ({...charge, id: charge.chargeId})) || [];
+ this.chargesDataSource = this.savingsAccountProductTemplate.charges.map((charge: any) => ({...charge, id: charge.chargeId})) || [];
this.isChargesPatched = true;
} else {
this.chargesDataSource = [];
}
this.dataSource = new MatTableDataSource(this.activeClientMembers);
- });
+ }
+
}
ngOnChanges() {
if (this.savingsAccountProductTemplate) {
this.chargeData = this.savingsAccountProductTemplate.chargeOptions;
+ this.chargesDataSource = this.savingsAccountProductTemplate.charges.map((charge: any) => ({...charge, id: charge.chargeId})) || [];
}
}
diff --git a/src/app/savings/savings-account-stepper/savings-account-terms-step/savings-account-terms-step.component.html b/src/app/savings/savings-account-stepper/savings-account-terms-step/savings-account-terms-step.component.html
index 0d8021aa9..04a950ffd 100644
--- a/src/app/savings/savings-account-stepper/savings-account-terms-step/savings-account-terms-step.component.html
+++ b/src/app/savings/savings-account-stepper/savings-account-terms-step/savings-account-terms-step.component.html
@@ -12,6 +12,11 @@
+
+ Currency in multiples of
+
+
+
Nominal Annual Interest Rate
@@ -32,11 +37,6 @@
-
- Currency in multiples of
-
-
-
Interest Posting Period
diff --git a/src/app/savings/savings-account-stepper/savings-account-terms-step/savings-account-terms-step.component.ts b/src/app/savings/savings-account-stepper/savings-account-terms-step/savings-account-terms-step.component.ts
index 6bd57af69..1dc0295fa 100644
--- a/src/app/savings/savings-account-stepper/savings-account-terms-step/savings-account-terms-step.component.ts
+++ b/src/app/savings/savings-account-stepper/savings-account-terms-step/savings-account-terms-step.component.ts
@@ -51,7 +51,20 @@ export class SavingsAccountTermsStepComponent implements OnChanges, OnInit {
'currencyCode': this.savingsAccountProductTemplate.currency.code,
'decimal': this.savingsAccountProductTemplate.currency.decimalPlaces,
'currencyMultiple': this.savingsAccountProductTemplate.currency.inMultiplesOf,
- 'minBalanceForInterestCalculation': this.savingsAccountProductTemplate.minBalanceForInterestCalculation
+ 'minBalanceForInterestCalculation': this.savingsAccountProductTemplate.minBalanceForInterestCalculation,
+ 'nominalAnnualInterestRate': this.savingsAccountProductTemplate.nominalAnnualInterestRate,
+ 'interestCompoundingPeriodType': this.savingsAccountProductTemplate.interestCompoundingPeriodType.id,
+ 'interestPostingPeriodType': this.savingsAccountProductTemplate.interestPostingPeriodType.id,
+ 'interestCalculationType': this.savingsAccountProductTemplate.interestCalculationType.id,
+ 'interestCalculationDaysInYearType': this.savingsAccountProductTemplate.interestCalculationDaysInYearType.id,
+ 'minRequiredOpeningBalance': this.savingsAccountProductTemplate.minRequiredOpeningBalance,
+ 'allowOverdraft': this.savingsAccountProductTemplate.allowOverdraft,
+ 'overdraftLimit': this.savingsAccountProductTemplate.overdraftLimit,
+ 'enforceMinRequiredBalance': this.savingsAccountProductTemplate.enforceMinRequiredBalance,
+ 'minOverdraftForInterestCalculation': this.savingsAccountProductTemplate.minOverdraftForInterestCalculation,
+ 'nominalAnnualInterestRateOverdraft': this.savingsAccountProductTemplate.nominalAnnualInterestRateOverdraft,
+ 'minRequiredBalance': this.savingsAccountProductTemplate.minRequiredBalance,
+ 'withdrawalFeeForTransfers': this.savingsAccountProductTemplate.withdrawalFeeForTransfers
});
this.setOptions();
}
diff --git a/src/app/settings/settings.service.ts b/src/app/settings/settings.service.ts
index a23f5698d..ce64714d6 100644
--- a/src/app/settings/settings.service.ts
+++ b/src/app/settings/settings.service.ts
@@ -18,6 +18,7 @@ export class SettingsService {
public static businessDateConfigName = 'enable_business_date';
public static businessDateType = 'BUSINESS_DATE';
public static cobDateType = 'COB_DATE';
+ maxAllowedDate = new Date(2100, 0, 1);
constructor(private alertService: AlertService,
private dateUtils: Dates) { }
@@ -73,7 +74,7 @@ export class SettingsService {
* Sets server Date config is enabled
* @param {string} enabled
*/
- setBusinessDateConfig(enabled: string) {
+ setBusinessDateConfig(enabled: string) {
localStorage.setItem('mifosXServerBusinessDateEnabled', enabled);
}
@@ -121,21 +122,28 @@ export class SettingsService {
/**
* Returns current Business date server
*/
- get businessDate(): Date {
+ get businessDate(): Date {
return this.dateUtils.convertToDate(localStorage.getItem('mifosXServerDate'), SettingsService.businessDateFormat);
}
/**
* Returns current Business date Config if it's enabled
*/
- get businessDateConfig(): any {
+ get businessDateConfig(): any {
return localStorage.getItem('mifosXServerBusinessDateEnabled');
}
+ /**
+ * Returns max Future date
+ */
+ get maxFutureDate(): Date {
+ return this.maxAllowedDate;
+ }
+
/**
* Validate If the enable_business_date configuration is enabled or disabled.
*/
- validateBusinessDateStatus(configurations: any) {
+ validateBusinessDateStatus(configurations: any) {
configurations.some((config: any) => {
if (config.name === SettingsService.businessDateConfigName) {
return config.enabled;
diff --git a/src/app/system/manage-scheduler-jobs/manage-scheduler-jobs.component.html b/src/app/system/manage-scheduler-jobs/manage-scheduler-jobs.component.html
index de02c3520..23cceb271 100644
--- a/src/app/system/manage-scheduler-jobs/manage-scheduler-jobs.component.html
+++ b/src/app/system/manage-scheduler-jobs/manage-scheduler-jobs.component.html
@@ -50,14 +50,16 @@
| Previous Run |
- {{ job.lastRunHistory.jobRunStartTime }} |
+ {{ job.lastRunHistory.jobRunStartTime }} |
Previous Run Status |
-
-
+
+
+
+
|
@@ -73,7 +75,7 @@
Error Log |
-
+
|
diff --git a/src/app/system/manage-scheduler-jobs/view-history-scheduler-job/view-history-scheduler-job.component.html b/src/app/system/manage-scheduler-jobs/view-history-scheduler-job/view-history-scheduler-job.component.html
index 85574ef56..817ef3bfd 100644
--- a/src/app/system/manage-scheduler-jobs/view-history-scheduler-job/view-history-scheduler-job.component.html
+++ b/src/app/system/manage-scheduler-jobs/view-history-scheduler-job/view-history-scheduler-job.component.html
@@ -17,14 +17,9 @@
{{ jobHistoryData.version }} |
-
- Run Start Time |
- {{ jobHistoryData.jobRunStartTime }} |
-
-
Status |
-
+ |
|
| |