diff --git a/src/app/products/charges/create-charge/create-charge.component.ts b/src/app/products/charges/create-charge/create-charge.component.ts index 9ce52a203..40a62c3e1 100644 --- a/src/app/products/charges/create-charge/create-charge.component.ts +++ b/src/app/products/charges/create-charge/create-charge.component.ts @@ -156,7 +156,6 @@ export class CreateChargeComponent implements OnInit { this.chargeForm.removeControl('chargePaymentMode'); this.chargeForm.removeControl('incomeAccountId'); this.chargeForm.get('penalty').setValue(false); - this.chargeForm.get('penalty').disable(); break; } this.chargeForm.get('chargeCalculationType').reset(); @@ -181,7 +180,6 @@ export class CreateChargeComponent implements OnInit { break; case 9: // Overdue Fee this.chargeForm.get('penalty').setValue(true); - this.chargeForm.get('penalty').disable(); this.chargeForm.addControl('addFeeFrequency', new FormControl(false)); this.chargeForm.get('addFeeFrequency').valueChanges.subscribe((addFeeFrequency) => { if (addFeeFrequency) { @@ -216,7 +214,6 @@ export class CreateChargeComponent implements OnInit { submit() { const chargeFormData = this.chargeForm.value; const locale = this.settingsService.language.code; - const dateFormat = this.settingsService.dateFormat; const prevFeeOnMonthDay: Date = this.chargeForm.value.feeOnMonthDay; const monthDayFormat = 'dd MMM'; if (chargeFormData.feeOnMonthDay instanceof Date) {