Skip to content

Commit 7bbfa27

Browse files
WEB-959: Prevent zero amount savings transactions
1 parent d3a4a99 commit 7bbfa27

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/app/savings/saving-account-actions/savings-account-transactions/savings-account-transactions.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
[isRequired]="true"
5353
[inputFormControl]="savingAccountTransactionForm.controls.transactionAmount"
5454
[inputLabel]="'Transaction Amount'"
55+
[minVal]="0.001"
5556
>
5657
</mifosx-input-amount>
5758

src/app/savings/saving-account-actions/savings-account-transactions/savings-account-transactions.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,11 @@ export class SavingsAccountTransactionsComponent implements OnInit {
124124
Validators.required
125125
],
126126
transactionAmount: [
127-
0,
128-
Validators.required
127+
'',
128+
[
129+
Validators.required,
130+
Validators.min(0.001)
131+
]
129132
],
130133
paymentTypeId: [
131134
'',

0 commit comments

Comments
 (0)