]> git.ktnx.net Git - mobile-ledger.git/commitdiff
more 1.15.1 compatibility - default values for tdate2, tprecedingcomment; add pdate2
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 20 Nov 2019 20:53:15 +0000 (22:53 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 20 Nov 2019 20:53:15 +0000 (22:53 +0200)
app/src/main/java/net/ktnx/mobileledger/json/ParsedLedgerTransaction.java
app/src/main/java/net/ktnx/mobileledger/json/ParsedPosting.java

index 5d3241d2b911123e902cfe902b67e2c8952f13c6..81d76475072dfcd82ca13f92496bc55749d79716 100644 (file)
@@ -30,12 +30,12 @@ import java.util.List;
 @JsonIgnoreProperties(ignoreUnknown = true)
 public class ParsedLedgerTransaction {
     private String tdate;
-    private String tdate2;
+    private String tdate2 = null;
     private String tdescription;
     private String tcomment;
     private String tcode = "";
     private String tstatus = "Unmarked";
-    private String tprecedingcomment;
+    private String tprecedingcomment = "";
     private int tindex;
     private List<ParsedPosting> tpostings;
     private List<List<String>> ttags = new ArrayList<>();
index d52a8ce782a39b99a2aafc3700de01aa7283047b..308f01f4c624caf88d876e8a41c21cb04a64c04f 100644 (file)
@@ -31,6 +31,13 @@ public class ParsedPosting {
     private String paccount;
     private List<ParsedAmount> pamount;
     private String pdate = null;
+    public String getPdate2() {
+        return pdate2;
+    }
+    public void setPdate2(String pdate2) {
+        this.pdate2 = pdate2;
+    }
+    private String pdate2 = null;
     private String ptype = "RegularPosting";
     private String pcomment = "";
     private List<List<String>> ptags = new ArrayList<>();