Permalink
Browse files

Add support for comma at TRNAMT.

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 fa1db10907ac2488cf75f855f98cd58348ce8a3e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/webcohesion/ofx4j/io/AggregateAttribute.java
@@ -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(",", "."));
}
}

0 comments on commit fa1db10

Please sign in to comment.