From: Damyan Ivanov Date: Wed, 20 Nov 2019 20:53:15 +0000 (+0200) Subject: more 1.15.1 compatibility - default values for tdate2, tprecedingcomment; add pdate2 X-Git-Tag: v0.11.0~48 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=c19f27a41ff96a2203cd27502002c76b84de185c;p=mobile-ledger.git more 1.15.1 compatibility - default values for tdate2, tprecedingcomment; add pdate2 --- diff --git a/app/src/main/java/net/ktnx/mobileledger/json/ParsedLedgerTransaction.java b/app/src/main/java/net/ktnx/mobileledger/json/ParsedLedgerTransaction.java index 5d3241d2..81d76475 100644 --- a/app/src/main/java/net/ktnx/mobileledger/json/ParsedLedgerTransaction.java +++ b/app/src/main/java/net/ktnx/mobileledger/json/ParsedLedgerTransaction.java @@ -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 tpostings; private List> ttags = new ArrayList<>(); diff --git a/app/src/main/java/net/ktnx/mobileledger/json/ParsedPosting.java b/app/src/main/java/net/ktnx/mobileledger/json/ParsedPosting.java index d52a8ce7..308f01f4 100644 --- a/app/src/main/java/net/ktnx/mobileledger/json/ParsedPosting.java +++ b/app/src/main/java/net/ktnx/mobileledger/json/ParsedPosting.java @@ -31,6 +31,13 @@ public class ParsedPosting { private String paccount; private List 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> ptags = new ArrayList<>();