branch develop updated (4956e3b -> a9dcff4)
This is an automated email from the git hooks/post-receive script. New change to branch develop in repository lima. See http://git.chorem.org/lima.git from 4956e3b fixes #1104 revert removed code new a9dcff4 refs #1167 auto-complete description field with account label The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit a9dcff4af7cc52b98a75dc80db13de4a84916b15 Author: dcosse <japbiw74> Date: Wed Feb 18 11:52:49 2015 +0100 refs #1167 auto-complete description field with account label Summary of changes: .../java/org/chorem/lima/ui/financialtransaction/AccountColumn.java | 5 +++++ 1 file changed, 5 insertions(+) -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository lima. See http://git.chorem.org/lima.git commit a9dcff4af7cc52b98a75dc80db13de4a84916b15 Author: dcosse <japbiw74> Date: Wed Feb 18 11:52:49 2015 +0100 refs #1167 auto-complete description field with account label --- .../java/org/chorem/lima/ui/financialtransaction/AccountColumn.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/AccountColumn.java b/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/AccountColumn.java index 765661d..033e116 100644 --- a/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/AccountColumn.java +++ b/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/AccountColumn.java @@ -22,6 +22,7 @@ package org.chorem.lima.ui.financialtransaction; * #L% */ +import org.apache.commons.lang3.StringUtils; import org.chorem.lima.entity.Account; import org.chorem.lima.entity.Entry; import org.chorem.lima.ui.common.AbstractColumn; @@ -57,6 +58,10 @@ public class AccountColumn extends AbstractColumn<FinancialTransactionTableModel if (!tableModel.updateEntry(entry)) { entry.setAccount(previousAccount); update = false; + } else { + if (StringUtils.isBlank(entry.getDescription()) && StringUtils.isNotBlank(account.getLabel())) { + entry.setDescription(account.getLabel()); + } } } return update; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm