r3397 - trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction
Author: echatellier Date: 2012-04-25 14:49:56 +0200 (Wed, 25 Apr 2012) New Revision: 3397 Url: http://chorem.org/repositories/revision/lima/3397 Log: Fix transaction entry book modification Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTableModel.java Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTableModel.java =================================================================== --- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTableModel.java 2012-04-25 12:25:38 UTC (rev 3396) +++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialtransaction/FinancialTransactionTableModel.java 2012-04-25 12:49:56 UTC (rev 3397) @@ -247,7 +247,7 @@ boolean editableCell = false; Object currentRow = transactionAndEntries.get(rowIndex); // cells editable for the financialtransaction row, no cells exclude the date - if (currentRow instanceof FinancialTransaction && (columnIndex == 0 /*|| columnIndex == 1*/)) { + if (currentRow instanceof FinancialTransaction && (columnIndex == 0 || columnIndex == 1)) { editableCell = true; } // cells editable for the entry row, all cells exclude the date @@ -309,14 +309,13 @@ //update currentFinancialTransaction.setTransactionDate((Date) value); break; - /* FIXME echatellier 20120413 : ca devrait carrement pas être editable case 1: - if (selectedEntryBook != null) { + if (currentFinancialTransaction.getEntry() != null) { // not authorized to change the value return; } currentFinancialTransaction.setEntryBook((EntryBook) value); - break;*/ + break; } // update transaction
participants (1)
-
echatellier@users.chorem.org