Merge pull request #2455 from alberto-art3ch/fix/charges_min_max_gap_values

fix: Charges min and max gap validations and labels
This commit is contained in:
Jose Alberto Hernandez
2025-05-14 22:54:16 -05:00
committed by GitHub
6 changed files with 5380 additions and 2824 deletions
BIN
View File
Binary file not shown.
+5373 -2820
View File
File diff suppressed because it is too large Load Diff
@@ -203,7 +203,7 @@
<input matInput autofocus formControlName="minCap" mifosxValidateOnFocus /> <input matInput autofocus formControlName="minCap" mifosxValidateOnFocus />
<mat-error *ngIf="chargeForm.controls.minCap.hasError('maxValue')"> <mat-error *ngIf="chargeForm.controls.minCap.hasError('maxValue')">
{{ 'errors.validation.msg.loanproduct.maximumGap.not.greater.than.specified.number' | translate }} ({{ {{ 'errors.validation.msg.loanproduct.maximumGap.not.greater.than.specified.number' | translate }} ({{
chargeForm.controls.maxCap.value chargeForm.controls.minCap.value
}}) }})
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>
@@ -115,7 +115,7 @@
<input matInput autofocus formControlName="minCap" mifosxValidateOnFocus /> <input matInput autofocus formControlName="minCap" mifosxValidateOnFocus />
<mat-error *ngIf="chargeForm.controls.minCap.hasError('maxValue')"> <mat-error *ngIf="chargeForm.controls.minCap.hasError('maxValue')">
{{ 'errors.validation.msg.loanproduct.maximumGap.not.greater.than.specified.number' | translate }} ({{ {{ 'errors.validation.msg.loanproduct.maximumGap.not.greater.than.specified.number' | translate }} ({{
chargeForm.controls.maxCap.value chargeForm.controls.minCap.value
}}) }})
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>
@@ -8,6 +8,9 @@ export function maxNumberValueValidator(maxControlName: string): ValidatorFn {
} }
let maxValue = maxControl.value; let maxValue = maxControl.value;
if (maxValue == null) {
return null;
}
if (typeof maxValue === 'undefined') { if (typeof maxValue === 'undefined') {
return null; return null;
} }
+2 -2
View File
@@ -2,8 +2,8 @@
/* tslint:disable */ /* tslint:disable */
export default { export default {
'mifos_x': { 'mifos_x': {
'version': '250508', 'version': '250514',
'hash': '3c6b70ad' 'hash': 'eba99dcd'
}, },
'allow_switching_backend_instance': true 'allow_switching_backend_instance': true
}; };