You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For any required fields that have the og-currency-input directive, when the bound model value (e.g. this.transaction.amount) is undefined, the UI shows $0.00 which circumvents the required form validation for that field.
Typically this isn't a problem, because it is unusual to have, for example, a transaction with a zero amount.
The reason it came up is that for a SecurityInvestment transaction (buy/sell), where there is no commission, the UI defaults the commission field to $0.00, but when the transaction JSON is posted to the server, there is validation that checks that amount === price * quantity + commission.
This was failing because it wasn't expecting commission to be undefined.
The text was updated successfully, but these errors were encountered:
For any required fields that have the
og-currency-input
directive, when the bound model value (e.g.this.transaction.amount
) isundefined
, the UI shows $0.00 which circumvents therequired
form validation for that field.Typically this isn't a problem, because it is unusual to have, for example, a transaction with a zero amount.
The reason it came up is that for a
SecurityInvestment
transaction (buy/sell), where there is no commission, the UI defaults the commission field to $0.00, but when the transaction JSON is posted to the server, there is validation that checks thatamount === price * quantity + commission
.This was failing because it wasn't expecting commission to be undefined.
The text was updated successfully, but these errors were encountered: