branch feature/1231 updated (ad47ca1 -> 33d60db)
This is an automated email from the git hooks/post-receive script. New change to branch feature/1231 in repository lima. See http://git.chorem.org/lima.git discards ad47ca1 fixes #1231 : déplacement débit, crédit et solde. adds bf21713 refs #1199 : ajout de l'export du fichier des écritures comptables adds fbab021 fixes #1228 : correction import comptes. adds 10e2882 Merge branch 'feature/1228' into develop adds a1679da fixes #1119 : changement du layout pour les toolbar possiblement trop large adds f5f01d4 Merge branch 'feature/1119' into develop adds 565f06b fixes #1208 : ajouter le moi en toutes lettres + afficher la période dans la bar de statut adds f60f3ab fixes #1225 : si l'exercice est sur deux années afficher les deux années (ex : "2015 - 2016") adds b557829 refs #1208 : correction de la marge a droite de la balance. adds 5d95df9 refs #1199 : ajout de l'export du fichier des écritures comptables adds 12ce7b8 fixes #1228 : correction import comptes. adds 449120d fixes #1119 : changement du layout pour les toolbar possiblement trop large adds 1c0d6fb fixes #1208 : ajouter le moi en toutes lettres + afficher la période dans la bar de statut adds 99faafa refs #1208 : correction de la marge a droite de la balance. adds 807085c Merge branch 'feature/1208' into develop adds 931a9e6 fixes #1229 : recherche d'un compt sur tout ou partie du code ou de la désignation adds d0e4e99 refs #1229 : suppression d'une variable non utilisé. adds acf87ab Merge branch 'feature/1229' into develop adds 7c15303 fixes #1224 : Ajout la date et le journal de la transaction ainssi qu'un id permettant de distinguer les transactions new 33d60db fixes #1231 : déplacement débit, crédit et solde. This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (ad47ca1) \ N -- N -- N refs/heads/feature/1231 (33d60db) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omits" are not gone; other references still refer to them. Any revisions marked "discards" are gone forever. 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 33d60db0af6c087ad597534c2ed69524a0f6b3c1 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu May 28 17:15:10 2015 +0200 fixes #1231 : déplacement débit, crédit et solde. Summary of changes: .../chorem/lima/business/api/ExportService.java | 9 + .../lima/business/ejb/ExportServiceImpl.java | 48 +- .../lima/business/ejb/ImportServiceImpl.java | 41 +- .../chorem/lima/business/ejb/csv/EntryModel.java | 98 ++- .../business/ejb/csv/FiscalControlExportModel.java | 153 ++++ .../java/org/chorem/lima/entity/EntryTopiaDao.java | 18 + .../lima/business/ImportExportServiceTest.java | 14 +- lima-swing/pom.xml | 1 + .../org/chorem/lima/enums/AccountsChartEnum.java | 9 +- .../AccountCondition/AccountConditionHandler.java | 8 + .../AccountCondition/AccountConditionView.css | 8 +- .../AccountCondition/AccountConditionView.jaxx | 11 +- .../src/main/java/org/chorem/lima/ui/MainView.css | 9 +- .../src/main/java/org/chorem/lima/ui/MainView.jaxx | 2 + .../java/org/chorem/lima/ui/MainViewHandler.java | 9 + .../chorem/lima/ui/account/AccountViewHandler.java | 10 +- .../lima/ui/celleditor/AccountTableCellEditor.java | 70 +- .../chorem/lima/ui/combobox/AccountComboBox.java | 70 ++ .../lima/ui/combobox/AccountComboBoxModel.java | 98 --- .../lima/ui/common/AccountComboBoxModel.java | 54 -- .../ui/common/FinancialPeriodListRenderer.java | 14 +- .../lima/ui/common/FiscalPeriodListRenderer.java | 21 +- .../FinancialTransactionView.css | 13 +- .../FinancialTransactionView.jaxx | 5 +- .../FinancialTransactionViewHandler.java | 22 +- .../FiscalControlExportView.css | 40 + .../FiscalControlExportView.jaxx | 85 +++ .../FiscalControlExportViewHandler.java | 205 +++++ .../chorem/lima/ui/importexport/ImportExport.java | 23 +- .../org/chorem/lima/ui/lettering/LetteringView.css | 4 +- .../chorem/lima/ui/lettering/LetteringView.jaxx | 12 +- .../lima/ui/lettering/LetteringViewHandler.java | 55 +- .../org/chorem/lima/util/WrapToolBarLayout.java | 107 +++ .../resources/i18n/lima-swing_en_GB.properties | 26 + .../resources/i18n/lima-swing_fr_FR.properties | 22 +- .../resources/icons/action-fiscalControlExport.png | Bin 0 -> 1244 bytes lima-swing/src/main/resources/icons/warning.png | Bin 0 -> 965 bytes .../src/main/resources/import/pcg_developed.csv | 831 ++++++++++++++++++++- pom.xml | 2 +- 39 files changed, 1903 insertions(+), 324 deletions(-) create mode 100644 lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FiscalControlExportModel.java create mode 100644 lima-swing/src/main/java/org/chorem/lima/ui/combobox/AccountComboBox.java delete mode 100644 lima-swing/src/main/java/org/chorem/lima/ui/combobox/AccountComboBoxModel.java delete mode 100644 lima-swing/src/main/java/org/chorem/lima/ui/common/AccountComboBoxModel.java create mode 100644 lima-swing/src/main/java/org/chorem/lima/ui/fiscalControlExport/FiscalControlExportView.css create mode 100644 lima-swing/src/main/java/org/chorem/lima/ui/fiscalControlExport/FiscalControlExportView.jaxx create mode 100644 lima-swing/src/main/java/org/chorem/lima/ui/fiscalControlExport/FiscalControlExportViewHandler.java create mode 100644 lima-swing/src/main/java/org/chorem/lima/util/WrapToolBarLayout.java create mode 100644 lima-swing/src/main/resources/icons/action-fiscalControlExport.png create mode 100644 lima-swing/src/main/resources/icons/warning.png -- 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 feature/1231 in repository lima. See http://git.chorem.org/lima.git commit 33d60db0af6c087ad597534c2ed69524a0f6b3c1 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Thu May 28 17:15:10 2015 +0200 fixes #1231 : déplacement débit, crédit et solde. --- .../org/chorem/lima/ui/lettering/LetteringView.css | 34 +++--------------- .../chorem/lima/ui/lettering/LetteringView.jaxx | 42 ++++++++-------------- .../lima/ui/lettering/LetteringViewHandler.java | 21 +++++------ .../resources/i18n/lima-swing_en_GB.properties | 2 +- .../resources/i18n/lima-swing_fr_FR.properties | 4 +-- 5 files changed, 32 insertions(+), 71 deletions(-) diff --git a/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringView.css b/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringView.css index a06a682..7f829da 100644 --- a/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringView.css +++ b/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringView.css @@ -86,36 +86,12 @@ actionIcon : "refresh"; } -#debitLabel { - text : "lima.lettering.selection.debit"; - labelFor : {debitTextField}; -} - -#debitTextField { - enabled : false; - focusable : false; -} - -#creditLabel { - text : "lima.lettering.selection.credit"; - labelFor : {creditTextField}; -} - -#creditTextField { - enabled : false; - focusable : false; -} - -#soldLabel { - text : "lima.lettering.selection.sold"; - labelFor : {soldTextField}; -} - -#soldTextField { - enabled : false; - focusable : false; -} #table { sortable : false; rowHeight : 22; } + +#balanceStatusLabel { + horizontalTextPosition:{JLabel.RIGHT}; + border: {BorderFactory.createEmptyBorder(0, 0, 0, 20)} +} diff --git a/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringView.jaxx b/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringView.jaxx index 97452f4..66e9796 100644 --- a/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringView.jaxx +++ b/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringView.jaxx @@ -93,33 +93,19 @@ onActionPerformed="handler.updateAllEntries()"/> </JToolBar> - <JPanel constraints="BorderLayout.CENTER" - layout="{new BorderLayout()}"> - <JToolBar styleClass="toolbar" - constraints="BorderLayout.PAGE_START"> - <JLabel id="debitLabel"/> - <JFormattedTextField id="debitTextField"/> - - <JToolBar.Separator/> - - <JLabel id="creditLabel"/> - <JTextField id="creditTextField"/> - - <JToolBar.Separator/> - - <JLabel id="soldLabel"/> - <JTextField id="soldTextField"/> - - </JToolBar> - <JScrollPane constraints="BorderLayout.CENTER"> - <LetteringTableModel id="tableModel"/> - <LettringSelectionModel id='letteringSelectionModel' constructorParams='tableModel' - onValueChanged="handler.balanceAndActions()"/> - - <LetteringTable id="table" - constructorParams="handler" - model="{tableModel}" - selectionModel="{letteringSelectionModel}"/> - </JScrollPane> + <JScrollPane constraints="BorderLayout.CENTER"> + <LetteringTableModel id="tableModel"/> + <LettringSelectionModel id='letteringSelectionModel' constructorParams='tableModel' + onValueChanged="handler.balanceAndActions()"/> + + <LetteringTable id="table" + constructorParams="handler" + model="{tableModel}" + selectionModel="{letteringSelectionModel}"/> + </JScrollPane> + + <JPanel constraints="BorderLayout.SOUTH" layout="{new BorderLayout()}"> + <JLabel id='balanceStatusLabel' constraints="BorderLayout.EAST"/> </JPanel> + </JPanel> \ No newline at end of file diff --git a/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java b/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java index e4b5694..de55ae4 100644 --- a/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java +++ b/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java @@ -126,37 +126,38 @@ public class LetteringViewHandler{ editModel.addPropertyChangeListener(LetteringEditModel.PROPERTY_DEBIT, new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { - BigDecimal debit = (BigDecimal) evt.getNewValue(); - String text = BigDecimalToString.format(debit); - view.getDebitTextField().setText(text); + updateSoldStatus(); } }); editModel.addPropertyChangeListener(LetteringEditModel.PROPERTY_CREDIT, new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { - BigDecimal credit = (BigDecimal) evt.getNewValue(); - String text = BigDecimalToString.format(credit); - view.getCreditTextField().setText(text); + updateSoldStatus(); } }); editModel.addPropertyChangeListener(LetteringEditModel.PROPERTY_SOLD, new PropertyChangeListener() { @Override public void propertyChange(PropertyChangeEvent evt) { - BigDecimal sold = (BigDecimal) evt.getNewValue(); - String text = BigDecimalToString.format(sold); - view.getSoldTextField().setText(text); + updateSoldStatus(); } }); initializationComplete = true; - + updateSoldStatus(); updateAllEntries(); } + public void updateSoldStatus() { + view.getBalanceStatusLabel().setText(t("lima.lettering.balanceStatus", + BigDecimalToString.format(editModel.getDebit()), + BigDecimalToString.format(editModel.getCredit()), + BigDecimalToString.format(editModel.getSold()))); + } + protected void initShortCuts() { InputMap inputMap= view.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); diff --git a/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties b/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties index bad056f..1f21268 100644 --- a/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties +++ b/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties @@ -1,4 +1,3 @@ -blima.config.documentReport.generalEntrybook.generalEntryBookEntryModelPath.description= lima.account=Account lima.account.add=Add account (Ctrl+A) lima.account.add.error.InvalidAccountNumber=Invalid account number\:%1$s @@ -431,6 +430,7 @@ lima.lettering.account=Accounts lima.lettering.account.aAll=All lima.lettering.account.back=← lima.lettering.account.next=→ +lima.lettering.balanceStatus= lima.lettering.checkAll=All lima.lettering.checkLettredEntry=Lettered lima.lettering.checkNoLettredEntry=Not lettered diff --git a/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties b/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties index bff15db..10e5866 100644 --- a/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties +++ b/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties @@ -442,6 +442,7 @@ lima.lettering.account=Comptes lima.lettering.account.aAll=TOUS lima.lettering.account.back=← lima.lettering.account.next=→ +lima.lettering.balanceStatus=<html>Débit\: <b>%s</b> - Crédit\: <b>%s</b> - Solde\: <b>%s</b> lima.lettering.checkAll=Toutes lima.lettering.checkLettredEntry=Lettrées lima.lettering.checkNoLettredEntry=Non-lettrées @@ -454,9 +455,6 @@ lima.lettering.period.end=A lima.lettering.refresh=Rafraîchir (F5) lima.lettering.roundAndCreateEntry.error.lockedEntryBook=Impossible de modifier le lettrage d'une entré car le jounal %2$s (%1$s) est cloturé pour la période du %3$te %3$tB %3$tY au %4$te %4$tB %4$tY. lima.lettering.roundAndCreateEntry.error.lockedFinancialPeriod=Impossible de modifier le lettrage d'une entré car la période fiscale du %3$te %3$tB %3$tY au %4$te %4$tB %4$tY est cloturée. -lima.lettering.selection.credit=Crédit -lima.lettering.selection.debit=Débit -lima.lettering.selection.sold=Solde lima.lettering.unLettered=Délettrer (Suppr) lima.lookAndFeel.nimbus.warning=Le look and feel nymbus n'a pas été trouvé lima.message.help.usage=Options (set with --option <key> <value>\: -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm