private boolean amountSet = false;
private String currency;
private String comment;
- public LedgerTransactionAccount(String accountName, float amount) {
- this(accountName, amount, null);
- }
- public LedgerTransactionAccount(String accountName, float amount, String currency) {
+ public LedgerTransactionAccount(String accountName, float amount, String currency,
+ String comment) {
this.setAccountName(accountName);
this.amount = amount;
this.amountSet = true;
this.currency = currency;
+ this.comment = comment;
}
public LedgerTransactionAccount(String accountName) {
this.accountName = accountName;
return amount;
}
-
public void setAmount(float account_amount) {
this.amount = account_amount;
this.amountSet = true;
}
-
public void resetAmount() {
this.amountSet = false;
}
-
public boolean isAmountSet() {
return amountSet;
}
public String getCurrency() {
return currency;
}
+ public void setCurrency(String currency) {
+ this.currency = currency;
+ }
@NonNull
public String toString() {
if (!amountSet)