From c19f27a41ff96a2203cd27502002c76b84de185c Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 20 Nov 2019 22:53:15 +0200 Subject: [PATCH] more 1.15.1 compatibility - default values for tdate2, tprecedingcomment; add pdate2 --- .../ktnx/mobileledger/json/ParsedLedgerTransaction.java | 4 ++-- .../java/net/ktnx/mobileledger/json/ParsedPosting.java | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) 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<>(); -- 2.39.5