]> git.ktnx.net Git - mobile-ledger-staging.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/json/v1_15/ParsedPosting.java
remove references to style members from the parser classes
[mobile-ledger-staging.git] / app / src / main / java / net / ktnx / mobileledger / json / v1_15 / ParsedPosting.java
index 7e2a05732c070ad86032f4724e901fac1dfc5298..d773420ef1cf4c7be20263d6a87edce6591e2f6e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright © 2019 Damyan Ivanov.
+ * Copyright © 2020 Damyan Ivanov.
  * This file is part of MoLe.
  * MoLe is free software: you can distribute it and/or modify it
  * under the term of the GNU General Public License as published by
@@ -56,12 +56,8 @@ public class ParsedPosting extends net.ktnx.mobileledger.json.ParsedPosting {
         qty.setDecimalPlaces(2);
         qty.setDecimalMantissa(Math.round(acc.getAmount() * 100));
         amt.setAquantity(qty);
-        ParsedStyle style = new ParsedStyle();
-        style.setAscommodityside('L');
-        style.setAscommodityspaced(false);
-        style.setAsprecision(2);
-        style.setAsdecimalpoint('.');
-        amt.setAstyle(style);
+        if (acc.getCurrency() != null)
+            amt.setAcommodity(acc.getCurrency());
         amounts.add(amt);
         result.setPamount(amounts);
         return result;