X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fmodel%2FLedgerTransactionAccount.java;h=4a83b185a00ac7da9046244fc1efd7b26762753b;hp=89d6a83a5d3c935ce98b0dcaa65c8d82fa0b6410;hb=7ae5407090d9ffe2026775ba9e569014f879b54d;hpb=ac8053d632add604b86e5194098ceeeb50d8410f diff --git a/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransactionAccount.java b/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransactionAccount.java index 89d6a83a..4a83b185 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransactionAccount.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/LedgerTransactionAccount.java @@ -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; }