]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/model/LedgerTransaction.java
machinery for loading transaction by profile and ID
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / model / LedgerTransaction.java
index 229fb9d00f827a1202981af7084b72c9382d4b34..fd2a8407dfca79910216bc3191ed692d3661f956 100644 (file)
@@ -70,6 +70,15 @@ public class LedgerTransaction {
     public LedgerTransaction(int id) {
         this(id, (Date) null, null);
     }
+    public LedgerTransaction(int id, String profileUUID) {
+        this.profile = profileUUID;
+        this.id = id;
+        this.date = null;
+        this.description = null;
+        this.accounts = new ArrayList<>();
+        this.dataHash = null;
+        this.dataLoaded = false;
+    }
     public ArrayList<LedgerTransactionAccount> getAccounts() {
         return accounts;
     }