as a 'same line' comment, e.g.
date description ; comment
account 42
account
the "preceding" comment is not working (at least with 1.14)
public static ParsedLedgerTransaction fromLedgerTransaction(LedgerTransaction tr) {
ParsedLedgerTransaction
result = new ParsedLedgerTransaction();
- result.setTcomment("");
+ result.setTcomment(tr.getComment());
result.setTprecedingcomment("");
ArrayList<ParsedPosting> postings = new ArrayList<>();
}
public static ParsedLedgerTransaction fromLedgerTransaction(LedgerTransaction tr) {
ParsedLedgerTransaction result = new ParsedLedgerTransaction();
- result.setTcomment("");
+ result.setTcomment(tr.getComment());
result.setTprecedingcomment("");
ArrayList<ParsedPosting> postings = new ArrayList<>();
LedgerTransaction tr =
new LedgerTransaction(null, date, viewModel.getDescription(), mProfile);
+ tr.setComment(viewModel.getComment());
LedgerTransactionAccount emptyAmountAccount = null;
float emptyAmountAccountBalance = 0;
for (int i = 0; i < viewModel.getAccountCount(); i++) {