r3666 - trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering
Author: tchemit Date: 2012-12-18 01:25:24 +0100 (Tue, 18 Dec 2012) New Revision: 3666 Url: http://chorem.org/projects/lima/repository/revisions/3666 Log: fixes #876: Impossible d'afficher l'?\195?\169cran de lettrage Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java 2012-12-18 00:13:03 UTC (rev 3665) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java 2012-12-18 00:25:24 UTC (rev 3666) @@ -36,6 +36,7 @@ import org.chorem.lima.business.api.FiscalPeriodService; import org.chorem.lima.entity.Account; import org.chorem.lima.entity.Entry; +import org.chorem.lima.entity.FinancialTransaction; import org.chorem.lima.entity.FiscalPeriod; import org.chorem.lima.service.LimaServiceFactory; @@ -310,8 +311,15 @@ List<Date> datesEntree = new ArrayList<Date>(); for (Entry entry : entries){ - datesEntree.add(entry.getFinancialTransaction().getTransactionDate()); - journalEntrees.add(entry.getFinancialTransaction().getEntryBook().getLabel()); + FinancialTransaction financialTransaction = entry.getFinancialTransaction(); + datesEntree.add(financialTransaction.getTransactionDate()); + if (financialTransaction.getEntryBook() == null || + financialTransaction.getEntryBook().getLabel() == null) { + journalEntrees.add(""); + } else { + journalEntrees.add(financialTransaction.getEntryBook().getLabel()); + } + } view.getTableModel().updateEntries(entries, datesEntree, journalEntrees);
participants (1)
-
tchemit@users.chorem.org