Skip to content

Commit

Permalink
Add support for comma at TRNAMT.
Browse files Browse the repository at this point in the history
TRNAMT can have comma as said by the OFX specification 2.2, page 93:

Amount: 
	Amounts that do not represent whole numbers (for example, 540.32), must
	include a decimal point or comma to indicate the start of the
	fractional amount.
  • Loading branch information
dhilst committed Jan 1, 2017
1 parent a604e4f commit fa1db10
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -167,7 +167,7 @@ public void set(Object value, Object instance) throws Exception {
}
else if (BigDecimal.class.isAssignableFrom(getAttributeType())) {
if (value != null) {
value = new BigDecimal(value.toString());
value = new BigDecimal(value.toString().replace(",", "."));
}
}

Expand Down

0 comments on commit fa1db10

Please sign in to comment.