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
{{ message }}
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.
It appears there is a mismatch between a transaction value and adding money to a savings goal.
When retrieving Transactions, these are retrieved in decimalised pounds (ie 44.32, £44.32).
When calling: /savings-goals/$savingsGoalUid/add-money/$transactionUID, it appears the payload amount is expected in in pence (ie 500, £5).
Simple fix would be to amount = amount.multiply(new BigDecimal(100)) within the addMoneyToSavingsGoal method.
Alternatively a separate AmountInPence could be created to satisfy the requirement.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It appears there is a mismatch between a transaction value and adding money to a savings goal.
When retrieving Transactions, these are retrieved in decimalised pounds (ie 44.32, £44.32).
When calling: /savings-goals/$savingsGoalUid/add-money/$transactionUID, it appears the payload amount is expected in in pence (ie 500, £5).
Simple fix would be to
amount = amount.multiply(new BigDecimal(100))
within theaddMoneyToSavingsGoal
method.Alternatively a separate
AmountInPence
could be created to satisfy the requirement.The text was updated successfully, but these errors were encountered: