]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/model/LedgerTransactionAccount.java
add UI and API support for sending posting (transaction account) comments
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / model / LedgerTransactionAccount.java
index 89d6a83a5d3c935ce98b0dcaa65c8d82fa0b6410..4a83b185a00ac7da9046244fc1efd7b26762753b 100644 (file)
@@ -25,7 +25,7 @@ public class LedgerTransactionAccount {
     private float amount;
     private boolean amountSet = false;
     private String currency;
-
+    private String comment;
     public LedgerTransactionAccount(String accountName, float amount) {
         this(accountName, amount, null);
     }
@@ -35,18 +35,23 @@ public class LedgerTransactionAccount {
         this.amountSet = true;
         this.currency = currency;
     }
-
     public LedgerTransactionAccount(String accountName) {
         this.accountName = accountName;
     }
     public LedgerTransactionAccount(LedgerTransactionAccount origin) {
         // copy constructor
         setAccountName(origin.getAccountName());
+        setComment(origin.getComment());
         if (origin.isAmountSet())
             setAmount(origin.getAmount());
         currency = origin.getCurrency();
     }
-
+    public String getComment() {
+        return comment;
+    }
+    public void setComment(String comment) {
+        this.comment = comment;
+    }
     public String getAccountName() {
         return accountName;
     }