fix: make loan product save when "Enable installment" was clicked and Delinquency removed

If the user deselects the Delinquency, but the "Enable installment" checkbox was ticked, saving failed.

Fixes: WEB-25
This commit is contained in:
Felix van Hove
2025-02-25 11:48:58 +01:00
committed by Adam Saghy
parent 10ca46907e
commit a8bc3f37e9
@@ -679,7 +679,8 @@ export class LoanProductSettingsStepComponent implements OnInit {
clearProperty($event: Event, propertyName: string): void {
if (propertyName === 'delinquencyBucketId') {
this.loanProductSettingsForm.patchValue({
delinquencyBucketId: ''
delinquencyBucketId: '',
enableInstallmentLevelDelinquency: false
});
}
this.loanProductSettingsForm.markAsDirty();