Lima-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- 1907 discussions
30 Nov '15
This is an automated email from the git hooks/post-receive script.
New change to branch feature/1287-compute-summary-on-lettering in repository lima.
See http://git.chorem.org/lima.git
was 746e8ce refs #1287 import manquant
This change permanently discards the following revisions:
discards 746e8ce refs #1287 import manquant
discards a200c71 refs #1287 ajout du montant total pour à l'onglet Lettrage
--
To stop receiving notification emails like this one, please contact
chorem.org SCM administrator <admin+scm(a)chorem.org>.
1
0
branch feature/1287-compute-summary-on-lettering updated (a200c71 -> 746e8ce)
by chorem.org scm 30 Nov '15
by chorem.org scm 30 Nov '15
30 Nov '15
This is an automated email from the git hooks/post-receive script.
New change to branch feature/1287-compute-summary-on-lettering in repository lima.
See http://git.chorem.org/lima.git
from a200c71 refs #1287 ajout du montant total pour à l'onglet Lettrage
new 746e8ce refs #1287 import manquant
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 746e8ced15a7685f5301a21b658bcc93c1c31cfe
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Nov 30 13:20:07 2015 +0100
refs #1287 import manquant
Summary of changes:
.../src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java | 1 +
1 file changed, 1 insertion(+)
--
To stop receiving notification emails like this one, please contact
chorem.org SCM administrator <admin+scm(a)chorem.org>.
1
1
branch feature/1287-compute-summary-on-lettering updated (4c283cf -> a200c71)
by chorem.org scm 30 Nov '15
by chorem.org scm 30 Nov '15
30 Nov '15
This is an automated email from the git hooks/post-receive script.
New change to branch feature/1287-compute-summary-on-lettering in repository lima.
See http://git.chorem.org/lima.git
discards 4c283cf refs #1287 ajout du montant total pour à l'onglet Lettrage
adds 0112481 refs #1290 A la création d'une transaction si aucune n'a été créée lors de la même session est qu'une transaction est sélectionnée alors la nouvelle trasaction prend la date de celle-ci
adds d100451 refs #1289 calcul de la colonne Solde dans l'onglet recherche des entrées
adds acefd82 refs #1289refactoring
adds 32aa3f8 refs #1289 Le solde est positif si le solde est débiteur
adds 13b9893 Merge branch 'feature/1289-SearchEntriescomputeSold' into develop
adds 26111c4 refs #1293 "Onglet Saisie des écritures" La saisie dans le champ jour est dirrectement prise en compte
adds 54e25dd refs #1293 Auto selection du compte si un seul compte correspond à la recherche
adds 785fc80 refs #1295 Même objet sélectionné entre la combobox et le model
adds c51843f Merge branch 'feature/1295-improveEditEntryView' into develop
adds 2d2c8a4 refs #1241 ordonne les entrée par date
adds 8ef9bf6 refs #1286 Regrouppement des entrées par pièces comptable dans la saisie d'écriture
adds bce1075 refs #1286 La solution adopter n'est pas idéale, il faudra revoir le model pour ordonnée les entrée d'une transaction voir ref #1207
adds 4bbfd4d Merge branch 'feature/1286-ordered-entries' into develop
adds 636a5ba refs #1242 verifivation que l'on filtre bien sur un compte
adds ae8502c fixes #1243 la sortie du champ date ou le clic sur une autre action entraine bien la prise en compte des dates saisies
adds 2dc6345 refs #1242 Modification pour plus de lisibilité suite à revue de code Kevin
adds 79ebf7d refs #1242 Refactoring pour plus de lisibilité
adds 4d8ac91 refs #1242 correction de merge
adds 7288ae1 Merge branch 'feature/1242-no-account-research-exception' into develop
adds 9fd0c2f refs #1297correction pour ne pas remonter les entitées ayant une date > à celle indiquée dans la période
adds bde8128 refs #1298 corrige NPE dans le cas ou aucune donnée existe
adds e3d95f9 refs #1242 ordre des traductions revu
adds d9b4a7d Merge branch 'feature/1298-FixNPE' into develop
adds 959bbc3 refs #1268 l'interface de saisie d'un plan de TVA est de nouveau fonctionnelle
adds 6b2e99c refs #1268 utilisation de JXTreeTable à la place de VatChartTreeTable
adds 73a9813 refs #1268 déplacement du ListSelectionModel dans le handler
adds b44dada Merge branch 'feature/1268-vat-statement-usable' into develop
adds 635828d refs #1242 correction sur refactoring
adds a0857b1 Mise à jour de la déclaration de licences
adds d5f467a refs #1295 Le tableau de la saisie des écritures n'est pas éditable si la période est cloturé pour le journal sélectionné
adds 4a1b1d5 refs #1158 Ajout de commentaires + désactivation du boutton de création d'une transaction
adds 253998b refs #1158 Sur l'onglet lettrage il n'est pas possible de modifier une selection comportant une entrée vérouillée. Ajout d'une colonne 'clos' indiquant les entrées vérouillées.
adds 9957610 Merge branch 'feature/1158-NotEditableTableForClose' into develop
adds b4b645f refs #1158 : recupération du ClosedPeriodEntryBook et stockage dans un map pour le cache.
adds b119160 import manquant
adds 7cd3ef3 correction suite au merge
adds fd35125 Merge branch 'feature/1158' into develop
adds f0e4f29 refs #1241 gérération des rapport de compte avec Jasper
adds 03e84c6 refs #1241 gérération des rapport de compte avec Jasper
adds 4c16fcb refs #1241 ne pas afficher les lignes ne comportant aucun montant de renseigné
adds e9c8126 refs #1241 modification de l'affichage des infos
adds ce734ff refs #1241 factorisation du code source Jasper, utilisation de style
adds 643e3a5 refs #1241 correction sur nom de police
adds 9afd18d refs #1241 refactoring
adds b019126 refs #1241 refactoring général sur les rapports, renommage variable, utilisation de style dans les rapports
adds 8b18d5e refs #1241 réactivation de l'impression de la TVA, avec mise à jour des données
adds dedb5b9 refs #1241 mise à jour du plan de TVA
adds 9a297ab refs #1268 permet la saisie des informations concernant le trésor public et affichage de ses infos lors de l'export TVA
adds f56fee1 refs #1241 placement correcte des champs dans la fenêtre de saisie de l'identité
adds cfd3f21 refs #1241 correction sur le formulaire concernant le trésor public. Renommage du boutton OK en Valider
adds 797522f refs #1241 pas de changement dans l'interface de configuration du premier lancement
adds 9c2a471 refs #1241 modificaction des écans de 1er configuration afin de prendre en compte les changements sur l'identité.
adds 6c63783 refs #1241 ajout de l'icon de sauvegarde présente sur le 1er écran au 1er lancement de lima
adds 7cc39ee refs #1241 progression sur internationalisation des rapports, ajout de l'entête avec l'identité sur tous les rapports
adds b4373cd refs #1241mise à jour du plan de tva
adds 21cbf77 refs #1241 minor
adds e8e622e refs #1241 internationalisation sur le rapport de compte
adds 5a144b5 refs #1241 internationalisation sur le rapport de compte
adds 887373c refs #1241 ajout possibilité de créer des rapports de balance globale ou générale (le dernier par défaut centralise les comptes 401 avec ses sous comptes idem pour 411)
adds b8a6ceb refs #1241 monté de version je Jasper report
adds 6f487bf refs #1241 refactoring de code
adds 1179c09 refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
adds 4e94d24 refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
adds 0919fa5 refs #1241 Ajout de traductions
adds 7f54c9e refs #1298 corrige la génération de rapport pour les comptes si aucun compte n'existe
adds 5655683 correction suite au merge
adds 3d5a336 Merge branch 'feature/1241-account-report' into develop
new a200c71 refs #1287 ajout du montant total pour à l'onglet Lettrage
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 (4c283cf)
\
N -- N -- N refs/heads/feature/1287-compute-summary-on-lettering (a200c71)
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 a200c71f682c787ac1a4b283163607cd7453e44f
Author: dcosse <cosse(a)codelutin.com>
Date: Wed Sep 9 12:50:14 2015 +0200
refs #1287 ajout du montant total pour à l'onglet Lettrage
Summary of changes:
.../org/chorem/lima/business/ServiceListener.java | 2 +-
.../chorem/lima/business/api/AccountService.java | 6 +
.../api/ClosedPeriodicEntryBookService.java | 3 +
.../chorem/lima/business/api/EntryBookService.java | 6 +
.../business/api/FinancialTransactionService.java | 7 +
.../chorem/lima/business/api/ImportService.java | 11 +
.../chorem/lima/business/api/OptionsService.java | 3 +
.../chorem/lima/business/api/TreasuryService.java | 13 +
.../lima/business/api/VatStatementService.java | 5 +-
...eportService.java => AccountReportService.java} | 14 +-
.../business/api/report/BalanceReportService.java | 19 +-
...on.java => AlreadyAffectedVatBoxException.java} | 14 +-
...lException.java => RequiredFieldException.java} | 14 +-
.../chorem/lima/business/LimaBusinessConfig.java | 22 +-
.../lima/business/ejb/AccountServiceImpl.java | 16 +-
.../ejb/ClosedPeriodicEntryBookServiceImpl.java | 11 +
.../lima/business/ejb/EntryBookServiceImpl.java | 7 +
.../ejb/FinancialTransactionServiceImpl.java | 14 +-
.../lima/business/ejb/ImportServiceImpl.java | 34 +-
.../lima/business/ejb/OptionsServiceImpl.java | 6 +
.../lima/business/ejb/TreasuryServiceImpl.java | 69 +++
.../lima/business/ejb/VatStatementServiceImpl.java | 74 +++-
.../business/ejb/csv/FiscalControlExportModel.java | 2 +-
.../lima/business/ejb/csv/IdentityModel.java | 4 +-
.../ejb/report/AccountReportServiceImpl.java | 125 ++++++
.../ejb/report/BalanceReportServiceImpl.java | 325 ++++++++++----
.../business/ejb/report/CommonsDocumentReport.java | 57 +++
.../report/GeneralEntryBookReportServiceImpl.java | 43 +-
.../ejb/report/LedgerReportServiceImpl.java | 41 +-
.../ProvisionalEntryBookReportServiceImpl.java | 64 +--
.../entity/ClosedPeriodicEntryBookTopiaDao.java | 29 +-
.../java/org/chorem/lima/entity/EntryTopiaDao.java | 43 +-
.../resources/i18n/lima-business_en_GB.properties | 56 +++
.../resources/i18n/lima-business_fr_FR.properties | 56 +++
.../org/chorem/lima/beans/BalanceAccountImpl.java | 23 +-
...ql => V0_8_6_0__1241_create_table_TREASURY.sql} | 52 ++-
.../src/main/xmi/lima-callao-model.properties | 2 +-
lima-callao/src/main/xmi/lima-callao-model.zargo | Bin 57316 -> 61665 bytes
lima-report/pom.xml | 10 +-
.../chorem/lima/report/DocumentReportTypes.java | 1 +
.../java/org/chorem/lima/report/DocumentsEnum.java | 4 +-
.../org/chorem/lima/report/LimaReportConfig.java | 60 ++-
.../lima/report/service/DocumentService.java | 321 ++++++--------
.../chorem/lima/report/service/JasperReports.java | 10 +
.../AccountEntry.jrxml} | 170 ++++----
.../jasperreports/account/DocumentReport.jrxml | 266 ++++++++++++
.../balance/BalanceReportAccountReport.jrxml | 18 +-
.../balance/BalanceSubAccountsReport.jrxml | 54 ++-
.../jasperreports/balance/DocumentReport.jrxml | 387 ++++++++++-------
.../jasperreports/entryBook/DocumentReport.jrxml | 394 ++++++++---------
.../jasperreports/entryBook/EntryBookReport.jrxml | 77 +---
.../entryBook/FinancialPeriodReport.jrxml | 191 ++------
.../entryBook/TransactionReport.jrxml | 222 +++-------
.../generalEntryBook/DocumentReport.jrxml | 478 ++++++++++-----------
.../generalEntryBook/EntryBookPeriodReport.jrxml | 54 +--
.../GeneralEntryBookEntryReport.jrxml | 11 +-
.../generalLedger/DocumentReport.jrxml | 406 +++++++++--------
.../generalLedger/GeneralLedgerEntryReport.jrxml | 204 +++------
.../generalLedger/GeneralLedgerReport.jrxml | 113 ++---
.../src/main/resources/reports/vat_form_fr.pdf | Bin 222623 -> 244238 bytes
.../org/chorem/lima/report/action/ReportTest.java | 2 +-
.../org/chorem/lima/server/HttpServerService.java | 41 +-
lima-swing/src/license/THIRD-PARTY.properties | 1 +
.../main/java/org/chorem/lima/LimaSwingConfig.java | 1 +
.../chorem/lima/enums/VatStatementsChartEnum.java | 5 +-
.../AccountCondition/AccountConditionHandler.java | 6 +-
.../ui/Filter/dateCondition/DateConditionView.jaxx | 2 +-
.../DateIntervalConditionView.jaxx | 7 +-
.../java/org/chorem/lima/ui/MainViewHandler.java | 13 +-
.../chorem/lima/ui/account/AccountViewHandler.java | 3 +-
.../lima/ui/celleditor/AccountTableCellEditor.java | 28 +-
.../lima/ui/celleditor/DayTableCellEditor.java | 30 +-
.../lima/ui/combobox/EntryBookComboBoxModel.java | 4 +-
.../ui/combobox/FiscalPeriodComboBoxModel.java | 4 +-
.../ui/common/FinancialTransactionTableModel.java | 111 ++++-
.../lima/ui/entrybook/EntryBookViewHandler.java | 8 +-
.../ui/financialtransaction/AccountColumn.java | 48 ++-
.../ui/financialtransaction/BalanceColumn.java | 35 +-
.../lima/ui/financialtransaction/DayColumn.java | 6 +-
.../FinancialTransactionView.css | 15 +-
.../FinancialTransactionView.jaxx | 2 +-
.../FinancialTransactionViewHandler.java | 95 +++-
.../FinancialTransactionSearchTableModel.java | 12 +-
.../FiscalControlExportViewHandler.java | 2 +-
.../ui/fiscalperiod/FiscalPeriodViewHandler.java | 4 +-
.../java/org/chorem/lima/ui/home/AccountsPane.java | 6 +-
.../org/chorem/lima/ui/home/EntryBooksPane.java | 8 +-
.../lima/ui/home/FinancialTransactionsPane.java | 6 +-
.../org/chorem/lima/ui/home/FiscalYearsPane.java | 10 +-
.../org/chorem/lima/ui/identity/IdentityForm.css | 161 +++++--
.../org/chorem/lima/ui/identity/IdentityForm.jaxx | 281 +++++++-----
.../chorem/lima/ui/identity/IdentityHandler.java | 45 +-
.../chorem/lima/ui/importexport/ImportExport.java | 8 +
.../lima/ui/lettering/LetteringEditModel.java | 67 +--
...tionModel.java => LetteringSelectionModel.java} | 31 +-
.../lima/ui/lettering/LetteringTableModel.java | 38 ++
.../org/chorem/lima/ui/lettering/LetteringView.css | 6 +-
.../chorem/lima/ui/lettering/LetteringView.jaxx | 2 +-
.../lima/ui/lettering/LetteringViewHandler.java | 90 ++--
.../BackupPanel.css} | 10 +-
...{CreateEntryBookPanel.jaxx => BackupPanel.jaxx} | 8 +-
.../{OpeningView.css => BackupPanelHandler.java} | 42 +-
.../chorem/lima/ui/opening/CreateIdentityPanel.css | 10 +-
.../lima/ui/opening/CreateIdentityPanel.jaxx | 64 ++-
.../ui/opening/CreateIdentityPanelHandler.java | 1 -
.../org/chorem/lima/ui/opening/OpeningView.css | 11 +-
.../org/chorem/lima/ui/opening/OpeningView.jaxx | 28 +-
.../chorem/lima/ui/opening/OpeningViewHandler.java | 195 ++++++---
.../lima/ui/vatchart/VatChartMovementForm.css | 2 +
.../lima/ui/vatchart/VatChartMovementForm.jaxx | 19 +-
.../chorem/lima/ui/vatchart/VatChartTreeTable.java | 134 ------
.../lima/ui/vatchart/VatChartTreeTableModel.java | 226 ----------
.../org/chorem/lima/ui/vatchart/VatChartView.jaxx | 26 +-
.../lima/ui/vatchart/VatChartViewHandler.java | 401 ++++++++++-------
.../chorem/lima/ui/vatchart/VatChartViewModel.java | 191 ++++++++
.../resources/i18n/lima-swing_en_GB.properties | 66 ++-
.../resources/i18n/lima-swing_fr_FR.properties | 51 ++-
.../icons/action-financialPeriod-close.png | Bin 715 -> 452 bytes
lima-swing/src/main/resources/icons/backup.png | Bin 0 -> 4803 bytes
lima-swing/src/main/resources/import/vat_base.csv | 114 ++---
.../src/main/resources/import/vat_default.csv | 111 ++---
.../src/main/resources/import/vat_developed.csv | 56 ---
.../src/main/resources/import/vat_shortened.csv | 56 ---
lima-swing/src/main/resources/log4j.properties | 2 +-
pom.xml | 10 +-
125 files changed, 4458 insertions(+), 3363 deletions(-)
create mode 100644 lima-business-api/src/main/java/org/chorem/lima/business/api/TreasuryService.java
copy lima-business-api/src/main/java/org/chorem/lima/business/api/report/{BalanceReportService.java => AccountReportService.java} (63%)
copy lima-business-api/src/main/java/org/chorem/lima/business/exceptions/{NotAllowedLabelException.java => AlreadyAffectedVatBoxException.java} (74%)
copy lima-business-api/src/main/java/org/chorem/lima/business/exceptions/{NotAllowedLabelException.java => RequiredFieldException.java} (74%)
create mode 100644 lima-business/src/main/java/org/chorem/lima/business/ejb/TreasuryServiceImpl.java
create mode 100644 lima-business/src/main/java/org/chorem/lima/business/ejb/report/AccountReportServiceImpl.java
create mode 100644 lima-business/src/main/java/org/chorem/lima/business/ejb/report/CommonsDocumentReport.java
copy lima-callao/src/main/resources/db/migration/{V0_6_0_0__migration2.sql => V0_8_6_0__1241_create_table_TREASURY.sql} (50%)
copy lima-report/src/main/resources/jasperreports/{generalLedger/GeneralLedgerEntryReport.jrxml => account/AccountEntry.jrxml} (69%)
create mode 100644 lima-report/src/main/resources/jasperreports/account/DocumentReport.jrxml
copy lima-business-api/src/main/java/org/chorem/lima/LimaTechnicalException.java => lima-swing/src/main/java/org/chorem/lima/ui/celleditor/DayTableCellEditor.java (64%)
rename lima-swing/src/main/java/org/chorem/lima/ui/lettering/{LettringSelectionModel.java => LetteringSelectionModel.java} (82%)
copy lima-swing/src/main/java/org/chorem/lima/ui/{fiscalperiod/RetainedEarningsWait.css => opening/BackupPanel.css} (88%)
copy lima-swing/src/main/java/org/chorem/lima/ui/opening/{CreateEntryBookPanel.jaxx => BackupPanel.jaxx} (80%)
copy lima-swing/src/main/java/org/chorem/lima/ui/opening/{OpeningView.css => BackupPanelHandler.java} (61%)
delete mode 100644 lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartTreeTable.java
delete mode 100644 lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartTreeTableModel.java
create mode 100644 lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartViewModel.java
create mode 100644 lima-swing/src/main/resources/icons/backup.png
delete mode 100644 lima-swing/src/main/resources/import/vat_developed.csv
delete mode 100644 lima-swing/src/main/resources/import/vat_shortened.csv
--
To stop receiving notification emails like this one, please contact
chorem.org SCM administrator <admin+scm(a)chorem.org>.
1
1
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 fd35125 Merge branch 'feature/1158' into develop
new f0e4f29 refs #1241 gérération des rapport de compte avec Jasper
new 03e84c6 refs #1241 gérération des rapport de compte avec Jasper
new 4c16fcb refs #1241 ne pas afficher les lignes ne comportant aucun montant de renseigné
new e9c8126 refs #1241 modification de l'affichage des infos
new ce734ff refs #1241 factorisation du code source Jasper, utilisation de style
new 643e3a5 refs #1241 correction sur nom de police
new 9afd18d refs #1241 refactoring
new b019126 refs #1241 refactoring général sur les rapports, renommage variable, utilisation de style dans les rapports
new 8b18d5e refs #1241 réactivation de l'impression de la TVA, avec mise à jour des données
new dedb5b9 refs #1241 mise à jour du plan de TVA
new 9a297ab refs #1268 permet la saisie des informations concernant le trésor public et affichage de ses infos lors de l'export TVA
new f56fee1 refs #1241 placement correcte des champs dans la fenêtre de saisie de l'identité
new cfd3f21 refs #1241 correction sur le formulaire concernant le trésor public. Renommage du boutton OK en Valider
new 797522f refs #1241 pas de changement dans l'interface de configuration du premier lancement
new 9c2a471 refs #1241 modificaction des écans de 1er configuration afin de prendre en compte les changements sur l'identité.
new 6c63783 refs #1241 ajout de l'icon de sauvegarde présente sur le 1er écran au 1er lancement de lima
new 7cc39ee refs #1241 progression sur internationalisation des rapports, ajout de l'entête avec l'identité sur tous les rapports
new b4373cd refs #1241mise à jour du plan de tva
new 21cbf77 refs #1241 minor
new e8e622e refs #1241 internationalisation sur le rapport de compte
new 5a144b5 refs #1241 internationalisation sur le rapport de compte
new 887373c refs #1241 ajout possibilité de créer des rapports de balance globale ou générale (le dernier par défaut centralise les comptes 401 avec ses sous comptes idem pour 411)
new b8a6ceb refs #1241 monté de version je Jasper report
new 6f487bf refs #1241 refactoring de code
new 1179c09 refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
new 4e94d24 refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
new 0919fa5 refs #1241 Ajout de traductions
new 7f54c9e refs #1298 corrige la génération de rapport pour les comptes si aucun compte n'existe
new 5655683 correction suite au merge
new 3d5a336 Merge branch 'feature/1241-account-report' into develop
The 30 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 3d5a3364505d0efad7a7180492a7a9e750d924c7
Merge: fd35125 5655683
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Nov 30 11:45:12 2015 +0100
Merge branch 'feature/1241-account-report' into develop
commit 565568322a6302b26e45ada947e8e93aa5075513
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Nov 30 11:43:46 2015 +0100
correction suite au merge
commit 7f54c9e7f90cea3d576e8d2c44c05a69f89b7b0c
Author: dcosse <cosse(a)codelutin.com>
Date: Thu Sep 24 15:00:36 2015 +0200
refs #1298 corrige la génération de rapport pour les comptes si aucun compte n'existe
commit 0919fa58b571e38dedb5d0b604f2e5fa44e5dc1f
Author: dcosse <cosse(a)codelutin.com>
Date: Fri Sep 11 16:44:30 2015 +0200
refs #1241 Ajout de traductions
commit 4e94d244f52771c681529ceda1a781cb914ec610
Author: dcosse <cosse(a)codelutin.com>
Date: Fri Sep 11 15:35:19 2015 +0200
refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
commit 1179c093d61c0c745d73f11a86f658066f078421
Author: dcosse <cosse(a)codelutin.com>
Date: Fri Sep 11 15:34:40 2015 +0200
refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
commit 6f487bfcfab4a1c2775746c314e14b9387992465
Author: dcosse <cosse(a)codelutin.com>
Date: Wed Sep 9 15:21:41 2015 +0200
refs #1241 refactoring de code
commit b8a6ceb2670186b6b079c3b7ed4b8140dedec6ba
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Sep 7 14:27:50 2015 +0200
refs #1241 monté de version je Jasper report
commit 887373c77477f6f7919b0c05009b679ca385de4d
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Sep 7 14:27:30 2015 +0200
refs #1241 ajout possibilité de créer des rapports de balance globale ou générale (le dernier par défaut centralise les comptes 401 avec ses sous comptes idem pour 411)
commit 5a144b57c3704298550de84c67656d0da796ab55
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Sep 7 14:25:41 2015 +0200
refs #1241 internationalisation sur le rapport de compte
commit e8e622ed5486d9932ddd4fbc6bf5fd3d72e1c08c
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Sep 7 14:25:14 2015 +0200
refs #1241 internationalisation sur le rapport de compte
commit 21cbf7748f6e2fedbd3a0f22e8e8971258a3fa64
Author: dcosse <cosse(a)codelutin.com>
Date: Wed Sep 2 15:14:52 2015 +0200
refs #1241 minor
commit b4373cd69ed0adc9b183349ad0a7577386e3a687
Author: dcosse <cosse(a)codelutin.com>
Date: Wed Sep 2 15:13:36 2015 +0200
refs #1241mise à jour du plan de tva
commit 7cc39ee6473b0d5c64fca2ecbeb0ccf706b828a0
Author: dcosse <cosse(a)codelutin.com>
Date: Thu Jul 30 17:10:33 2015 +0200
refs #1241 progression sur internationalisation des rapports, ajout de l'entête avec l'identité sur tous les rapports
commit 6c63783fdab3a94f352d996d8cbf3965385372a3
Author: dcosse <cosse(a)codelutin.com>
Date: Tue Jul 28 14:48:02 2015 +0200
refs #1241 ajout de l'icon de sauvegarde présente sur le 1er écran au 1er lancement de lima
commit 9c2a4711664117acab90fef3eff32bca36d1d76b
Author: dcosse <cosse(a)codelutin.com>
Date: Tue Jul 28 14:42:15 2015 +0200
refs #1241 modificaction des écans de 1er configuration afin de prendre en compte les changements sur l'identité.
commit 797522fb4be6b4621d5e239c17e4a937dab1ebce
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Jul 27 11:24:55 2015 +0200
refs #1241 pas de changement dans l'interface de configuration du premier lancement
commit cfd3f21f337b317721a4c5a783c1d7edfd0a4d82
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Jul 27 11:15:46 2015 +0200
refs #1241 correction sur le formulaire concernant le trésor public. Renommage du boutton OK en Valider
commit f56fee1b2f0b1e6c4f68e4a2f3bde6399ed40c1f
Author: dcosse <cosse(a)codelutin.com>
Date: Fri Jul 24 18:29:55 2015 +0200
refs #1241 placement correcte des champs dans la fenêtre de saisie de l'identité
commit 9a297abd96f72ce21857cec80d89618097081050
Author: dcosse <cosse(a)codelutin.com>
Date: Thu Jul 23 18:47:02 2015 +0200
refs #1268 permet la saisie des informations concernant le trésor public et affichage de ses infos lors de l'export TVA
commit dedb5b9517d25302a35dc92a8be287b3596dd678
Author: dcosse <cosse(a)codelutin.com>
Date: Wed Jul 22 10:18:41 2015 +0200
refs #1241 mise à jour du plan de TVA
commit 8b18d5e8b4dc9168960b1f7d4062cadd11386ebf
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Jul 20 09:53:04 2015 +0200
refs #1241 réactivation de l'impression de la TVA, avec mise à jour des données
commit b01912625c723f6e6274b5453fc1fe6b0f708469
Author: dcosse <cosse(a)codelutin.com>
Date: Tue Jul 7 16:41:55 2015 +0200
refs #1241 refactoring général sur les rapports, renommage variable, utilisation de style dans les rapports
commit 9afd18d63faa9b966fc50beda3e2573cc7fd47b3
Author: dcosse <cosse(a)codelutin.com>
Date: Fri Jul 3 18:24:09 2015 +0200
refs #1241 refactoring
commit 643e3a559e055debe3110b43c172ba111342d10b
Author: dcosse <cosse(a)codelutin.com>
Date: Thu Jul 2 15:08:14 2015 +0200
refs #1241 correction sur nom de police
commit ce734ffebd6f09260dd5f220a56d109ba17ef245
Author: dcosse <cosse(a)codelutin.com>
Date: Wed Jul 1 17:42:23 2015 +0200
refs #1241 factorisation du code source Jasper, utilisation de style
commit e9c81264aac8c378b8df4146415b17e623c6d065
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Jun 29 12:05:27 2015 +0200
refs #1241 modification de l'affichage des infos
commit 4c16fcbfa4fd587e9a5cbfcce97a5ece73ed0864
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Jun 29 10:14:15 2015 +0200
refs #1241 ne pas afficher les lignes ne comportant aucun montant de renseigné
commit 03e84c68bbffd4caeefa3c9d4dbd43721789d942
Author: dcosse <cosse(a)codelutin.com>
Date: Sat Jun 27 00:53:48 2015 +0200
refs #1241 gérération des rapport de compte avec Jasper
commit f0e4f29b522a5df7483ca49cc5e1a278f290dbd9
Author: dcosse <cosse(a)codelutin.com>
Date: Sat Jun 27 00:52:55 2015 +0200
refs #1241 gérération des rapport de compte avec Jasper
Summary of changes:
.../chorem/lima/business/api/AccountService.java | 6 +
.../chorem/lima/business/api/EntryBookService.java | 6 +
.../chorem/lima/business/api/ImportService.java | 11 +
.../chorem/lima/business/api/OptionsService.java | 3 +
.../chorem/lima/business/api/TreasuryService.java | 13 +
...eportService.java => AccountReportService.java} | 14 +-
.../business/api/report/BalanceReportService.java | 19 +-
.../chorem/lima/business/LimaBusinessConfig.java | 22 +-
.../lima/business/ejb/AccountServiceImpl.java | 7 +
.../lima/business/ejb/EntryBookServiceImpl.java | 7 +
.../lima/business/ejb/ImportServiceImpl.java | 17 +-
.../lima/business/ejb/OptionsServiceImpl.java | 6 +
.../lima/business/ejb/TreasuryServiceImpl.java | 69 +++
.../business/ejb/csv/FiscalControlExportModel.java | 2 +-
.../lima/business/ejb/csv/IdentityModel.java | 4 +-
.../ejb/report/AccountReportServiceImpl.java | 125 ++++++
.../ejb/report/BalanceReportServiceImpl.java | 325 ++++++++++----
.../business/ejb/report/CommonsDocumentReport.java | 57 +++
.../report/GeneralEntryBookReportServiceImpl.java | 43 +-
.../ejb/report/LedgerReportServiceImpl.java | 41 +-
.../ProvisionalEntryBookReportServiceImpl.java | 64 +--
.../resources/i18n/lima-business_en_GB.properties | 56 +++
.../resources/i18n/lima-business_fr_FR.properties | 56 +++
.../org/chorem/lima/beans/BalanceAccountImpl.java | 23 +-
...ql => V0_8_6_0__1241_create_table_TREASURY.sql} | 52 ++-
.../src/main/xmi/lima-callao-model.properties | 2 +-
lima-callao/src/main/xmi/lima-callao-model.zargo | Bin 57316 -> 61665 bytes
lima-report/pom.xml | 10 +-
.../chorem/lima/report/DocumentReportTypes.java | 1 +
.../java/org/chorem/lima/report/DocumentsEnum.java | 4 +-
.../org/chorem/lima/report/LimaReportConfig.java | 60 ++-
.../lima/report/service/DocumentService.java | 321 ++++++--------
.../chorem/lima/report/service/JasperReports.java | 10 +
.../AccountEntry.jrxml} | 170 ++++----
.../jasperreports/account/DocumentReport.jrxml | 266 ++++++++++++
.../balance/BalanceReportAccountReport.jrxml | 18 +-
.../balance/BalanceSubAccountsReport.jrxml | 54 ++-
.../jasperreports/balance/DocumentReport.jrxml | 387 ++++++++++-------
.../jasperreports/entryBook/DocumentReport.jrxml | 394 ++++++++---------
.../jasperreports/entryBook/EntryBookReport.jrxml | 77 +---
.../entryBook/FinancialPeriodReport.jrxml | 191 ++------
.../entryBook/TransactionReport.jrxml | 222 +++-------
.../generalEntryBook/DocumentReport.jrxml | 478 ++++++++++-----------
.../generalEntryBook/EntryBookPeriodReport.jrxml | 54 +--
.../GeneralEntryBookEntryReport.jrxml | 11 +-
.../generalLedger/DocumentReport.jrxml | 406 +++++++++--------
.../generalLedger/GeneralLedgerEntryReport.jrxml | 204 +++------
.../generalLedger/GeneralLedgerReport.jrxml | 113 ++---
.../src/main/resources/reports/vat_form_fr.pdf | Bin 222623 -> 244238 bytes
.../org/chorem/lima/report/action/ReportTest.java | 2 +-
.../org/chorem/lima/server/HttpServerService.java | 41 +-
.../main/java/org/chorem/lima/LimaSwingConfig.java | 1 +
.../java/org/chorem/lima/ui/MainViewHandler.java | 13 +-
.../org/chorem/lima/ui/identity/IdentityForm.css | 161 +++++--
.../org/chorem/lima/ui/identity/IdentityForm.jaxx | 281 +++++++-----
.../chorem/lima/ui/identity/IdentityHandler.java | 45 +-
.../chorem/lima/ui/importexport/ImportExport.java | 8 +
.../BackupPanel.css} | 10 +-
...{CreateEntryBookPanel.jaxx => BackupPanel.jaxx} | 8 +-
.../{OpeningView.css => BackupPanelHandler.java} | 42 +-
.../chorem/lima/ui/opening/CreateIdentityPanel.css | 10 +-
.../lima/ui/opening/CreateIdentityPanel.jaxx | 64 ++-
.../ui/opening/CreateIdentityPanelHandler.java | 1 -
.../org/chorem/lima/ui/opening/OpeningView.css | 11 +-
.../org/chorem/lima/ui/opening/OpeningView.jaxx | 28 +-
.../chorem/lima/ui/opening/OpeningViewHandler.java | 164 +++++--
.../resources/i18n/lima-swing_en_GB.properties | 58 ++-
.../resources/i18n/lima-swing_fr_FR.properties | 39 +-
lima-swing/src/main/resources/icons/backup.png | Bin 0 -> 4803 bytes
lima-swing/src/main/resources/import/vat_base.csv | 114 ++---
.../src/main/resources/import/vat_default.csv | 111 ++---
pom.xml | 8 +-
72 files changed, 3315 insertions(+), 2406 deletions(-)
create mode 100644 lima-business-api/src/main/java/org/chorem/lima/business/api/TreasuryService.java
copy lima-business-api/src/main/java/org/chorem/lima/business/api/report/{BalanceReportService.java => AccountReportService.java} (63%)
create mode 100644 lima-business/src/main/java/org/chorem/lima/business/ejb/TreasuryServiceImpl.java
create mode 100644 lima-business/src/main/java/org/chorem/lima/business/ejb/report/AccountReportServiceImpl.java
create mode 100644 lima-business/src/main/java/org/chorem/lima/business/ejb/report/CommonsDocumentReport.java
copy lima-callao/src/main/resources/db/migration/{V0_6_0_0__migration2.sql => V0_8_6_0__1241_create_table_TREASURY.sql} (50%)
copy lima-report/src/main/resources/jasperreports/{generalLedger/GeneralLedgerEntryReport.jrxml => account/AccountEntry.jrxml} (69%)
create mode 100644 lima-report/src/main/resources/jasperreports/account/DocumentReport.jrxml
copy lima-swing/src/main/java/org/chorem/lima/ui/{fiscalperiod/RetainedEarningsWait.css => opening/BackupPanel.css} (88%)
copy lima-swing/src/main/java/org/chorem/lima/ui/opening/{CreateEntryBookPanel.jaxx => BackupPanel.jaxx} (80%)
copy lima-swing/src/main/java/org/chorem/lima/ui/opening/{OpeningView.css => BackupPanelHandler.java} (61%)
create mode 100644 lima-swing/src/main/resources/icons/backup.png
--
To stop receiving notification emails like this one, please contact
chorem.org SCM administrator <admin+scm(a)chorem.org>.
1
30
This is an automated email from the git hooks/post-receive script.
New change to branch feature/1241-account-report in repository lima.
See http://git.chorem.org/lima.git
was 5655683 correction suite au merge
This change permanently discards the following revisions:
discards 5655683 correction suite au merge
discards 7f54c9e refs #1298 corrige la génération de rapport pour les comptes si aucun compte n'existe
discards 0919fa5 refs #1241 Ajout de traductions
discards 4e94d24 refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
discards 1179c09 refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
discards 6f487bf refs #1241 refactoring de code
discards b8a6ceb refs #1241 monté de version je Jasper report
discards 887373c refs #1241 ajout possibilité de créer des rapports de balance globale ou générale (le dernier par défaut centralise les comptes 401 avec ses sous comptes idem pour 411)
discards 5a144b5 refs #1241 internationalisation sur le rapport de compte
discards e8e622e refs #1241 internationalisation sur le rapport de compte
discards 21cbf77 refs #1241 minor
discards b4373cd refs #1241mise à jour du plan de tva
discards 7cc39ee refs #1241 progression sur internationalisation des rapports, ajout de l'entête avec l'identité sur tous les rapports
discards 6c63783 refs #1241 ajout de l'icon de sauvegarde présente sur le 1er écran au 1er lancement de lima
discards 9c2a471 refs #1241 modificaction des écans de 1er configuration afin de prendre en compte les changements sur l'identité.
discards 797522f refs #1241 pas de changement dans l'interface de configuration du premier lancement
discards cfd3f21 refs #1241 correction sur le formulaire concernant le trésor public. Renommage du boutton OK en Valider
discards f56fee1 refs #1241 placement correcte des champs dans la fenêtre de saisie de l'identité
discards 9a297ab refs #1268 permet la saisie des informations concernant le trésor public et affichage de ses infos lors de l'export TVA
discards dedb5b9 refs #1241 mise à jour du plan de TVA
discards 8b18d5e refs #1241 réactivation de l'impression de la TVA, avec mise à jour des données
discards b019126 refs #1241 refactoring général sur les rapports, renommage variable, utilisation de style dans les rapports
discards 9afd18d refs #1241 refactoring
discards 643e3a5 refs #1241 correction sur nom de police
discards ce734ff refs #1241 factorisation du code source Jasper, utilisation de style
discards e9c8126 refs #1241 modification de l'affichage des infos
discards 4c16fcb refs #1241 ne pas afficher les lignes ne comportant aucun montant de renseigné
discards 03e84c6 refs #1241 gérération des rapport de compte avec Jasper
discards f0e4f29 refs #1241 gérération des rapport de compte avec Jasper
--
To stop receiving notification emails like this one, please contact
chorem.org SCM administrator <admin+scm(a)chorem.org>.
1
0
30 Nov '15
This is an automated email from the git hooks/post-receive script.
New change to branch feature/1241-account-report in repository lima.
See http://git.chorem.org/lima.git
from 7f54c9e refs #1298 corrige la génération de rapport pour les comptes si aucun compte n'existe
new 5655683 correction suite au merge
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 565568322a6302b26e45ada947e8e93aa5075513
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Nov 30 11:43:46 2015 +0100
correction suite au merge
Summary of changes:
.../chorem/lima/ui/opening/OpeningViewHandler.java | 29 ++++++----------------
1 file changed, 7 insertions(+), 22 deletions(-)
--
To stop receiving notification emails like this one, please contact
chorem.org SCM administrator <admin+scm(a)chorem.org>.
1
1
30 Nov '15
This is an automated email from the git hooks/post-receive script.
New change to branch feature/1241-account-report in repository lima.
See http://git.chorem.org/lima.git
discards 4d8c038 refs #1298 corrige la génération de rapport pour les comptes si aucun compte n'existe
discards d720088 refs #1241 Ajout de traductions
discards cc97996 refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
discards a6dc46e refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
discards 40e00d3 refs #1241 refactoring de code
discards f050c53 refs #1241 monté de version je Jasper report
discards 8bbd193 refs #1241 ajout possibilité de créer des rapports de balance globale ou générale (le dernier par défaut centralise les comptes 401 avec ses sous comptes idem pour 411)
discards 020a06a refs #1241 internationalisation sur le rapport de compte
discards ebb41e3 refs #1241 internationalisation sur le rapport de compte
discards 4f2401d refs #1241 minor
discards fba47bc refs #1241mise à jour du plan de tva
discards 395e868 refs #1241 progression sur internationalisation des rapports, ajout de l'entête avec l'identité sur tous les rapports
discards 5f895d0 refs #1241 ajout de l'icon de sauvegarde présente sur le 1er écran au 1er lancement de lima
discards 4a69da5 refs #1241 modificaction des écans de 1er configuration afin de prendre en compte les changements sur l'identité.
discards a425ed4 refs #1241 pas de changement dans l'interface de configuration du premier lancement
discards fe905c0 refs #1241 correction sur le formulaire concernant le trésor public. Renommage du boutton OK en Valider
discards 72f2b43 refs #1241 placement correcte des champs dans la fenêtre de saisie de l'identité
discards 188aba6 refs #1268 permet la saisie des informations concernant le trésor public et affichage de ses infos lors de l'export TVA
discards 6a11e19 refs #1241 mise à jour du plan de TVA
discards 96ac3b6 refs #1241 réactivation de l'impression de la TVA, avec mise à jour des données
discards 36b2f8b refs #1241 refactoring général sur les rapports, renommage variable, utilisation de style dans les rapports
discards 87a14e5 refs #1241 refactoring
discards 0a807d2 refs #1241 correction sur nom de police
discards 8238eb1 refs #1241 factorisation du code source Jasper, utilisation de style
discards 901a044 refs #1241 modification de l'affichage des infos
discards c93c0d5 refs #1241 ne pas afficher les lignes ne comportant aucun montant de renseigné
discards 92fe79e refs #1241 gérération des rapport de compte avec Jasper
discards 84f9f52 refs #1241 gérération des rapport de compte avec Jasper
adds 34f7074 refs #1240 ajout de controles
adds 0112481 refs #1290 A la création d'une transaction si aucune n'a été créée lors de la même session est qu'une transaction est sélectionnée alors la nouvelle trasaction prend la date de celle-ci
adds d100451 refs #1289 calcul de la colonne Solde dans l'onglet recherche des entrées
adds acefd82 refs #1289refactoring
adds 32aa3f8 refs #1289 Le solde est positif si le solde est débiteur
adds 13b9893 Merge branch 'feature/1289-SearchEntriescomputeSold' into develop
adds 26111c4 refs #1293 "Onglet Saisie des écritures" La saisie dans le champ jour est dirrectement prise en compte
adds 54e25dd refs #1293 Auto selection du compte si un seul compte correspond à la recherche
adds 785fc80 refs #1295 Même objet sélectionné entre la combobox et le model
adds c51843f Merge branch 'feature/1295-improveEditEntryView' into develop
adds 2d2c8a4 refs #1241 ordonne les entrée par date
adds 8ef9bf6 refs #1286 Regrouppement des entrées par pièces comptable dans la saisie d'écriture
adds bce1075 refs #1286 La solution adopter n'est pas idéale, il faudra revoir le model pour ordonnée les entrée d'une transaction voir ref #1207
adds 4bbfd4d Merge branch 'feature/1286-ordered-entries' into develop
adds 636a5ba refs #1242 verifivation que l'on filtre bien sur un compte
adds ae8502c fixes #1243 la sortie du champ date ou le clic sur une autre action entraine bien la prise en compte des dates saisies
adds 2dc6345 refs #1242 Modification pour plus de lisibilité suite à revue de code Kevin
adds 79ebf7d refs #1242 Refactoring pour plus de lisibilité
adds 4d8ac91 refs #1242 correction de merge
adds 7288ae1 Merge branch 'feature/1242-no-account-research-exception' into develop
adds 9fd0c2f refs #1297correction pour ne pas remonter les entitées ayant une date > à celle indiquée dans la période
adds bde8128 refs #1298 corrige NPE dans le cas ou aucune donnée existe
adds e3d95f9 refs #1242 ordre des traductions revu
adds d9b4a7d Merge branch 'feature/1298-FixNPE' into develop
adds 959bbc3 refs #1268 l'interface de saisie d'un plan de TVA est de nouveau fonctionnelle
adds 6b2e99c refs #1268 utilisation de JXTreeTable à la place de VatChartTreeTable
adds 73a9813 refs #1268 déplacement du ListSelectionModel dans le handler
adds b44dada Merge branch 'feature/1268-vat-statement-usable' into develop
adds 635828d refs #1242 correction sur refactoring
adds a0857b1 Mise à jour de la déclaration de licences
adds d5f467a refs #1295 Le tableau de la saisie des écritures n'est pas éditable si la période est cloturé pour le journal sélectionné
adds 4a1b1d5 refs #1158 Ajout de commentaires + désactivation du boutton de création d'une transaction
adds 253998b refs #1158 Sur l'onglet lettrage il n'est pas possible de modifier une selection comportant une entrée vérouillée. Ajout d'une colonne 'clos' indiquant les entrées vérouillées.
adds 9957610 Merge branch 'feature/1158-NotEditableTableForClose' into develop
adds b4b645f refs #1158 : recupération du ClosedPeriodEntryBook et stockage dans un map pour le cache.
adds b119160 import manquant
adds 7cd3ef3 correction suite au merge
adds fd35125 Merge branch 'feature/1158' into develop
new f0e4f29 refs #1241 gérération des rapport de compte avec Jasper
new 03e84c6 refs #1241 gérération des rapport de compte avec Jasper
new 4c16fcb refs #1241 ne pas afficher les lignes ne comportant aucun montant de renseigné
new e9c8126 refs #1241 modification de l'affichage des infos
new ce734ff refs #1241 factorisation du code source Jasper, utilisation de style
new 643e3a5 refs #1241 correction sur nom de police
new 9afd18d refs #1241 refactoring
new b019126 refs #1241 refactoring général sur les rapports, renommage variable, utilisation de style dans les rapports
new 8b18d5e refs #1241 réactivation de l'impression de la TVA, avec mise à jour des données
new dedb5b9 refs #1241 mise à jour du plan de TVA
new 9a297ab refs #1268 permet la saisie des informations concernant le trésor public et affichage de ses infos lors de l'export TVA
new f56fee1 refs #1241 placement correcte des champs dans la fenêtre de saisie de l'identité
new cfd3f21 refs #1241 correction sur le formulaire concernant le trésor public. Renommage du boutton OK en Valider
new 797522f refs #1241 pas de changement dans l'interface de configuration du premier lancement
new 9c2a471 refs #1241 modificaction des écans de 1er configuration afin de prendre en compte les changements sur l'identité.
new 6c63783 refs #1241 ajout de l'icon de sauvegarde présente sur le 1er écran au 1er lancement de lima
new 7cc39ee refs #1241 progression sur internationalisation des rapports, ajout de l'entête avec l'identité sur tous les rapports
new b4373cd refs #1241mise à jour du plan de tva
new 21cbf77 refs #1241 minor
new e8e622e refs #1241 internationalisation sur le rapport de compte
new 5a144b5 refs #1241 internationalisation sur le rapport de compte
new 887373c refs #1241 ajout possibilité de créer des rapports de balance globale ou générale (le dernier par défaut centralise les comptes 401 avec ses sous comptes idem pour 411)
new b8a6ceb refs #1241 monté de version je Jasper report
new 6f487bf refs #1241 refactoring de code
new 1179c09 refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
new 4e94d24 refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
new 0919fa5 refs #1241 Ajout de traductions
new 7f54c9e refs #1298 corrige la génération de rapport pour les comptes si aucun compte n'existe
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 (4d8c038)
\
N -- N -- N refs/heads/feature/1241-account-report (7f54c9e)
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 28 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 7f54c9e7f90cea3d576e8d2c44c05a69f89b7b0c
Author: dcosse <cosse(a)codelutin.com>
Date: Thu Sep 24 15:00:36 2015 +0200
refs #1298 corrige la génération de rapport pour les comptes si aucun compte n'existe
commit 0919fa58b571e38dedb5d0b604f2e5fa44e5dc1f
Author: dcosse <cosse(a)codelutin.com>
Date: Fri Sep 11 16:44:30 2015 +0200
refs #1241 Ajout de traductions
commit 4e94d244f52771c681529ceda1a781cb914ec610
Author: dcosse <cosse(a)codelutin.com>
Date: Fri Sep 11 15:35:19 2015 +0200
refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
commit 1179c093d61c0c745d73f11a86f658066f078421
Author: dcosse <cosse(a)codelutin.com>
Date: Fri Sep 11 15:34:40 2015 +0200
refs #1241 modification sur en tête du rapport et correction pour appeler la bonne méthode.
commit 6f487bfcfab4a1c2775746c314e14b9387992465
Author: dcosse <cosse(a)codelutin.com>
Date: Wed Sep 9 15:21:41 2015 +0200
refs #1241 refactoring de code
commit b8a6ceb2670186b6b079c3b7ed4b8140dedec6ba
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Sep 7 14:27:50 2015 +0200
refs #1241 monté de version je Jasper report
commit 887373c77477f6f7919b0c05009b679ca385de4d
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Sep 7 14:27:30 2015 +0200
refs #1241 ajout possibilité de créer des rapports de balance globale ou générale (le dernier par défaut centralise les comptes 401 avec ses sous comptes idem pour 411)
commit 5a144b57c3704298550de84c67656d0da796ab55
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Sep 7 14:25:41 2015 +0200
refs #1241 internationalisation sur le rapport de compte
commit e8e622ed5486d9932ddd4fbc6bf5fd3d72e1c08c
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Sep 7 14:25:14 2015 +0200
refs #1241 internationalisation sur le rapport de compte
commit 21cbf7748f6e2fedbd3a0f22e8e8971258a3fa64
Author: dcosse <cosse(a)codelutin.com>
Date: Wed Sep 2 15:14:52 2015 +0200
refs #1241 minor
commit b4373cd69ed0adc9b183349ad0a7577386e3a687
Author: dcosse <cosse(a)codelutin.com>
Date: Wed Sep 2 15:13:36 2015 +0200
refs #1241mise à jour du plan de tva
commit 7cc39ee6473b0d5c64fca2ecbeb0ccf706b828a0
Author: dcosse <cosse(a)codelutin.com>
Date: Thu Jul 30 17:10:33 2015 +0200
refs #1241 progression sur internationalisation des rapports, ajout de l'entête avec l'identité sur tous les rapports
commit 6c63783fdab3a94f352d996d8cbf3965385372a3
Author: dcosse <cosse(a)codelutin.com>
Date: Tue Jul 28 14:48:02 2015 +0200
refs #1241 ajout de l'icon de sauvegarde présente sur le 1er écran au 1er lancement de lima
commit 9c2a4711664117acab90fef3eff32bca36d1d76b
Author: dcosse <cosse(a)codelutin.com>
Date: Tue Jul 28 14:42:15 2015 +0200
refs #1241 modificaction des écans de 1er configuration afin de prendre en compte les changements sur l'identité.
commit 797522fb4be6b4621d5e239c17e4a937dab1ebce
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Jul 27 11:24:55 2015 +0200
refs #1241 pas de changement dans l'interface de configuration du premier lancement
commit cfd3f21f337b317721a4c5a783c1d7edfd0a4d82
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Jul 27 11:15:46 2015 +0200
refs #1241 correction sur le formulaire concernant le trésor public. Renommage du boutton OK en Valider
commit f56fee1b2f0b1e6c4f68e4a2f3bde6399ed40c1f
Author: dcosse <cosse(a)codelutin.com>
Date: Fri Jul 24 18:29:55 2015 +0200
refs #1241 placement correcte des champs dans la fenêtre de saisie de l'identité
commit 9a297abd96f72ce21857cec80d89618097081050
Author: dcosse <cosse(a)codelutin.com>
Date: Thu Jul 23 18:47:02 2015 +0200
refs #1268 permet la saisie des informations concernant le trésor public et affichage de ses infos lors de l'export TVA
commit dedb5b9517d25302a35dc92a8be287b3596dd678
Author: dcosse <cosse(a)codelutin.com>
Date: Wed Jul 22 10:18:41 2015 +0200
refs #1241 mise à jour du plan de TVA
commit 8b18d5e8b4dc9168960b1f7d4062cadd11386ebf
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Jul 20 09:53:04 2015 +0200
refs #1241 réactivation de l'impression de la TVA, avec mise à jour des données
commit b01912625c723f6e6274b5453fc1fe6b0f708469
Author: dcosse <cosse(a)codelutin.com>
Date: Tue Jul 7 16:41:55 2015 +0200
refs #1241 refactoring général sur les rapports, renommage variable, utilisation de style dans les rapports
commit 9afd18d63faa9b966fc50beda3e2573cc7fd47b3
Author: dcosse <cosse(a)codelutin.com>
Date: Fri Jul 3 18:24:09 2015 +0200
refs #1241 refactoring
commit 643e3a559e055debe3110b43c172ba111342d10b
Author: dcosse <cosse(a)codelutin.com>
Date: Thu Jul 2 15:08:14 2015 +0200
refs #1241 correction sur nom de police
commit ce734ffebd6f09260dd5f220a56d109ba17ef245
Author: dcosse <cosse(a)codelutin.com>
Date: Wed Jul 1 17:42:23 2015 +0200
refs #1241 factorisation du code source Jasper, utilisation de style
commit e9c81264aac8c378b8df4146415b17e623c6d065
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Jun 29 12:05:27 2015 +0200
refs #1241 modification de l'affichage des infos
commit 4c16fcbfa4fd587e9a5cbfcce97a5ece73ed0864
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Jun 29 10:14:15 2015 +0200
refs #1241 ne pas afficher les lignes ne comportant aucun montant de renseigné
commit 03e84c68bbffd4caeefa3c9d4dbd43721789d942
Author: dcosse <cosse(a)codelutin.com>
Date: Sat Jun 27 00:53:48 2015 +0200
refs #1241 gérération des rapport de compte avec Jasper
commit f0e4f29b522a5df7483ca49cc5e1a278f290dbd9
Author: dcosse <cosse(a)codelutin.com>
Date: Sat Jun 27 00:52:55 2015 +0200
refs #1241 gérération des rapport de compte avec Jasper
Summary of changes:
.../org/chorem/lima/business/ServiceListener.java | 2 +-
.../api/ClosedPeriodicEntryBookService.java | 3 +
.../business/api/FinancialTransactionService.java | 7 +
.../lima/business/api/VatStatementService.java | 5 +-
...on.java => AlreadyAffectedVatBoxException.java} | 14 +-
...lException.java => RequiredFieldException.java} | 14 +-
.../lima/business/ejb/AccountServiceImpl.java | 2 -
.../ejb/ClosedPeriodicEntryBookServiceImpl.java | 11 +
.../ejb/FinancialTransactionServiceImpl.java | 14 +-
.../lima/business/ejb/ImportServiceImpl.java | 17 +-
.../lima/business/ejb/VatStatementServiceImpl.java | 74 ++--
.../entity/ClosedPeriodicEntryBookTopiaDao.java | 29 +-
.../java/org/chorem/lima/entity/EntryTopiaDao.java | 43 ++-
lima-swing/src/license/THIRD-PARTY.properties | 1 +
.../chorem/lima/enums/VatStatementsChartEnum.java | 5 +-
.../AccountCondition/AccountConditionHandler.java | 6 +-
.../ui/Filter/dateCondition/DateConditionView.jaxx | 2 +-
.../DateIntervalConditionView.jaxx | 7 +-
.../chorem/lima/ui/account/AccountViewHandler.java | 3 +-
.../lima/ui/celleditor/AccountTableCellEditor.java | 28 +-
.../lima/ui/celleditor/DayTableCellEditor.java | 30 +-
.../lima/ui/combobox/EntryBookComboBoxModel.java | 4 +-
.../ui/combobox/FiscalPeriodComboBoxModel.java | 4 +-
.../ui/common/FinancialTransactionTableModel.java | 111 +++++-
.../lima/ui/entrybook/EntryBookViewHandler.java | 8 +-
.../ui/financialtransaction/AccountColumn.java | 55 ++-
.../ui/financialtransaction/BalanceColumn.java | 35 +-
.../lima/ui/financialtransaction/DayColumn.java | 6 +-
.../FinancialTransactionView.css | 15 +-
.../FinancialTransactionView.jaxx | 2 +-
.../FinancialTransactionViewHandler.java | 95 +++--
.../FinancialTransactionSearchTableModel.java | 12 +-
.../FiscalControlExportViewHandler.java | 2 +-
.../ui/fiscalperiod/FiscalPeriodViewHandler.java | 4 +-
.../java/org/chorem/lima/ui/home/AccountsPane.java | 6 +-
.../org/chorem/lima/ui/home/EntryBooksPane.java | 8 +-
.../lima/ui/home/FinancialTransactionsPane.java | 6 +-
.../org/chorem/lima/ui/home/FiscalYearsPane.java | 10 +-
.../lima/ui/lettering/LetteringEditModel.java | 80 ++--
...tionModel.java => LetteringSelectionModel.java} | 31 +-
.../lima/ui/lettering/LetteringTableModel.java | 38 ++
.../org/chorem/lima/ui/lettering/LetteringView.css | 6 +-
.../chorem/lima/ui/lettering/LetteringView.jaxx | 2 +-
.../lima/ui/lettering/LetteringViewHandler.java | 85 +++--
.../chorem/lima/ui/opening/OpeningViewHandler.java | 4 +-
.../lima/ui/vatchart/VatChartMovementForm.css | 2 +
.../lima/ui/vatchart/VatChartMovementForm.jaxx | 19 +-
.../chorem/lima/ui/vatchart/VatChartTreeTable.java | 134 -------
.../lima/ui/vatchart/VatChartTreeTableModel.java | 226 ------------
.../org/chorem/lima/ui/vatchart/VatChartView.jaxx | 26 +-
.../lima/ui/vatchart/VatChartViewHandler.java | 401 +++++++++++++--------
.../chorem/lima/ui/vatchart/VatChartViewModel.java | 191 ++++++++++
.../resources/i18n/lima-swing_en_GB.properties | 8 +
.../resources/i18n/lima-swing_fr_FR.properties | 12 +-
.../icons/action-financialPeriod-close.png | Bin 715 -> 452 bytes
.../src/main/resources/import/vat_developed.csv | 56 ---
.../src/main/resources/import/vat_shortened.csv | 56 ---
lima-swing/src/main/resources/log4j.properties | 2 +-
pom.xml | 2 +-
59 files changed, 1144 insertions(+), 937 deletions(-)
copy lima-business-api/src/main/java/org/chorem/lima/business/exceptions/{NotAllowedLabelException.java => AlreadyAffectedVatBoxException.java} (74%)
copy lima-business-api/src/main/java/org/chorem/lima/business/exceptions/{NotAllowedLabelException.java => RequiredFieldException.java} (74%)
copy lima-business-api/src/main/java/org/chorem/lima/LimaTechnicalException.java => lima-swing/src/main/java/org/chorem/lima/ui/celleditor/DayTableCellEditor.java (64%)
rename lima-swing/src/main/java/org/chorem/lima/ui/lettering/{LettringSelectionModel.java => LetteringSelectionModel.java} (82%)
delete mode 100644 lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartTreeTable.java
delete mode 100644 lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartTreeTableModel.java
create mode 100644 lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartViewModel.java
delete mode 100644 lima-swing/src/main/resources/import/vat_developed.csv
delete mode 100644 lima-swing/src/main/resources/import/vat_shortened.csv
--
To stop receiving notification emails like this one, please contact
chorem.org SCM administrator <admin+scm(a)chorem.org>.
1
19
09/28: refs #1241 réactivation de l'impression de la TVA, avec mise à jour des données
by chorem.org scm 30 Nov '15
by chorem.org scm 30 Nov '15
30 Nov '15
This is an automated email from the git hooks/post-receive script.
New commit to branch feature/1241-account-report in repository lima.
See http://git.chorem.org/lima.git
commit 8b18d5e8b4dc9168960b1f7d4062cadd11386ebf
Author: dcosse <cosse(a)codelutin.com>
Date: Mon Jul 20 09:53:04 2015 +0200
refs #1241 réactivation de l'impression de la TVA, avec mise à jour des données
---
lima-report/pom.xml | 10 +-
.../java/org/chorem/lima/report/DocumentsEnum.java | 4 +-
.../org/chorem/lima/report/LimaReportConfig.java | 22 ++-
.../lima/report/service/DocumentService.java | 202 ++++++++++-----------
.../src/main/resources/reports/vat_form_fr.pdf | Bin 222623 -> 244238 bytes
.../org/chorem/lima/server/HttpServerService.java | 7 +-
lima-swing/src/main/resources/import/vat_base.csv | 107 +++++------
.../src/main/resources/import/vat_default.csv | 107 +++++------
pom.xml | 6 +
9 files changed, 241 insertions(+), 224 deletions(-)
diff --git a/lima-report/pom.xml b/lima-report/pom.xml
index 2ba0fba..5467a54 100644
--- a/lima-report/pom.xml
+++ b/lima-report/pom.xml
@@ -21,12 +21,6 @@
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
- <!--<dependency>-->
- <!--<groupId>${project.groupId}</groupId>-->
- <!--<artifactId>lima-business</artifactId>-->
- <!--<version>${project.version}</version>-->
- <!--<scope>compile</scope>-->
- <!--</dependency>-->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>lima-callao</artifactId>
@@ -67,13 +61,13 @@
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
- <scope>runtime</scope>
+ <!--<scope>runtime</scope>-->
</dependency>
<!-- FIXME tchemit 2015-02-27 Do we really need this here ? -->
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-examples</artifactId>
- <scope>runtime</scope>
+ <!--<scope>runtime</scope>-->
</dependency>
<dependency>
<groupId>commons-logging</groupId>
diff --git a/lima-report/src/main/java/org/chorem/lima/report/DocumentsEnum.java b/lima-report/src/main/java/org/chorem/lima/report/DocumentsEnum.java
index 68ea24b..d741993 100644
--- a/lima-report/src/main/java/org/chorem/lima/report/DocumentsEnum.java
+++ b/lima-report/src/main/java/org/chorem/lima/report/DocumentsEnum.java
@@ -31,8 +31,8 @@ public enum DocumentsEnum {
ENTRY_BOOKS(t("lima-business.document.entrybook"), "lima_entrybooks"),
FINANCIAL_STATEMENT(t("lima-business.document.financialstatement"), "lima_financialstatements"),
GENERAL_ENTRY_BOOK(t("lima-business.document.generalentrybook"), "lima_general_entybook"),
- LEDGER(t("lima-business.document.ledger"), "lima_ledger");
-// VAT(t("lima-business.document.vat"), "lima_vat"),
+ LEDGER(t("lima-business.document.ledger"), "lima_ledger"),
+ VAT(t("lima-business.document.vat"), "lima_vat");
private final String fileName;
diff --git a/lima-report/src/main/java/org/chorem/lima/report/LimaReportConfig.java b/lima-report/src/main/java/org/chorem/lima/report/LimaReportConfig.java
index 00b00b8..3186ae1 100644
--- a/lima-report/src/main/java/org/chorem/lima/report/LimaReportConfig.java
+++ b/lima-report/src/main/java/org/chorem/lima/report/LimaReportConfig.java
@@ -106,11 +106,28 @@ public class LimaReportConfig {
return result;
}
+ public File getReportsDir() {
+ String reportsDirPath = config.getOption(ReportConfigOption.REPORTS_DIR.getKey());
+ File result = new File(reportsDirPath);
+ return result;
+ }
+
public void setReportsModelDir(String url) {
config.setOption(ReportConfigOption.REPORTS_MODEL_DIR.key, url);
config.saveForUser();
}
+ public String getVatPDFUrl() {
+ String vatPDFUrl = config.getOption(ReportConfigOption.VAT_PDF_URL.getKey());
+ return vatPDFUrl;
+ }
+
+ public void setVatPDFUrl(String url) {
+ config.setOption(ReportConfigOption.VAT_PDF_URL.key, url);
+ config.saveForUser();
+ }
+
+
public String getAccountReportModelPath() {
String vatPDFUrl = config.getOption(ReportConfigOption.ACCOUNT_DOCUMENT_REPORT_MODEL_PATH.getKey());
return vatPDFUrl;
@@ -336,6 +353,7 @@ public class LimaReportConfig {
DATA_DIR("lima.data.dir", n("lima.config.data.dir.description"), "${user.home}/.lima", File.class, false, false),
REPORTS_MODEL_DIR("lima.reports.dir",n("lima.config.reports.dir.description"),"${lima.data.dir}/reports", File.class, false, false),
+ REPORTS_DIR("lima.reports.dir", n("lima.config.reports.dir.description"), "${lima.data.dir}/reports", File.class, false, false),
ACCOUNT_DOCUMENT_REPORT_MODEL_PATH("lima.config.documentReport.account.documentReportModelPath", n("lima.config.documentReport.account.documentReportModelPath.description"), "/jasperreports/account/DocumentReport.jrxml",String.class, false, false),
ACCOUNT_ENTRY_REPORT_MODEL_PATH("lima.config.documentReport.account.accountEntryReportModelPath", n("lima.config.documentReport.account.accountEntryReportModelPath.description"), "/jasperreports/account/AccountEntry.jrxml",String.class, false, false),
@@ -355,7 +373,9 @@ public class LimaReportConfig {
GENERAL_LEDGER_DOCUMENT_REPORT_MODEL_PATH("lima.config.documentReport.generalLedger.documentReportModelPath", n("lima.config.documentReport.generalLedger.documentReportModelPath.description"), "/jasperreports/generalLedger/DocumentReport.jrxml", String.class, false, false),
GENERAL_LEDGER_MODEL_PATH("lima.config.documentReport.generalLedger.generalLedgerModelPath", n("lima.config.documentReport.generalLedger.generalLedgerModelPath.description"), "/jasperreports/generalLedger/GeneralLedgerReport.jrxml", String.class, false, false),
- GENERAL_LEDGER_ENTRY_MODEL_PATH("lima.config.documentReport.generalLedger.generalLedgerEntryModelPath", n("lima.config.documentReport.generalLedger.generalLedgerEntryModelPath.description"), "/jasperreports/generalLedger/GeneralLedgerEntryReport.jrxml", String.class, false, false);
+ GENERAL_LEDGER_ENTRY_MODEL_PATH("lima.config.documentReport.generalLedger.generalLedgerEntryModelPath", n("lima.config.documentReport.generalLedger.generalLedgerEntryModelPath.description"), "/jasperreports/generalLedger/GeneralLedgerEntryReport.jrxml", String.class, false, false),
+
+ VAT_PDF_URL("lima.report.vatpdfurl", n("lima.config.reportvatpdfurl.description"), "default", String.class, false, false);
private final String key;
diff --git a/lima-report/src/main/java/org/chorem/lima/report/service/DocumentService.java b/lima-report/src/main/java/org/chorem/lima/report/service/DocumentService.java
index 4821c7f..982a34e 100644
--- a/lima-report/src/main/java/org/chorem/lima/report/service/DocumentService.java
+++ b/lima-report/src/main/java/org/chorem/lima/report/service/DocumentService.java
@@ -24,10 +24,14 @@ package org.chorem.lima.report.service;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
+import com.itextpdf.text.pdf.AcroFields;
+import com.itextpdf.text.pdf.PdfReader;
import net.sf.jasperreports.engine.JasperReport;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.apache.pdfbox.examples.fdf.SetField;
+import org.apache.pdfbox.pdmodel.PDDocument;
import org.chorem.lima.LimaTechnicalException;
import org.chorem.lima.beans.DocumentReport;
import org.chorem.lima.beans.FinancialStatementAmounts;
@@ -36,6 +40,7 @@ import org.chorem.lima.business.api.AccountService;
import org.chorem.lima.business.api.FinancialStatementService;
import org.chorem.lima.business.api.IdentityService;
import org.chorem.lima.business.api.OptionsService;
+import org.chorem.lima.business.api.VatStatementService;
import org.chorem.lima.business.api.report.AccountReportService;
import org.chorem.lima.business.api.report.BalanceReportService;
import org.chorem.lima.business.api.report.GeneralEntryBookReportService;
@@ -44,11 +49,14 @@ import org.chorem.lima.business.api.report.ProvisionalEntryBookReportService;
import org.chorem.lima.business.utils.BigDecimalToString;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.Identity;
+import org.chorem.lima.entity.VatStatement;
import org.chorem.lima.report.DocumentsEnum;
import org.chorem.lima.report.LimaReportConfig;
import org.nuiton.util.FileUtil;
import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigDecimal;
@@ -57,6 +65,7 @@ import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
+import java.util.Set;
import static org.nuiton.i18n.I18n.t;
@@ -81,6 +90,8 @@ public class DocumentService {
protected AccountService accountService;
+ protected VatStatementService vatStatementService;
+
protected JasperReports jasperReports;
protected String accountFilePath;
@@ -88,6 +99,7 @@ public class DocumentService {
protected String generalEntryBookReportPdfFilePath;
protected String entryBooksReportPdfFilePath;
protected String ledgerReportPdfFilePath;
+ protected String vat_default_formFilePath;
public DocumentService() {
identityService = LimaServiceFactory.getService(IdentityService.class);
@@ -99,6 +111,7 @@ public class DocumentService {
generalEntryBookReportService = LimaServiceFactory.getService(GeneralEntryBookReportService.class);
entryBookReportService = LimaServiceFactory.getService(ProvisionalEntryBookReportService.class);
ledgerReportService = LimaServiceFactory.getService(LedgerReportService.class);
+ vatStatementService = LimaServiceFactory.getService(VatStatementService.class);
jasperReports = new JasperReports();
@@ -119,6 +132,7 @@ public class DocumentService {
generalEntryBookReportPdfFilePath = reportDirPath + File.separator + DocumentsEnum.GENERAL_ENTRY_BOOK.getFileName() + ".pdf";
entryBooksReportPdfFilePath = reportDirPath + File.separator + DocumentsEnum.ENTRY_BOOKS.getFileName() + ".pdf";
ledgerReportPdfFilePath = reportDirPath + File.separator + DocumentsEnum.LEDGER.getFileName() + ".pdf";
+ vat_default_formFilePath = reportDirPath + File.separator + DocumentsEnum.VAT.getFileName() + ".pdf";
if (log.isDebugEnabled()) {
log.debug("Path : " + reportDirPath);
@@ -262,79 +276,81 @@ public class DocumentService {
}
//############## VAT ##############
-// public void createVatDocuments(Date beginDate,
-// Date endDate,
-// String autocomplete) {
-//
-// String filePath = path + File.separator
-// + DocumentsEnum.VAT.getFileName() + ".pdf";
-//
-// String path = LimaServiceConfig.getInstance().getReportsModelDir().getAbsolutePath();
-//
-// String filePathDefault = path + File.separator
-// + DocumentsEnum.VAT.getFileName() + "_default.pdf";
-//
-// PDDocument doc;
-// InputStream reportsStream;
-//
-// String vatPDFUrl = LimaServiceConfig.getInstance().getVatPDFUrl();
-//
-// if (vatPDFUrl.equals("default")) {
-// reportsStream = DocumentService.class
-// .getResourceAsStream("/reports/vat_form_fr.pdf");
-// if (reportsStream == null) {
-// throw new LimaTechnicalException("Could not find such file "
-// + "/reports/vat_form_fr.pdf");
-// }
-// } else {
-// try {
-// reportsStream = new FileInputStream(filePathDefault);
-// } catch (FileNotFoundException eee) {
-// throw new LimaTechnicalException("Could not find such file "
-// + filePathDefault, eee);
-// }
-// }
-//
-// try {
-//
-// // load the document
-// doc = PDDocument.load(reportsStream);
-//
-// if (autocomplete != null) {
-// if (log.isDebugEnabled()) {
-// log.debug("autocomplete: " + autocomplete);
-// }
-// if (autocomplete.equals("true")) {
-//
-// SetField fields = new SetField();
-//
-// //search for all VAT Statements from the report
-// List<VatStatement> vatStatementsList = vatStatementService.getAllVatStatements();
-// if (log.isDebugEnabled()) {
-// log.debug("vatStatementsList.size() : " + vatStatementsList.size());
-// }
-// for (VatStatement vatStatement : vatStatementsList) {
-// //search for amount to display
-// BigDecimal amount = vatStatementService.vatStatementAmounts(vatStatement, beginDate, endDate).getAmount();
-// //display amount only if it is a child and has a BoxName
-// if (vatStatement.getBoxName() != null && !vatStatement.isHeader()) {
-// if (log.isDebugEnabled()) {
-// log.debug("Set field...");
-// }
-// fields.setField(doc, vatStatement.getBoxName(), amount.toString());
-// }
-// }
-// }
-// }
-//
-// // save the updated document to the new file and close
-// doc.save(filePath);
-// doc.close();
-//
-// } catch (Exception ex) {
-// throw new LimaTechnicalException("Can't create document", ex);
-// }
-// }
+ public void createVatDocuments(Date beginDate,
+ Date endDate,
+ String autocomplete) {
+
+ String path = LimaReportConfig.getInstance().getReportsDir().getAbsolutePath();
+ String filePath = path + File.separator
+ + DocumentsEnum.VAT.getFileName() + ".pdf";
+
+ PDDocument doc;
+ InputStream reportsStream;
+
+ String vatPDFUrl = LimaReportConfig.getInstance().getVatPDFUrl();
+
+ AcroFields pdfFields;
+ if (vatPDFUrl.equals("default")) {
+ reportsStream = DocumentService.class.getResourceAsStream("/reports/vat_form_fr.pdf");
+ try {
+ PdfReader reader = new PdfReader("/reports/vat_form_fr.pdf");
+ pdfFields = reader.getAcroFields();
+ Set<String> fldNames = pdfFields.getFields().keySet();
+
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ if (reportsStream == null) {
+ throw new LimaTechnicalException("Could not find such file "
+ + "/reports/vat_form_fr.pdf");
+ }
+ } else {
+ try {
+ reportsStream = new FileInputStream(vat_default_formFilePath);
+ } catch (FileNotFoundException eee) {
+ throw new LimaTechnicalException("Could not find such file "
+ + vat_default_formFilePath, eee);
+ }
+ }
+
+ try {
+
+ // load the document
+ doc = PDDocument.load(reportsStream);
+
+ if (autocomplete != null) {
+ if (log.isDebugEnabled()) {
+ log.debug("autocomplete: " + autocomplete);
+ }
+ if (autocomplete.equals("true")) {
+ SetField fields = new SetField();
+ //search for all VAT Statements from the report
+ List<VatStatement> vatStatementsList = vatStatementService.getAllVatStatements();
+ if (log.isDebugEnabled()) {
+ log.debug("vatStatementsList.size() : " + vatStatementsList.size());
+ }
+ for (VatStatement vatStatement : vatStatementsList) {
+ //search for amount to display
+ BigDecimal amount = vatStatementService.vatStatementAmounts(vatStatement, beginDate, endDate).getAmount();
+ //display amount only if it is a child and has a BoxName
+ if (vatStatement.getBoxName() != null && !vatStatement.isHeader()) {
+ if (log.isDebugEnabled()) {
+ log.debug("Set field...");
+ }
+ fields.setField(doc, vatStatement.getBoxName(), amount.toString());
+ }
+ }
+ }
+ }
+
+ // save the updated document to the new file and close
+ doc.save(filePath);
+ doc.close();
+
+ } catch (Exception ex) {
+ throw new LimaTechnicalException("Can't create document", ex);
+ }
+ }
protected String constructHtmlHeader(String title) {
@@ -349,38 +365,6 @@ public class DocumentService {
return head;
}
- protected String constructSubTitleHtml(String subTitle) {
- return "\t<h2>" + subTitle + "</h2>\n";
- }
-
- protected String constructSubTitleHtml(String subTitleFirstpart, String subTitleSecPart) {
- String subTitle = "\t<h2>\n" +
- subTitleFirstpart +
- "<br/>\n" +
- subTitleSecPart +
- "</h2>\n";
-
- return subTitle;
- }
-
- protected String constructTableHeader(String... columnsNames) {
- StringBuilder builder = new StringBuilder("\t\t<thead>\n\t\t\t<tr>\n");
- for (String name : columnsNames) {
- builder.append("\t\t\t\t<th>").append(name).append("</th>\n");
- }
- builder.append("\t\t\t</tr>\t\t\n</thead>\n");
- return builder.toString();
- }
-
- protected String constructTableLine(String[] cells, boolean even) {
- String style = even ? "line_even" : "line_odd";
- StringBuilder builder = new StringBuilder("\t\t<tr class=\"" + style + "\">\n");
- for (String cell : cells) {
- builder.append("\t\t\t<td>").append(cell).append("</td>\n");
- }
- builder.append("\t\t</tr>\n");
- return builder.toString();
- }
protected String constructTableLine(String... cells) {
StringBuilder builder = new StringBuilder("\t\t<tr>\n");
@@ -525,7 +509,7 @@ public class DocumentService {
return inputStream;
}
- public GeneratedReport createReport(Date beginDate, Date endDate, String model, String account) throws IOException {
+ public GeneratedReport createReport(Date beginDate, Date endDate, String model, String account, String autocomplete) throws IOException {
String stringResult = null;
//create docs
@@ -548,6 +532,12 @@ public class DocumentService {
case LEDGER:
createLedgerDocuments(beginDate, endDate);
break;
+ case VAT:
+ if (log.isDebugEnabled()) {
+ log.debug("autocomplete : " + autocomplete);
+ }
+ createVatDocuments(beginDate, endDate, autocomplete);
+ break;
default:
throw new UnsupportedOperationException("Unknown document type: " + model);
}
diff --git a/lima-report/src/main/resources/reports/vat_form_fr.pdf b/lima-report/src/main/resources/reports/vat_form_fr.pdf
index b169a66..395f8d6 100644
Binary files a/lima-report/src/main/resources/reports/vat_form_fr.pdf and b/lima-report/src/main/resources/reports/vat_form_fr.pdf differ
diff --git a/lima-server/src/main/java/org/chorem/lima/server/HttpServerService.java b/lima-server/src/main/java/org/chorem/lima/server/HttpServerService.java
index 1581ffa..127a6b5 100644
--- a/lima-server/src/main/java/org/chorem/lima/server/HttpServerService.java
+++ b/lima-server/src/main/java/org/chorem/lima/server/HttpServerService.java
@@ -139,13 +139,14 @@ public class HttpServerService {
String beginDate = req.getParameter("beginDate");
String endDate = req.getParameter("endDate");
String account = (StringUtils.isBlank(req.getParameter("account")) ? null : URLDecoder.decode(req.getParameter("account"), "UTF-8"));
+ String autocomplete = req.getParameter("autocomplete") == null ? "true" : req.getParameter("autocomplete");
if (imageParam != null) {
// render image
doImage(resp, imageParam);
} else if (model != null && beginDate != null && endDate != null) {
// generate and render report
- doCreateReport(resp, model, beginDate, endDate, account);
+ doCreateReport(resp, model, beginDate, endDate, account, autocomplete);
} else {
// render home HTML
doHomeHtml(req, resp);
@@ -167,7 +168,7 @@ public class HttpServerService {
}
protected void doCreateReport(HttpServletResponse resp, String model, String beginDate, String endDate,
- String account) throws IOException {
+ String account, String autocomplete) throws IOException {
SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
@@ -177,7 +178,7 @@ public class HttpServerService {
Date endDateFormat = sdf.parse(endDate);
GeneratedReport generatedReport =
- documentService.createReport(beginDateFormat, endDateFormat, model, account);
+ documentService.createReport(beginDateFormat, endDateFormat, model, account, autocomplete);
if (Strings.isNullOrEmpty(generatedReport.getHtmlContent())) {
InputStream in = generatedReport.getPdfStream();
diff --git a/lima-swing/src/main/resources/import/vat_base.csv b/lima-swing/src/main/resources/import/vat_base.csv
index 7fafb1e..48bb9ee 100644
--- a/lima-swing/src/main/resources/import/vat_base.csv
+++ b/lima-swing/src/main/resources/import/vat_base.csv
@@ -1,56 +1,59 @@
label;header;accounts;boxName;masterVATStatement
A. MONTANT DES OPERATIONS REALISEES;O;;;
OPERATIONS IMPOSABLES (H.T.);O;;;A. MONTANT DES OPERATIONS REALISEES
-Acquisitions intracommunautaires;N;;b4.b4;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-Livraisons de gaz naturel ou d'électricité imposables en France;N;;b5.b5;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-Achats de biens ou de prestations de services réalisées auprès d'un assujetti non établi en France;N;;b6.b6;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-Régularisations (imposables);N;;b7.b7;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-"Ventes, prestations de services";N;;b1.b1;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-B. DECOMPTE DE LA TVA A PAYER;O;;;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services"
-TVA BRUTE;O;;;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER"
-Opérations réalisées en France métropolitaine;O;;;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-"Taux normal 19,6% (Base hors taxe)";N;;b15.b15;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine"
-"Taux normal 19,6% (Taxe due)";N;;b23.b23;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine"
-"Taux réduit 5,5% (Base hors taxe)";N;;b16.b16;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine"
-"Taux réduit 5,5% (Taxe due)";N;;b24.b24;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine"
-Opérations réalisées dans les DOM;O;;;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-"Taux normal 8,5% (Base hors taxe)";N;;b18.b18;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM"
-"Taux normal 8,5% (Taxe due)";N;;b26.b26;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM"
-"Taux réduit 2,1% (Base hors taxe)";N;;b19.b19;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM"
-"Taux réduit 2,1% (Taxe due)";N;;b27.b27;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM"
-Opérations imposables à un autre taux (France métropolitaine ou DOM);O;;;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-Ancien taux (Base hors taxe);N;;b21.b21;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-Ancien taux (Taxe due);N;;b29.b29;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-Opérations imposables à un taux particulier (Base hors taxe);N;;b22.b22;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-Opérations imposables à un taux particulier (Taxe due);N;;b30.b30;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-TVA antérieurement déduite à reverser;N;;b31.b31;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-Total de le TVA brute due;N;;b32.b32;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-Dont TVA sur acquisitions intracommunautaires;N;;b33.b33;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-Dont TVA sur opérations à destination de Monaco;N;;b34.b34;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-TVA DEDUCTIBLE;O;;;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER"
-Biens constituant des immobilisations;N;;b35.b35;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE"
-Autres biens et services;N;;b36.b36;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE"
-Autre TVA à déduire;N;;b37.b37;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE"
-Report du crédit apparaissant ligne 27 de la précédente déclaration;N;;b38.b38;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE"
-Total TVA déductible;N;;total1.total1;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE"
-Dont TVA non perçue récupérable par les assujettis disposant d'un établissement stable dans les DOM;N;;b39.b39;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE"
-Autres opérations imposables;N;;b2.b2;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-CREDIT;O;;;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Autres opérations imposables
-Crédit de TVA;N;;b40.b40;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Autres opérations imposables/CREDIT
-Remboursement demandé sur formulaire n°3519;N;;b41.b41;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Autres opérations imposables/CREDIT
-Crédit à reporter;N;;b42.b42;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Autres opérations imposables/CREDIT
-Achats de prestations de services intracommunautaires;N;;b3.b3;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-TAXE A PAYER;O;;;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Achats de prestations de services intracommunautaires
-TVA nette due;N;;b43.b43;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Achats de prestations de services intracommunautaires/TAXE A PAYER
-Taxes assimilées calculées sur annexe n°3310 A;N;;b44.b44;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Achats de prestations de services intracommunautaires/TAXE A PAYER
-"Sommes à imputer, exprimées en euros, y compris acompte congés";N;;b45.b45;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Achats de prestations de services intracommunautaires/TAXE A PAYER
-"Sommes à ajouter, exprimées en euros, y compris acompte congés";N;;b46.b46;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Achats de prestations de services intracommunautaires/TAXE A PAYER
-Total à payer;N;;b47.b47;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Achats de prestations de services intracommunautaires/TAXE A PAYER
+Ventes, prestations de services;N;;b1;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Autres opérations imposables;N;;b2;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Achats de prestations de services intracommunautaires;N;;b3;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Importations (entreprises ayant opté pour le dispositif d’autoliquidation de la TVA à l’importation);N;;b4;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Acquisitions intracommunautaires;N;;b5;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Livraisons d’électricité, de gaz naturel, de chaleur ou de froid imposables en France;N;;b6;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Achats de biens ou de prestations de services réalisées auprès d'un assujetti non établi en France;N;;b7;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Régularisations (imposables);N;;b8;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
OPERATIONS NON IMPOSABLES;O;;;A. MONTANT DES OPERATIONS REALISEES
-Exportations hors CE;N;;b8.b8;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
-Autres opérations non imposables;N;;b9.b9;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
-Livraisons intracommunautaires;N;;b10.b10;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
-Livraisons de gaz naturel ou d'électricité non imposables en France;N;;b11.b11;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
-Achats de franchise;N;;b12.b12;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
-Ventes de biens ou prestations de services réalisées aurpès d'un assujetti non établi en France;N;;b13.b13;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
-Régularisations (non imposables);N;;b14.b14;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+Exportations hors CE;N;;b9;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+Autres opérations non imposables;N;;b10;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+Livraisons intracommunautaires;N;;b11;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+Livraisons d’électricité, de gaz naturel, de chaleur ou de froid non imposables en France;N;;b12;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+Achats de franchise;N;;b13;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+Ventes de biens ou prestations de services réalisées aurpès d'un assujetti non établi en France;N;;b14;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+Régularisations (non imposables);N;;b15;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+B. DECOMPTE DE LA TVA A PAYER;O;;;
+TVA BRUTE;O;;;B. DECOMPTE DE LA TVA A PAYER
+Opérations réalisées en France métropolitaine;O;;;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE
+Taux normal 20% (Base hors taxe);N;;b16;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine
+Taux normal 20% (Taxe due);N;;b17;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine
+Taux réduit 5,5% (Base hors taxe);N;;b18;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine
+Taux réduit 5,5% (Taxe due);N;;b18;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine
+Opérations réalisées dans les DOM;O;;;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE
+Taux normal 8,5% (Base hors taxe);N;;b22;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM
+Taux normal 8,5% (Taxe due);N;;b23;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM
+Taux réduit 2,1% (Base hors taxe);N;;b24;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM
+Taux réduit 2,1% (Taxe due);N;;b25;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM
+Opérations imposables à un autre taux (France métropolitaine ou DOM);O;;;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE
+Ancien taux (Base hors taxe);N;;b28;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Ancien taux (Taxe due);N;;b29;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Opérations imposables à un taux particulier (Base hors taxe);N;;b30;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Opérations imposables à un taux particulier (Taxe due);N;;b31;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+TVA antérieurement déduite à reverser;N;;b32;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Sommes à ajouter, y compris acompte congés (exprimées en euro).;N;;b33;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Total de le TVA brute due (lignes 08 à 5B);N;;b34;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Dont TVA sur importations bénéficiant du dispositif d’autoliquidation;N;;b35;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Dont TVA sur acquisitions intracommunautaires;N;;b36;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Dont TVA sur opérations à destination de Monaco;N;;b37;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+TVA DEDUCTIBLE;O;;;B. DECOMPTE DE LA TVA A PAYER
+Biens constituant des immobilisations;N;;b38;B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE
+Autres biens et services;N;;b39;B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE
+Autre TVA à déduire;N;;b40;B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE
+Report du crédit apparaissant ligne 27 de la précédente déclaration;N;;b41;B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE
+Total TVA déductible;N;;total1;B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE
+Dont TVA non perçue récupérable par les assujettis disposant d'un établissement stable dans les DOM;N;;b43;B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE
+CREDIT;O;;;B. DECOMPTE DE LA TVA A PAYER
+Crédit de TVA (ligne 23 – ligne 16).;N;;b44;B. DECOMPTE DE LA TVA A PAYER/CREDIT/Autres opérations imposables/CREDIT
+Remboursement de crédit demandé sur formulaire n°3519 joint;N;;b45;B. DECOMPTE DE LA TVA A PAYER/CREDIT/Autres opérations imposables/CREDIT
+Crédit de TVA transféré à la société tête de groupe sur la déclaration récapitulative 3310-CA3G;N;;b46;B. DECOMPTE DE LA TVA A PAYER/CREDIT/Autres opérations imposables/CREDIT
+Crédit à reporter ( ligne 25 – ligne 26 – ligne AA );N;;b47;B. DECOMPTE DE LA TVA A PAYER/CREDIT/Autres opérations imposables/CREDIT
+TAXE A PAYER;O;;;B. DECOMPTE DE LA TVA A PAYER
+TVA nette due (ligne 16 – ligne 23);N;;b48;B. DECOMPTE DE LA TVA A PAYER/TAXE A PAYER/Achats de prestations de services intracommunautaires/TAXE A PAYER
+Taxes assimilées calculées sur annexe n°3310 A;N;;b49;B. DECOMPTE DE LA TVA A PAYER/TAXE A PAYER/Achats de prestations de services intracommunautaires/TAXE A PAYER
+Total à payer acquitté par la société tête de groupe sur la déclaration récapitulative 3310-CA3G;N;;b50;B. DECOMPTE DE LA TVA A PAYER/TAXE A PAYER/Achats de prestations de services intracommunautaires/TAXE A PAYER
+Total à payer (lignes 28 + 29 – AB);N;;total2;B. DECOMPTE DE LA TVA A PAYER/TAXE A PAYER
diff --git a/lima-swing/src/main/resources/import/vat_default.csv b/lima-swing/src/main/resources/import/vat_default.csv
index 1735d1d..70f92ee 100644
--- a/lima-swing/src/main/resources/import/vat_default.csv
+++ b/lima-swing/src/main/resources/import/vat_default.csv
@@ -1,56 +1,59 @@
label;header;accounts;boxName;masterVATStatement
A. MONTANT DES OPERATIONS REALISEES;O;;;
OPERATIONS IMPOSABLES (H.T.);O;;;A. MONTANT DES OPERATIONS REALISEES
-Acquisitions intracommunautaires;N;;b4.b4;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-Livraisons de gaz naturel ou d'électricité imposables en France;N;;b5.b5;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-Achats de biens ou de prestations de services réalisées auprès d'un assujetti non établi en France;N;;b6.b6;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-Régularisations (imposables);N;;b7.b7;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-"Ventes, prestations de services";N;;b1.b1;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-B. DECOMPTE DE LA TVA A PAYER;O;;;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services"
-TVA BRUTE;O;;;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER"
-Opérations réalisées en France métropolitaine;O;;;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-"Taux normal 19,6% (Base hors taxe)";N;;b15.b15;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine"
-"Taux normal 19,6% (Taxe due)";N;;b23.b23;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine"
-"Taux réduit 5,5% (Base hors taxe)";N;;b16.b16;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine"
-"Taux réduit 5,5% (Taxe due)";N;;b24.b24;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine"
-Opérations réalisées dans les DOM;O;;;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-"Taux normal 8,5% (Base hors taxe)";N;;b18.b18;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM"
-"Taux normal 8,5% (Taxe due)";N;;b26.b26;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM"
-"Taux réduit 2,1% (Base hors taxe)";N;;b19.b19;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM"
-"Taux réduit 2,1% (Taxe due)";N;;b27.b27;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM"
-Opérations imposables à un autre taux (France métropolitaine ou DOM);O;;;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-Ancien taux (Base hors taxe);N;;b21.b21;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-Ancien taux (Taxe due);N;;b29.b29;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-Opérations imposables à un taux particulier (Base hors taxe);N;;b22.b22;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-Opérations imposables à un taux particulier (Taxe due);N;;b30.b30;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-TVA antérieurement déduite à reverser;N;;b31.b31;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-Total de le TVA brute due;N;;b32.b32;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-Dont TVA sur acquisitions intracommunautaires;N;;b33.b33;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-Dont TVA sur opérations à destination de Monaco;N;;b34.b34;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE"
-TVA DEDUCTIBLE;O;;;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER"
-Biens constituant des immobilisations;N;;b35.b35;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE"
-Autres biens et services;N;;b36.b36;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE"
-Autre TVA à déduire;N;;b37.b37;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE"
-Report du crédit apparaissant ligne 27 de la précédente déclaration;N;;b38.b38;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE"
-Total TVA déductible;N;;total1.total1;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE"
-Dont TVA non perçue récupérable par les assujettis disposant d'un établissement stable dans les DOM;N;;b39.b39;"A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Ventes, prestations de services/B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE"
-Autres opérations imposables;N;;b2.b2;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-CREDIT;O;;;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Autres opérations imposables
-Crédit de TVA;N;;b40.b40;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Autres opérations imposables/CREDIT
-Remboursement demandé sur formulaire n°3519;N;;b41.b41;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Autres opérations imposables/CREDIT
-Crédit à reporter;N;;b42.b42;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Autres opérations imposables/CREDIT
-Achats de prestations de services intracommunautaires;N;;b3.b3;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
-TAXE A PAYER;O;;;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Achats de prestations de services intracommunautaires
-TVA nette due;N;;b43.b43;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Achats de prestations de services intracommunautaires/TAXE A PAYER
-Taxes assimilées calculées sur annexe n°3310 A;N;;b44.b44;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Achats de prestations de services intracommunautaires/TAXE A PAYER
-"Sommes à imputer, exprimées en euros, y compris acompte congés";N;;b45.b45;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Achats de prestations de services intracommunautaires/TAXE A PAYER
-"Sommes à ajouter, exprimées en euros, y compris acompte congés";N;;b46.b46;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Achats de prestations de services intracommunautaires/TAXE A PAYER
-Total à payer;N;;b47.b47;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)/Achats de prestations de services intracommunautaires/TAXE A PAYER
+Ventes, prestations de services;N;;b1;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Autres opérations imposables;N;;b2;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Achats de prestations de services intracommunautaires;N;;b3;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Importations (entreprises ayant opté pour le dispositif d’autoliquidation de la TVA à l’importation);N;;b4;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Acquisitions intracommunautaires;N;;b5;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Livraisons d’électricité, de gaz naturel, de chaleur ou de froid imposables en France;N;;b6;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Achats de biens ou de prestations de services réalisées auprès d'un assujetti non établi en France;N;;b7;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
+Régularisations (imposables);N;;b8;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS IMPOSABLES (H.T.)
OPERATIONS NON IMPOSABLES;O;;;A. MONTANT DES OPERATIONS REALISEES
-Exportations hors CE;N;;b8.b8;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
-Autres opérations non imposables;N;;b9.b9;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
-Livraisons intracommunautaires;N;;b10.b10;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
-Livraisons de gaz naturel ou d'électricité non imposables en France;N;;b11.b11;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
-Achats de franchise;N;;b12.b12;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
-Ventes de biens ou prestations de services réalisées aurpès d'un assujetti non établi en France;N;;b13.b13;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
-Régularisations (non imposables);N;;b14.b14;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
\ No newline at end of file
+Exportations hors CE;N;;b9;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+Autres opérations non imposables;N;;b10;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+Livraisons intracommunautaires;N;;b11;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+Livraisons d’électricité, de gaz naturel, de chaleur ou de froid non imposables en France;N;;b12;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+Achats de franchise;N;;b13;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+Ventes de biens ou prestations de services réalisées aurpès d'un assujetti non établi en France;N;;b14;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+Régularisations (non imposables);N;;b15;A. MONTANT DES OPERATIONS REALISEES/OPERATIONS NON IMPOSABLES
+B. DECOMPTE DE LA TVA A PAYER;O;;;
+TVA BRUTE;O;;;B. DECOMPTE DE LA TVA A PAYER
+Opérations réalisées en France métropolitaine;O;;;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE
+Taux normal 20% (Base hors taxe);N;;b16;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine
+Taux normal 20% (Taxe due);N;;b17;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine
+Taux réduit 5,5% (Base hors taxe);N;;b18;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine
+Taux réduit 5,5% (Taxe due);N;;b18;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées en France métropolitaine
+Opérations réalisées dans les DOM;O;;;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE
+Taux normal 8,5% (Base hors taxe);N;;b22;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM
+Taux normal 8,5% (Taxe due);N;;b23;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM
+Taux réduit 2,1% (Base hors taxe);N;;b24;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM
+Taux réduit 2,1% (Taxe due);N;;b25;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations réalisées dans les DOM
+Opérations imposables à un autre taux (France métropolitaine ou DOM);O;;;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE
+Ancien taux (Base hors taxe);N;;b28;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Ancien taux (Taxe due);N;;b29;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Opérations imposables à un taux particulier (Base hors taxe);N;;b30;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Opérations imposables à un taux particulier (Taxe due);N;;b31;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+TVA antérieurement déduite à reverser;N;;b32;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Sommes à ajouter, y compris acompte congés (exprimées en euro).;N;;b33;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Total de le TVA brute due (lignes 08 à 5B);N;;b34;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Dont TVA sur importations bénéficiant du dispositif d’autoliquidation;N;;b35;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Dont TVA sur acquisitions intracommunautaires;N;;b36;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+Dont TVA sur opérations à destination de Monaco;N;;b37;B. DECOMPTE DE LA TVA A PAYER/TVA BRUTE/Opérations imposables à un autre taux (France métropolitaine ou DOM)
+TVA DEDUCTIBLE;O;;;B. DECOMPTE DE LA TVA A PAYER
+Biens constituant des immobilisations;N;;b38;B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE
+Autres biens et services;N;;b39;B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE
+Autre TVA à déduire;N;;b40;B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE
+Report du crédit apparaissant ligne 27 de la précédente déclaration;N;;b41;B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE
+Total TVA déductible;N;;total1;B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE
+Dont TVA non perçue récupérable par les assujettis disposant d'un établissement stable dans les DOM;N;;b43;B. DECOMPTE DE LA TVA A PAYER/TVA DEDUCTIBLE
+CREDIT;O;;;B. DECOMPTE DE LA TVA A PAYER
+Crédit de TVA (ligne 23 – ligne 16).;N;;b44;B. DECOMPTE DE LA TVA A PAYER/CREDIT/Autres opérations imposables/CREDIT
+Remboursement de crédit demandé sur formulaire n°3519 joint;N;;b45;B. DECOMPTE DE LA TVA A PAYER/CREDIT/Autres opérations imposables/CREDIT
+Crédit de TVA transféré à la société tête de groupe sur la déclaration récapitulative 3310-CA3G;N;;b46;B. DECOMPTE DE LA TVA A PAYER/CREDIT/Autres opérations imposables/CREDIT
+Crédit à reporter ( ligne 25 – ligne 26 – ligne AA );N;;b47;B. DECOMPTE DE LA TVA A PAYER/CREDIT/Autres opérations imposables/CREDIT
+TAXE A PAYER;O;;;B. DECOMPTE DE LA TVA A PAYER
+TVA nette due (ligne 16 – ligne 23);N;;b48;B. DECOMPTE DE LA TVA A PAYER/TAXE A PAYER/Achats de prestations de services intracommunautaires/TAXE A PAYER
+Taxes assimilées calculées sur annexe n°3310 A;N;;b49;B. DECOMPTE DE LA TVA A PAYER/TAXE A PAYER/Achats de prestations de services intracommunautaires/TAXE A PAYER
+Total à payer acquitté par la société tête de groupe sur la déclaration récapitulative 3310-CA3G;N;;b50;B. DECOMPTE DE LA TVA A PAYER/TAXE A PAYER/Achats de prestations de services intracommunautaires/TAXE A PAYER
+Total à payer (lignes 28 + 29 – AB);N;;total2;B. DECOMPTE DE LA TVA A PAYER/TAXE A PAYER
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 32a10b7..618b24a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -603,6 +603,12 @@
<version>${launch4jPluginVersion}</version>
</dependency>
+ <dependency>
+ <groupId>com.itextpdf</groupId>
+ <artifactId>itextpdf</artifactId>
+ <version>5.5.1</version>
+ </dependency>
+
</dependencies>
</dependencyManagement>
--
To stop receiving notification emails like this one, please contact
chorem.org SCM administrator <admin+scm(a)chorem.org>.
1
0
08/28: refs #1241 refactoring général sur les rapports, renommage variable, utilisation de style dans les rapports
by chorem.org scm 30 Nov '15
by chorem.org scm 30 Nov '15
30 Nov '15
This is an automated email from the git hooks/post-receive script.
New commit to branch feature/1241-account-report in repository lima.
See http://git.chorem.org/lima.git
commit b01912625c723f6e6274b5453fc1fe6b0f708469
Author: dcosse <cosse(a)codelutin.com>
Date: Tue Jul 7 16:41:55 2015 +0200
refs #1241 refactoring général sur les rapports, renommage variable, utilisation de style dans les rapports
---
.../chorem/lima/business/LimaBusinessConfig.java | 11 +
.../ejb/report/AccountReportServiceImpl.java | 11 +-
.../ejb/report/BalanceReportServiceImpl.java | 80 ++--
.../report/GeneralEntryBookReportServiceImpl.java | 20 +-
.../ejb/report/LedgerReportServiceImpl.java | 17 +-
.../ProvisionalEntryBookReportServiceImpl.java | 44 +--
.../resources/i18n/lima-business_en_GB.properties | 13 +-
.../resources/i18n/lima-business_fr_FR.properties | 13 +-
.../org/chorem/lima/beans/BalanceAccountImpl.java | 8 +-
lima-callao/src/main/xmi/lima-callao-model.zargo | Bin 58818 -> 59242 bytes
.../jasperreports/account/AccountEntry.jrxml | 8 +-
.../balance/BalanceReportAccountReport.jrxml | 18 +-
.../balance/BalanceSubAccountsReport.jrxml | 48 +--
.../jasperreports/entryBook/DocumentReport.jrxml | 42 ++-
.../jasperreports/entryBook/EntryBookReport.jrxml | 76 +---
.../entryBook/FinancialPeriodReport.jrxml | 187 ++-------
.../entryBook/TransactionReport.jrxml | 193 +++-------
.../generalEntryBook/DocumentReport.jrxml | 418 ++++++++-------------
.../generalEntryBook/EntryBookPeriodReport.jrxml | 48 +--
.../GeneralEntryBookEntryReport.jrxml | 11 +-
.../generalLedger/DocumentReport.jrxml | 346 +++++++----------
.../generalLedger/GeneralLedgerEntryReport.jrxml | 204 +++-------
.../generalLedger/GeneralLedgerReport.jrxml | 101 ++---
23 files changed, 708 insertions(+), 1209 deletions(-)
diff --git a/lima-business/src/main/java/org/chorem/lima/business/LimaBusinessConfig.java b/lima-business/src/main/java/org/chorem/lima/business/LimaBusinessConfig.java
index 5b01b0f..c7beb4f 100644
--- a/lima-business/src/main/java/org/chorem/lima/business/LimaBusinessConfig.java
+++ b/lima-business/src/main/java/org/chorem/lima/business/LimaBusinessConfig.java
@@ -245,6 +245,16 @@ public class LimaBusinessConfig {
saveConfig();
}
+ public String getDateFormat() {
+ return config.getOption(BusinessConfigOption.DATE_FORMAT.key);
+ }
+
+ public void setDateFormat(String locale) {
+ config.setOption(BusinessConfigOption.DATE_FORMAT.key, locale);
+ saveConfig();
+ }
+
+
public char getDecimalSeparator() {
char decimalSeparator = config.getOption(BusinessConfigOption.DECIMAL_SEPARATOR.key).charAt(0);
return decimalSeparator;
@@ -338,6 +348,7 @@ public class LimaBusinessConfig {
SCALE("lima.data.bigDecimal.scale", t("lima.config.scale.label"), n("lima.config.scale.description"), "2", String.class, false, false),
CURRENCY("lima.config.currency", t("lima.config.currency.label"), n("lima.config.currency.description"), "false", Boolean.class, false, false),
+ DATE_FORMAT("lima.config.dateFormat", t("lima.config.dateFormat.label"), n("lima.config.dateFormat.description"), "DD/MM/YYYY", Boolean.class, false, false),
DECIMAL_SEPARATOR("lima.data.bigDecimal.decimalSeparator", t("lima.config.decimalSeparator.label"), "", ",", Character.class, false, false),
THOUSAND_SEPARATOR("lima.thousandSeparator", t("lima.config.thousandSeparator.label"), n("lima.config.thousandSeparator.description"), " ", Character.class, false, false);
diff --git a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/AccountReportServiceImpl.java b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/AccountReportServiceImpl.java
index 5c4a88a..6616e08 100644
--- a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/AccountReportServiceImpl.java
+++ b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/AccountReportServiceImpl.java
@@ -7,6 +7,7 @@ import org.chorem.lima.beans.AccountEntryImpl;
import org.chorem.lima.beans.DocumentReport;
import org.chorem.lima.beans.DocumentReportImpl;
import org.chorem.lima.beans.ReportsDatas;
+import org.chorem.lima.business.LimaBusinessConfig;
import org.chorem.lima.business.api.IdentityService;
import org.chorem.lima.business.api.ReportService;
import org.chorem.lima.business.api.report.AccountReportService;
@@ -37,8 +38,6 @@ import static org.nuiton.i18n.I18n.t;
@TransactionAttribute
public class AccountReportServiceImpl extends AbstractLimaService implements AccountReportService {
- protected static final String TITLE = "COMPTE";
-
@EJB
protected IdentityService identityService;
@EJB
@@ -46,7 +45,8 @@ public class AccountReportServiceImpl extends AbstractLimaService implements Acc
@Override
public DocumentReport getAccountDocumentReport(String accountId, Date from, Date to, JasperReport accountsEntryJasperReport, DecimalFormat bigDecimalFormat) {
- DocumentReport documentReport = getDocumentReport(from, to, accountsEntryJasperReport, bigDecimalFormat, identityService);
+ String reportName = t("lima.config.documentReport.accountReport.title");
+ DocumentReport documentReport = getDocumentReport(reportName, from, to, accountsEntryJasperReport, bigDecimalFormat, identityService);
documentReport.setColumnAccountTitle(t("lima.config.documentReport.columnAccountTitle"));
documentReport.setColumnDateTitle(t("lima.config.documentReport.columnDateTitle"));
@@ -90,6 +90,7 @@ public class AccountReportServiceImpl extends AbstractLimaService implements Acc
accountEntry.setDebit(entry.isDebit() ? entry.getAmount() : BigDecimal.ZERO);
accountEntry.setCredit(entry.isDebit() ? BigDecimal.ZERO : entry.getAmount());
accountEntry.setFormatter(bigDecimalFormat);
+ accountEntry.setDateFormat(LimaBusinessConfig.getInstance().getDateFormat());
accountEntries.add(accountEntry);
}
}
@@ -115,13 +116,13 @@ public class AccountReportServiceImpl extends AbstractLimaService implements Acc
return documentReport;
}
- protected static DocumentReport getDocumentReport(Date from, Date to, JasperReport subReport, DecimalFormat bigDecimalFormat, IdentityService identityService) {
+ protected static DocumentReport getDocumentReport(String reportName, Date from, Date to, JasperReport subReport, DecimalFormat bigDecimalFormat, IdentityService identityService) {
Date currentDate = new Date();
DocumentReport documentReport = new DocumentReportImpl();
documentReport.setSubReport(subReport);
documentReport.setFormatter(bigDecimalFormat);
- documentReport.setTitleReport(TITLE);
+ documentReport.setTitleReport(reportName);
Identity identity = identityService.getIdentity();
String companyName = identity == null ? "" : identity.getName();
diff --git a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/BalanceReportServiceImpl.java b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/BalanceReportServiceImpl.java
index 7a24de4..7992e2f 100644
--- a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/BalanceReportServiceImpl.java
+++ b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/BalanceReportServiceImpl.java
@@ -77,31 +77,31 @@ public class BalanceReportServiceImpl extends AbstractLimaService implements Bal
protected static final Integer ACCOUNT_NUMBER_SIZE = 6;
- protected static final String TITLE = "BALANCE";
-
protected static final Predicate<BalanceAccount> HAS_NO_ENTRY = new Predicate<BalanceAccount>() {
@Override
public boolean apply(BalanceAccount subClasses) {
boolean result = BigDecimal.ZERO.equals(subClasses.getAmountDebit()) &&
BigDecimal.ZERO.equals(subClasses.getAmountCredit()) &&
- BigDecimal.ZERO.equals(subClasses.getSoldeDebit()) &&
- BigDecimal.ZERO.equals(subClasses.getSoldeCredit());
+ BigDecimal.ZERO.equals(subClasses.getDebitBalance()) &&
+ BigDecimal.ZERO.equals(subClasses.getCreditBalance());
return result;
}
};
@Override
public DocumentReport getBalanceDocumentReport(Date from, Date to, String selectedAccounts, DecimalFormat bigDecimalFormat, JasperReport mainAccountsJasperReport, JasperReport subAccountsJasperReport) {
-
- DocumentReport documentReport = AccountReportServiceImpl.getDocumentReport(from, to, mainAccountsJasperReport, bigDecimalFormat, identityService);
+ String reportName = t("lima.config.documentReport.balanceReport.title");
+ DocumentReport documentReport = AccountReportServiceImpl.getDocumentReport(reportName, from, to, mainAccountsJasperReport, bigDecimalFormat, identityService);
documentReport.setColumnAccountTitle(t("lima.config.documentReport.columnAccountTitle"));
- documentReport.setColumnDescriptionTitle(t("lima.config.documentReport.columnDescriptionTitle"));
- documentReport.setColumnTotalForPeriodTitle(t("lima.config.documentReport.columnTotalForPeriodTitle"));
documentReport.setColumnBalanceForPeriodTitle(t("lima.config.documentReport.columnBalanceForPeriodTitle"));
- documentReport.setColumnDebitTitle(t("lima.config.documentReport.columnDebitTitle"));
documentReport.setColumnCreditTitle(t("lima.config.documentReport.columnCreditTitle"));
+ documentReport.setColumnDateTitle(t("lima.config.documentReport.columnDateTitle"));
+ documentReport.setColumnDebitTitle(t("lima.config.documentReport.columnDebitTitle"));
+ documentReport.setColumnDescriptionTitle(t("lima.config.documentReport.columnDescriptionTitle"));
+ documentReport.setColumnTotalForPeriodTitle(t("lima.config.documentReport.columnTotalForPeriodTitle"));
+ documentReport.setColumnVoucherTitle(t("lima.config.documentReport.columnVoucherTitle"));
BalanceTrial balanceTrial = new BalanceTrialImpl();
balanceTrial.setReportsDatas(new ArrayList<ReportsDatas>());
@@ -140,8 +140,10 @@ public class BalanceReportServiceImpl extends AbstractLimaService implements Bal
accountsByClasses.put(accountClass, accountSubAccounts);
returnedAccounts.add(accountSubAccounts);
}
- BalanceAccount subClassAccount = bindAccountToBalanceReportAccount(accountClass, account, from, to, bigDecimalFormat);
- accountSubAccounts.addSubAccount(subClassAccount);
+ BalanceAccount subClassAccount = computeSubAccountBalance(accountClass, account, from, to, bigDecimalFormat);
+ if (subClassAccount != null) {
+ accountSubAccounts.addSubAccount(subClassAccount);
+ }
}
}
@@ -164,23 +166,13 @@ public class BalanceReportServiceImpl extends AbstractLimaService implements Bal
* Get all entries if true
* @throws org.nuiton.topia.persistence.TopiaException
*/
- protected BalanceAccount bindAccountToBalanceReportAccount(String mainAccountLabel, Account account, Date beginDate, Date endDate, DecimalFormat bigDecimalFormat) {
- BalanceAccount balanceAccount = new BalanceAccountImpl();
- balanceAccount.setMainAccountLabel(mainAccountLabel);
- balanceAccount.setFormatter(bigDecimalFormat);
-
- String accountNumber = account.getAccountNumber();
- accountNumber = StringUtils.rightPad(accountNumber, ACCOUNT_NUMBER_SIZE - accountNumber.length(), '0');
- balanceAccount.setAccountNumber(accountNumber);
- balanceAccount.setLabel(account.getLabel());
- balanceAccount.setSubTotalForLabel(t("lima.config.documentReport.subTotalFor"));
- balanceAccount.setTotalForLabel(t("lima.config.documentReport.totalFor"));
+ protected BalanceAccount computeSubAccountBalance(String mainAccountLabel, Account account, Date beginDate, Date endDate, DecimalFormat bigDecimalFormat) {
EntryTopiaDao entryTopiaDao = getDaoHelper().getEntryDao();
BigDecimal credit = BigDecimal.ZERO;
BigDecimal debit = BigDecimal.ZERO;
- BigDecimal sold = BigDecimal.ZERO;
+ BigDecimal balance = BigDecimal.ZERO;
List<Object[]> results = entryTopiaDao.getDebitCreditOfBalancedTransaction(account, beginDate, endDate);
@@ -199,20 +191,40 @@ public class BalanceReportServiceImpl extends AbstractLimaService implements Bal
// set the amounts and sold
//sold = debit - credit
- sold = sold.add(debit);
- sold = sold.subtract(credit);
+ balance = balance.add(debit);
+ balance = balance.subtract(credit);
+
+ BalanceAccount balanceAccount = addSubAccountReport(mainAccountLabel, account, bigDecimalFormat, credit, debit, balance);
- if (sold.compareTo(BigDecimal.ZERO) == 1) {
- balanceAccount.setSoldeDebit(sold.abs());
- balanceAccount.setSoldeCredit(BigDecimal.ZERO);
- } else {
- balanceAccount.setSoldeCredit(sold.abs());
- balanceAccount.setSoldeDebit(BigDecimal.ZERO);
- }
- balanceAccount.setAmountCredit(credit);
- balanceAccount.setAmountDebit(debit);
+ return balanceAccount;
+ }
+ protected BalanceAccount addSubAccountReport(String mainAccountLabel, Account account, DecimalFormat bigDecimalFormat, BigDecimal credit, BigDecimal debit, BigDecimal balance) {
+ BalanceAccount balanceAccount = null;
+ if (BigDecimal.ZERO.compareTo(credit) != 0 || BigDecimal.ZERO.compareTo(debit) != 0) {
+ balanceAccount = new BalanceAccountImpl();
+ balanceAccount.setMainAccountLabel(mainAccountLabel);
+ balanceAccount.setFormatter(bigDecimalFormat);
+
+ String accountNumber = account.getAccountNumber();
+ accountNumber = StringUtils.rightPad(accountNumber, ACCOUNT_NUMBER_SIZE - accountNumber.length(), '0');
+ balanceAccount.setAccountNumber(accountNumber);
+ balanceAccount.setLabel(account.getLabel());
+ balanceAccount.setSubTotalForLabel(t("lima.config.documentReport.subTotalFor"));
+ balanceAccount.setTotalForLabel(t("lima.config.documentReport.totalFor"));
+
+ if (balance.compareTo(BigDecimal.ZERO) == 1) {
+ balanceAccount.setDebitBalance(balance.abs());
+ balanceAccount.setCreditBalance(BigDecimal.ZERO);
+ } else {
+ balanceAccount.setCreditBalance(balance.abs());
+ balanceAccount.setDebitBalance(BigDecimal.ZERO);
+ }
+
+ balanceAccount.setAmountCredit(credit);
+ balanceAccount.setAmountDebit(debit);
+ }
return balanceAccount;
}
}
diff --git a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/GeneralEntryBookReportServiceImpl.java b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/GeneralEntryBookReportServiceImpl.java
index ec77f90..31ea391 100644
--- a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/GeneralEntryBookReportServiceImpl.java
+++ b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/GeneralEntryBookReportServiceImpl.java
@@ -35,6 +35,7 @@ import org.chorem.lima.beans.GeneralEntryBook;
import org.chorem.lima.beans.GeneralEntryBookEntry;
import org.chorem.lima.beans.GeneralEntryBookEntryImpl;
import org.chorem.lima.beans.GeneralEntryBookImpl;
+import org.chorem.lima.business.LimaBusinessConfig;
import org.chorem.lima.business.api.ClosedPeriodicEntryBookService;
import org.chorem.lima.business.api.EntryService;
import org.chorem.lima.business.api.FinancialPeriodService;
@@ -90,19 +91,17 @@ public class GeneralEntryBookReportServiceImpl extends AbstractLimaService imple
@EJB
protected IdentityService identityService;
-
- protected static final String TITLE = "Journal Général Provisoire";
-
@Override
public DocumentReport getGeneralEntryBookDocumentReport(Date beginDate, Date endDate, DecimalFormat bigDecimalFormat, JasperReport generalEntryBooksJasperReport, JasperReport entriesJasperReport) {
-
- DocumentReport documentReport = AccountReportServiceImpl.getDocumentReport(beginDate, endDate, generalEntryBooksJasperReport, bigDecimalFormat, identityService);
+ String reportName = t("lima.config.documentReport.generalEntryBookReport.title");
+ DocumentReport documentReport = AccountReportServiceImpl.getDocumentReport(reportName, beginDate, endDate, generalEntryBooksJasperReport, bigDecimalFormat, identityService);
documentReport.setColumnEntryBookTitle(t("lima.config.documentReport.columnEntryBookTitle"));
documentReport.setColumnDescriptionTitle(t("lima.config.documentReport.columnDescriptionTitle"));
documentReport.setColumnTotalForPeriodTitle(t("lima.config.documentReport.columnTotalForPeriodTitle"));
documentReport.setColumnDebitTitle(t("lima.config.documentReport.columnDebitTitle"));
documentReport.setColumnCreditTitle(t("lima.config.documentReport.columnCreditTitle"));
+ documentReport.setLastPageColumnDescription(t("lima.config.documentReport.entrybook.lastPageColumnDescription"));
try {
if (beginDate != null && endDate != null) {
@@ -134,7 +133,7 @@ public class GeneralEntryBookReportServiceImpl extends AbstractLimaService imple
generalEntryBookEntry = new GeneralEntryBookEntryImpl();
generalEntryBookEntry.setFormatter(bigDecimalFormat);
generalEntryBookEntry.setCode(closedPeriodicEntryBook.getEntryBook().getCode());
- generalEntryBookEntry.setLibelle(closedPeriodicEntryBook.getEntryBook().getLabel());
+ generalEntryBookEntry.setDescription(closedPeriodicEntryBook.getEntryBook().getLabel());
generalEntryBookEntryByEntryBookCode.put(entryBookCode, generalEntryBookEntry);
// init debit and credit
@@ -178,10 +177,11 @@ public class GeneralEntryBookReportServiceImpl extends AbstractLimaService imple
if (subAmountCredit.compareTo(BigDecimal.ZERO) != 0 && subAmountDebit.compareTo(BigDecimal.ZERO) != 0) {
GeneralEntryBook generalEntryBook = new GeneralEntryBookImpl();
generalEntryBook.setFormatter(bigDecimalFormat);
+ generalEntryBook.setDateFormat(LimaBusinessConfig.getInstance().getDateFormat());
generalEntryBook.setPeriod(financialPeriod.getBeginDate());
generalEntryBook.setSubReport(entriesJasperReport);
- generalEntryBook.setSoldeDebit(subAmountDebit);
- generalEntryBook.setSoldeCredit(subAmountCredit);
+ generalEntryBook.setDebitBalance(subAmountDebit);
+ generalEntryBook.setCreditBalance(subAmountCredit);
generalEntryBook.setEntries(Lists.newArrayList(generalEntryBookEntries));
documentReport.addGeneralEntryBooks(generalEntryBook);
@@ -191,8 +191,8 @@ public class GeneralEntryBookReportServiceImpl extends AbstractLimaService imple
}
- documentReport.setSoldeDebit(amountDebit);
- documentReport.setSoldeCredit(amountCredit);
+ documentReport.setDebitBalance(amountDebit);
+ documentReport.setCreditBalance(amountCredit);
}
} catch (Exception ex) {
log.error("Can't create document", ex);
diff --git a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/LedgerReportServiceImpl.java b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/LedgerReportServiceImpl.java
index 50c5b17..3e4c4d7 100644
--- a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/LedgerReportServiceImpl.java
+++ b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/LedgerReportServiceImpl.java
@@ -31,6 +31,7 @@ import org.chorem.lima.beans.GeneralLedgerEntry;
import org.chorem.lima.beans.GeneralLedgerEntryImpl;
import org.chorem.lima.beans.GeneralLedgerImpl;
import org.chorem.lima.beans.ReportsDatas;
+import org.chorem.lima.business.LimaBusinessConfig;
import org.chorem.lima.business.api.IdentityService;
import org.chorem.lima.business.api.ReportService;
import org.chorem.lima.business.api.report.LedgerReportService;
@@ -46,6 +47,7 @@ import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import java.math.BigDecimal;
import java.text.DecimalFormat;
+import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Date;
import java.util.List;
@@ -66,16 +68,16 @@ public class LedgerReportServiceImpl extends AbstractLimaService implements Ledg
@EJB
protected IdentityService identityService;
- protected static final String TITLE = t("lima-business.document.ledger");
-
+ // grand livre
@Override
public DocumentReport getLedgerDocumentReport(Date beginDate, Date endDate, DecimalFormat decimalFormat, JasperReport generalLedgersJasperReport, JasperReport entriesJasperReport) {
-
- DocumentReport documentReport = AccountReportServiceImpl.getDocumentReport(beginDate, endDate, generalLedgersJasperReport, decimalFormat, identityService);
+ String reportName = t("lima.config.documentReport.ledgerReport.title");
+ DocumentReport documentReport = AccountReportServiceImpl.getDocumentReport(reportName, beginDate, endDate, generalLedgersJasperReport, decimalFormat, identityService);
documentReport.setColumnDateTitle(t("lima.config.documentReport.setColumnDateTitle"));
documentReport.setColumnEntryBookTitle(t("lima.config.documentReport.setColumnEntryBookTitle"));
documentReport.setColumnVoucherTitle(t("lima.config.documentReport.columnVoucherTitle"));
+ documentReport.setColumnDescriptionTitle(t("lima.config.documentReport.columnDescriptionTitle"));
documentReport.setColumnDebitTitle(t("lima.config.documentReport.columnDebitTitle"));
documentReport.setColumnCreditTitle(t("lima.config.documentReport.columnCreditTitle"));
documentReport.setColumnBalanceTitle(t("lima.config.documentReport.columnBalanceTitle"));
@@ -85,6 +87,8 @@ public class LedgerReportServiceImpl extends AbstractLimaService implements Ledg
BalanceTrial balanceTrial = reportService.generateLedger(beginDate, endDate, null, true);
documentReport.setHeaderSelectedAccounts(balanceTrial.getFromToAccountNumber());
+
+ SimpleDateFormat dateFormatter = new SimpleDateFormat(LimaBusinessConfig.getInstance().getDateFormat());
if (balanceTrial.getReportsDatas() != null) {
for (ReportsDatas reportsDatas : balanceTrial.getReportsDatas()) {
@@ -101,7 +105,7 @@ public class LedgerReportServiceImpl extends AbstractLimaService implements Ledg
BigDecimal amountDebit = reportsDatas.getAmountDebit();
generalLedger.setDebit(amountDebit);
generalLedger.setCredit(amountCredit);
- generalLedger.setSolde(amountDebit.subtract(amountCredit));
+ generalLedger.setBalance(amountDebit.subtract(amountCredit));
generalLedger.setSubReport(entriesJasperReport);
generalLedger.setNbEntries(balanceTrial.getReportsDatas().size());
documentReport.addGeneralLedgers(generalLedger);
@@ -125,6 +129,7 @@ public class LedgerReportServiceImpl extends AbstractLimaService implements Ledg
GeneralLedgerEntry generalLedgerEntry = new GeneralLedgerEntryImpl();
generalLedgerEntry.setFormatter(decimalFormat);
+ generalLedgerEntry.setDateFormat(dateFormatter);
generalLedgerEntry.setDate(entry.getFinancialTransaction().getTransactionDate());
generalLedgerEntry.setEntryBook(entryBookCode);
generalLedgerEntry.setVoucher(entry.getVoucher());
@@ -132,7 +137,7 @@ public class LedgerReportServiceImpl extends AbstractLimaService implements Ledg
generalLedgerEntry.setDebit(entryAmountDebit);
generalLedgerEntry.setCredit(entryAmountCredit);
balance = balance.add(entryAmountDebit.subtract(entryAmountCredit));
- generalLedgerEntry.setSolde(balance);
+ generalLedgerEntry.setBalance(balance);
generalLedgerEntry.setNbEntries(entries.size());
generalLedger.addEntries(generalLedgerEntry);
}
diff --git a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/ProvisionalEntryBookReportServiceImpl.java b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/ProvisionalEntryBookReportServiceImpl.java
index 41d03a5..cf5a0a5 100644
--- a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/ProvisionalEntryBookReportServiceImpl.java
+++ b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/ProvisionalEntryBookReportServiceImpl.java
@@ -31,6 +31,7 @@ import org.chorem.lima.beans.EntryBookImpl;
import org.chorem.lima.beans.FinancialPeriodImpl;
import org.chorem.lima.beans.Transaction;
import org.chorem.lima.beans.TransactionImpl;
+import org.chorem.lima.business.LimaBusinessConfig;
import org.chorem.lima.business.api.EntryBookService;
import org.chorem.lima.business.api.EntryService;
import org.chorem.lima.business.api.FinancialPeriodService;
@@ -48,6 +49,7 @@ import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import java.math.BigDecimal;
import java.text.DecimalFormat;
+import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
@@ -77,30 +79,26 @@ public class ProvisionalEntryBookReportServiceImpl implements ProvisionalEntryBo
@EJB
protected FinancialTransactionService financialTransactionService;
- protected static final String TITLE = "Récapitulatif par compte";
-
- /**
- * - ENTRY_BOOK_REPORT_PATH
- * - FINANCIAL_PERIOD_REPORT_PATH
- * - TRANSACTION_REPORT_PATH
- * - CURRENCY
- * - BIG_DECIMAL_FORMAT
- **/
@Override
public DocumentReport getEntryBookDocumentReport(Date beginDate, Date endDate, List<String> entryBookCodes, DecimalFormat bigDecimalFormat, JasperReport entryBooksJasperReport, JasperReport financialPeriodsJasperReport, JasperReport transactionsJasperReport) {
+ String reportName = t("lima.config.documentReport.provisionalEntryBookReport.title");
+ DocumentReport documentReport = AccountReportServiceImpl.getDocumentReport(reportName, beginDate, endDate, entryBooksJasperReport, bigDecimalFormat, identityService);
- DocumentReport documentReport = AccountReportServiceImpl.getDocumentReport(beginDate, endDate, entryBooksJasperReport, bigDecimalFormat, identityService);
-
- documentReport.setColumnEntryBookTitle(t("lima.config.documentReport.columnEntryBookTitle"));
+ documentReport.setColumnAccountTitle(t("lima.config.documentReport.columnAccountTitle"));
+ documentReport.setColumnCreditTitle(t("lima.config.documentReport.columnCreditTitle"));
+ documentReport.setColumnDateTitle(t("lima.config.documentReport.columnDateTitle"));
+ documentReport.setColumnDebitTitle(t("lima.config.documentReport.columnDebitTitle"));
documentReport.setColumnDescriptionTitle(t("lima.config.documentReport.columnDescriptionTitle"));
documentReport.setColumnTotalForPeriodTitle(t("lima.config.documentReport.columnTotalForPeriodTitle"));
- documentReport.setColumnDebitTitle(t("lima.config.documentReport.columnDebitTitle"));
- documentReport.setColumnCreditTitle(t("lima.config.documentReport.columnCreditTitle"));
+ documentReport.setColumnVoucherTitle(t("lima.config.documentReport.columnVoucherTitle"));
+
+ documentReport.setLastPageColumnDescription(t("lima.config.documentReport.generalEntrybook.lastPageColumnDescription"));
try {
if (beginDate != null && endDate != null) {
+ SimpleDateFormat dateFormatter = new SimpleDateFormat(LimaBusinessConfig.getInstance().getDateFormat());
BigDecimal documentReportDebit = BigDecimal.ZERO;
BigDecimal documentReportCredit = BigDecimal.ZERO;
@@ -118,7 +116,7 @@ public class ProvisionalEntryBookReportServiceImpl implements ProvisionalEntryBo
for(EntryBook entryBook:entryBooks) {
org.chorem.lima.beans.EntryBook entryBookReport = new EntryBookImpl();
- entryBookReport.setLibelle(entryBook.getLabel());
+ entryBookReport.setLabel(entryBook.getLabel());
entryBookReport.setCode(entryBook.getCode());
entryBookReport.setSubReport(financialPeriodsJasperReport);
entryBookReport.setFormatter(bigDecimalFormat);
@@ -153,11 +151,12 @@ public class ProvisionalEntryBookReportServiceImpl implements ProvisionalEntryBo
Transaction transaction = new TransactionImpl();
transaction.setTransactionDate(entry.getFinancialTransaction().getTransactionDate());
transaction.setAccount(accountLabel);
- transaction.setLibelle(entry.getDescription());
+ transaction.setDescription(entry.getDescription());
transaction.setVoucher(entry.getVoucher());
transaction.setDebit(debit);
transaction.setCredit(credit);
transaction.setFormatter(bigDecimalFormat);
+ transaction.setDateFormat(dateFormatter);
financialPeriodDebit = financialPeriodDebit.add(debit);
financialPeriodCredit = financialPeriodCredit.add(credit);
@@ -169,9 +168,10 @@ public class ProvisionalEntryBookReportServiceImpl implements ProvisionalEntryBo
if (financialPeriodDebit.compareTo(BigDecimal.ZERO) != 0 || financialPeriodCredit.compareTo(BigDecimal.ZERO) != 0) {
financialPeriodReport.setEntryBookCode(entryBook.getCode());
- financialPeriodReport.setSoldeDebit(financialPeriodDebit);
- financialPeriodReport.setSoldeCredit(financialPeriodCredit);
+ financialPeriodReport.setDebitBalance(financialPeriodDebit);
+ financialPeriodReport.setCreditBalance(financialPeriodCredit);
financialPeriodReport.setFormatter(bigDecimalFormat);
+ financialPeriodReport.setDateFormat(LimaBusinessConfig.getInstance().getDateFormat());
entryBookReport.addFinancialPeriods(financialPeriodReport);
entryBookSoldeDebit = entryBookSoldeDebit.add(financialPeriodDebit);
@@ -181,15 +181,15 @@ public class ProvisionalEntryBookReportServiceImpl implements ProvisionalEntryBo
}
if (entryBookSoldeDebit.compareTo(BigDecimal.ZERO) != 0 || entryBookSoldeCredit.compareTo(BigDecimal.ZERO) != 0) {
- entryBookReport.setSoldeDebit(entryBookSoldeDebit);
- entryBookReport.setSoldeCredit(entryBookSoldeCredit);
+ entryBookReport.setDebitBalance(entryBookSoldeDebit);
+ entryBookReport.setCreditBalance(entryBookSoldeCredit);
documentReport.addEntryBooks(entryBookReport);
documentReportDebit = documentReportDebit.add(entryBookSoldeDebit);
documentReportCredit = documentReportCredit.add(entryBookSoldeCredit);
}
}
- documentReport.setSoldeDebit(documentReportDebit);
- documentReport.setSoldeCredit(documentReportCredit);
+ documentReport.setDebitBalance(documentReportDebit);
+ documentReport.setCreditBalance(documentReportCredit);
}
} catch (Exception ex) {
log.error("Can't create document", ex);
diff --git a/lima-business/src/main/resources/i18n/lima-business_en_GB.properties b/lima-business/src/main/resources/i18n/lima-business_en_GB.properties
index f6f147a..921217d 100644
--- a/lima-business/src/main/resources/i18n/lima-business_en_GB.properties
+++ b/lima-business/src/main/resources/i18n/lima-business_en_GB.properties
@@ -54,15 +54,19 @@ lima.config.configFileName.description=Filename of Lima's configuration
lima.config.currency.description=
lima.config.currency.label=
lima.config.data.dir.description=Data directory of Lima
+lima.config.dateFormat.description=
+lima.config.dateFormat.label=
lima.config.decimalSeparator.label=
lima.config.documentReport.account.documentReportModelPath.description=
lima.config.documentReport.account.noAccount=Any account present
lima.config.documentReport.account.noAccountTitle=Any account present
+lima.config.documentReport.accountReport.title=ACCOUNT
lima.config.documentReport.assets=Assets
lima.config.documentReport.balance=Balance
lima.config.documentReport.balance.balanceAccountReportModelPath.description=
lima.config.documentReport.balance.balanceSubAccountReportModelPath.description=
lima.config.documentReport.balance.documentReportModelPath.description=
+lima.config.documentReport.balanceReport.title=BALANCE
lima.config.documentReport.balanceSheet=Balance
lima.config.documentReport.columnAccountTitle=Account
lima.config.documentReport.columnBalanceForPeriodTitle=Balance
@@ -79,10 +83,13 @@ lima.config.documentReport.currentAsset=Current asset
lima.config.documentReport.entrybook.documentReportModelPath.description=
lima.config.documentReport.entrybook.entryBookModelPath.description=
lima.config.documentReport.entrybook.financialPeriodModelPath.description=
+lima.config.documentReport.entrybook.lastPageColumnDescription=
lima.config.documentReport.entrybook.transactionReportModelPath.description=
+lima.config.documentReport.generalEntryBookReport.title=PROVISIONAL GENERAL ENTRY BOOK
lima.config.documentReport.generalEntrybook.documentReportModelPath.description=
lima.config.documentReport.generalEntrybook.generalEntryBookEntryModelPath.description=
lima.config.documentReport.generalEntrybook.generalEntryBookModelPath.description=
+lima.config.documentReport.generalEntrybook.lastPageColumnDescription=
lima.config.documentReport.generalLedger.documentReportModelPath.description=
lima.config.documentReport.generalLedger.generalLedgerEntryModelPath.description=
lima.config.documentReport.generalLedger.generalLedgerModelPath.description=
@@ -90,9 +97,11 @@ lima.config.documentReport.headerCurrencyLabel=Currency\:
lima.config.documentReport.headerSelectedAccounts=%s to %s
lima.config.documentReport.headerSelectedAccountsLabel=Accounts\:
lima.config.documentReport.investments=Investments
+lima.config.documentReport.ledgerReport.title=LEDGER
lima.config.documentReport.liabilities=Liabilities
-lima.config.documentReport.setColumnDateTitle=
-lima.config.documentReport.setColumnEntryBookTitle=
+lima.config.documentReport.provisionalEntryBookReport.title=SUMMARY BY ACCOUNT
+lima.config.documentReport.setColumnDateTitle=Date
+lima.config.documentReport.setColumnEntryBookTitle=Entry book
lima.config.documentReport.subTotalFor=Sub total for\:
lima.config.documentReport.titleCurrentDate=Printed on %s at %s
lima.config.documentReport.titleFromToDate=From %s to %s
diff --git a/lima-business/src/main/resources/i18n/lima-business_fr_FR.properties b/lima-business/src/main/resources/i18n/lima-business_fr_FR.properties
index d8d52a9..778321c 100644
--- a/lima-business/src/main/resources/i18n/lima-business_fr_FR.properties
+++ b/lima-business/src/main/resources/i18n/lima-business_fr_FR.properties
@@ -53,14 +53,18 @@ lima.config.configFileName.description=Nom du fichier de configuration de Lima
lima.config.currency.description=
lima.config.currency.label=
lima.config.data.dir.description=Répertoire des données de Lima
+lima.config.dateFormat.description=
+lima.config.dateFormat.label=
lima.config.decimalSeparator.label=
lima.config.documentReport.account.accountModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'account'
lima.config.documentReport.account.documentReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'DocumentReport'
+lima.config.documentReport.accountReport.title=COMPTE
lima.config.documentReport.assets=avoirs
lima.config.documentReport.balance=Solde
lima.config.documentReport.balance.balanceAccountReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'BalanceAccount'
lima.config.documentReport.balance.balanceSubAccountReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'BalanceAccount' des comptes enfants
lima.config.documentReport.balance.documentReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'DocumentReport
+lima.config.documentReport.balanceReport.title=BALANCE
lima.config.documentReport.balanceSheet=Balance
lima.config.documentReport.bigDecimalFormat=formattage des montants
lima.config.documentReport.columnAccountTitle=Compte
@@ -79,12 +83,15 @@ lima.config.documentReport.dir.description=Dossier des rapports
lima.config.documentReport.entrybook.documentReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'EntryBook'
lima.config.documentReport.entrybook.entryBookModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'EntryBook'
lima.config.documentReport.entrybook.financialPeriodModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'FinancialPeriod'
+lima.config.documentReport.entrybook.lastPageColumnDescription=Total pour les journaux sélectionnés
lima.config.documentReport.entrybook.transactionReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'Transaction'
lima.config.documentReport.financialStatement.documentReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'DocumentReport'
lima.config.documentReport.financialStatement.financialStatementModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'financialStatement'
+lima.config.documentReport.generalEntryBookReport.title=JOURNAL GÉNÉRAL PROVISOIRE
lima.config.documentReport.generalEntrybook.documentReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'DocumentReport'
lima.config.documentReport.generalEntrybook.generalEntryBookEntryModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'GeneralEntryBookEntry'
lima.config.documentReport.generalEntrybook.generalEntryBookModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'GeneralEntryBook'
+lima.config.documentReport.generalEntrybook.lastPageColumnDescription=Total du Journal Général
lima.config.documentReport.generalLedger.documentReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'DocumentReport'
lima.config.documentReport.generalLedger.generalLedgerEntryModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'generalLedgerEntry'
lima.config.documentReport.generalLedger.generalLedgerModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'generalLedger'
@@ -92,9 +99,11 @@ lima.config.documentReport.headerCurrencyLabel=Devise\:
lima.config.documentReport.headerSelectedAccounts=%s à %s
lima.config.documentReport.headerSelectedAccountsLabel=Comptes\:
lima.config.documentReport.investments=investissements
+lima.config.documentReport.ledgerReport.title=GRAND LIVRE
lima.config.documentReport.liabilities=passif
-lima.config.documentReport.setColumnDateTitle=
-lima.config.documentReport.setColumnEntryBookTitle=
+lima.config.documentReport.provisionalEntryBookReport.title=RÉCAPITULATIF PAR COMPTE
+lima.config.documentReport.setColumnDateTitle=Date
+lima.config.documentReport.setColumnEntryBookTitle=Journal
lima.config.documentReport.subTotalFor=Sous total pour\:
lima.config.documentReport.titleCurrentDate=Édition du %s à %s
lima.config.documentReport.titleFromToDate=Du %s au %s
diff --git a/lima-callao/src/main/java/org/chorem/lima/beans/BalanceAccountImpl.java b/lima-callao/src/main/java/org/chorem/lima/beans/BalanceAccountImpl.java
index 4b1070b..de819dc 100644
--- a/lima-callao/src/main/java/org/chorem/lima/beans/BalanceAccountImpl.java
+++ b/lima-callao/src/main/java/org/chorem/lima/beans/BalanceAccountImpl.java
@@ -37,16 +37,16 @@ public class BalanceAccountImpl extends BalanceAccount {
BigDecimal newAmountDebit = this.amountDebit == null ? BigDecimal.ZERO : this.amountDebit;
BigDecimal newAmountCredit = this.amountCredit == null ? BigDecimal.ZERO : this.amountCredit;
- BigDecimal newSoldeDebit = this.soldeDebit == null ? BigDecimal.ZERO : this.soldeDebit;
- BigDecimal newSoldeCredit = this.soldeCredit == null ? BigDecimal.ZERO : this.soldeCredit;
+ BigDecimal newSoldeDebit = this.debitBalance == null ? BigDecimal.ZERO : this.debitBalance;
+ BigDecimal newSoldeCredit = this.creditBalance == null ? BigDecimal.ZERO : this.creditBalance;
this.amountDebit = subAccount.getAmountDebit().add(newAmountDebit);
this.amountCredit = subAccount.getAmountCredit().add(newAmountCredit);
- this.soldeDebit = subAccount.getSoldeDebit().add(newSoldeDebit);
+ this.debitBalance = subAccount.getDebitBalance().add(newSoldeDebit);
- this.soldeCredit = subAccount.getSoldeCredit().add(newSoldeCredit);
+ this.creditBalance = subAccount.getCreditBalance().add(newSoldeCredit);
}
// firePropertyChange(PROPERTY_SUB_ACCOUNTS, null, subAccount);
diff --git a/lima-callao/src/main/xmi/lima-callao-model.zargo b/lima-callao/src/main/xmi/lima-callao-model.zargo
index 5e7eea2..8633e8e 100644
Binary files a/lima-callao/src/main/xmi/lima-callao-model.zargo and b/lima-callao/src/main/xmi/lima-callao-model.zargo differ
diff --git a/lima-report/src/main/resources/jasperreports/account/AccountEntry.jrxml b/lima-report/src/main/resources/jasperreports/account/AccountEntry.jrxml
index e46f3df..f800454 100644
--- a/lima-report/src/main/resources/jasperreports/account/AccountEntry.jrxml
+++ b/lima-report/src/main/resources/jasperreports/account/AccountEntry.jrxml
@@ -15,7 +15,11 @@
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<style name="Default" isDefault="true" fontName="DejaVu Sans"/>
<style name="Default oblique" fontName="DejaVu Sans Mono"/>
- <field name="accountNumber" class="java.lang.String"/>
+
+ <field name="formatter" class="java.text.DecimalFormat"/>
+ <field name="dateFormat" class="java.lang.String"/>
+
+ <field name="accountNumber" class="java.lang.String"/>
<field name="transactionDate" class="java.util.Date"/>
<field name="code" class="java.lang.String"/>
<field name="voucher" class="java.lang.String"/>
@@ -23,7 +27,7 @@
<field name="lettering" class="java.lang.String"/>
<field name="debit" class="java.math.BigDecimal"/>
<field name="credit" class="java.math.BigDecimal"/>
- <field name="formatter" class="java.text.DecimalFormat"/>
+
<variable name="subTotalDebit" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{debit}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
diff --git a/lima-report/src/main/resources/jasperreports/balance/BalanceReportAccountReport.jrxml b/lima-report/src/main/resources/jasperreports/balance/BalanceReportAccountReport.jrxml
index 3a33815..246de93 100644
--- a/lima-report/src/main/resources/jasperreports/balance/BalanceReportAccountReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/balance/BalanceReportAccountReport.jrxml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
-<!-- 2015-03-02T12:49:55 -->
+<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
+<!-- 2015-03-02T12:49:55 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceClassesReport" pageWidth="578" pageHeight="21" whenNoDataType="BlankPage" columnWidth="578" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" whenResourceMissingType="Empty" isIgnorePagination="true" uuid="75ff [...]
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
@@ -10,18 +10,16 @@
<queryString>
<![CDATA[]]>
</queryString>
- <field name="accountNumber" class="java.lang.String"/>
- <field name="label" class="java.lang.String"/>
- <field name="amountDebit" class="java.math.BigDecimal"/>
- <field name="amountCredit" class="java.math.BigDecimal"/>
- <field name="soldeDebit" class="java.math.BigDecimal"/>
- <field name="soldeCredit" class="java.math.BigDecimal"/>
- <field name="subAccounts" class="java.util.List"/>
- <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
<field name="formatter" class="java.text.DecimalFormat"/>
+
+ <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
+
+ <field name="subAccounts" class="java.util.List"/>
+
<variable name="subAccounts" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource">
<variableExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource((java.util.List)$F{subAccounts})]]></variableExpression>
</variable>
+
<detail>
<band height="10" splitType="Stretch">
<subreport isUsingCache="false" runToBottom="false">
diff --git a/lima-report/src/main/resources/jasperreports/balance/BalanceSubAccountsReport.jrxml b/lima-report/src/main/resources/jasperreports/balance/BalanceSubAccountsReport.jrxml
index 6214da6..4f8896d 100644
--- a/lima-report/src/main/resources/jasperreports/balance/BalanceSubAccountsReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/balance/BalanceSubAccountsReport.jrxml
@@ -10,30 +10,32 @@
<queryString>
<![CDATA[]]>
</queryString>
+ <field name="formatter" class="java.text.DecimalFormat"/>
+
<field name="accountNumber" class="java.lang.String"/>
<field name="label" class="java.lang.String"/>
<field name="amountDebit" class="java.math.BigDecimal"/>
<field name="amountCredit" class="java.math.BigDecimal"/>
- <field name="soldeDebit" class="java.math.BigDecimal"/>
- <field name="soldeCredit" class="java.math.BigDecimal"/>
- <field name="formatter" class="java.text.DecimalFormat"/>
+ <field name="debitBalance" class="java.math.BigDecimal"/>
+ <field name="creditBalance" class="java.math.BigDecimal"/>
<field name="mainAccountLabel" class="java.lang.String"/>
<field name="totalForLabel" class="java.lang.String"/>
<field name="subTotalForLabel" class="java.lang.String"/>
- <variable name="amountDebitSolde" class="java.math.BigDecimal" calculation="Sum">
+
+ <variable name="amountBalanceDebit" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{amountDebit}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
- <variable name="amountCreditSolde" class="java.math.BigDecimal" calculation="Sum">
+ <variable name="amountBalanceCredit" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{amountCredit}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
- <variable name="soldeDebitSolde" class="java.math.BigDecimal" calculation="Sum">
- <variableExpression><![CDATA[$F{soldeDebit}]]></variableExpression>
+ <variable name="sumBalanceDebit" class="java.math.BigDecimal" calculation="Sum">
+ <variableExpression><![CDATA[$F{debitBalance}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
- <variable name="soldeCreditSolde" class="java.math.BigDecimal" calculation="Sum">
- <variableExpression><![CDATA[$F{soldeCredit}]]></variableExpression>
+ <variable name="sumBalanceCredit" class="java.math.BigDecimal" calculation="Sum">
+ <variableExpression><![CDATA[$F{creditBalance}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<detail>
@@ -110,7 +112,7 @@
<font fontName="DejaVu Sans Mono" size="8"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($F{soldeDebit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{soldeDebit}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($F{debitBalance}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{debitBalance}) : ""]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="506" y="0" width="72" height="10" uuid="edb8a8c1-ac7a-44cb-9de6-b231b00f966f"/>
@@ -124,7 +126,7 @@
<font fontName="DejaVu Sans Mono" size="8"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($F{soldeCredit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{soldeCredit}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($F{creditBalance}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{creditBalance}) : ""]]></textFieldExpression>
</textField>
</band>
</detail>
@@ -170,7 +172,7 @@
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
- <printWhenExpression><![CDATA[new Boolean($V{soldeDebitSolde}.compareTo(BigDecimal.ZERO) != 0)]]></printWhenExpression>
+ <printWhenExpression><![CDATA[new Boolean($V{sumBalanceDebit}.compareTo(BigDecimal.ZERO) != 0)]]></printWhenExpression>
</reportElement>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
@@ -182,7 +184,7 @@
<font fontName="DejaVu Sans Mono" size="8"/>
<paragraph rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($V{soldeDebitSolde}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{soldeDebitSolde}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($V{sumBalanceDebit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{sumBalanceDebit}) : ""]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="506" y="0" width="72" height="10" forecolor="#736343" uuid="52091c73-538e-4f13-9e80-d8ceceb20925">
@@ -203,7 +205,7 @@
<font fontName="DejaVu Sans Mono" size="8"/>
<paragraph rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($V{soldeCreditSolde}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{soldeCreditSolde}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($V{sumBalanceCredit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{sumBalanceCredit}) : ""]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement key="" x="290" y="0" width="72" height="10" forecolor="#736343" uuid="7f9a6117-e3b4-492f-ba5a-b4f913516294">
@@ -215,7 +217,7 @@
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
- <printWhenExpression><![CDATA[new Boolean($V{soldeDebitSolde}.compareTo(BigDecimal.ZERO) != 0)]]></printWhenExpression>
+ <printWhenExpression><![CDATA[new Boolean($V{sumBalanceDebit}.compareTo(BigDecimal.ZERO) != 0)]]></printWhenExpression>
</reportElement>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
@@ -227,7 +229,7 @@
<font fontName="DejaVu Sans Mono" size="8"/>
<paragraph rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($V{amountDebitSolde}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{amountDebitSolde}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($V{amountBalanceDebit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{amountBalanceDebit}) : ""]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="362" y="0" width="72" height="10" forecolor="#736343" uuid="d149a582-98a8-4cce-ab19-c42f1142839c">
@@ -250,7 +252,7 @@
<font fontName="DejaVu Sans Mono" size="8"/>
<paragraph rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($V{amountCreditSolde}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{amountCreditSolde}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($V{amountBalanceCredit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{amountBalanceCredit}) : ""]]></textFieldExpression>
</textField>
</frame>
</band>
@@ -297,7 +299,7 @@
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
- <printWhenExpression><![CDATA[new Boolean($V{soldeDebitSolde}.compareTo(BigDecimal.ZERO) != 0)]]></printWhenExpression>
+ <printWhenExpression><![CDATA[new Boolean($V{sumBalanceDebit}.compareTo(BigDecimal.ZERO) != 0)]]></printWhenExpression>
</reportElement>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
@@ -309,7 +311,7 @@
<font fontName="DejaVu Sans Mono" size="8"/>
<paragraph rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($V{soldeDebitSolde}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{soldeDebitSolde}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($V{sumBalanceDebit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{sumBalanceDebit}) : ""]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="506" y="0" width="72" height="10" forecolor="#736343" uuid="6bc7b25f-7a33-4243-8b41-c12fc69bfdd9">
@@ -330,7 +332,7 @@
<font fontName="DejaVu Sans Mono" size="8"/>
<paragraph rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($V{soldeCreditSolde}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{soldeCreditSolde}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($V{sumBalanceCredit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{sumBalanceCredit}) : ""]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement key="" x="290" y="0" width="72" height="10" forecolor="#736343" uuid="4b3cfcb7-e1c1-4825-824d-3f30c424cb8d">
@@ -342,7 +344,7 @@
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="local_mesure_unity" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
- <printWhenExpression><![CDATA[new Boolean($V{soldeDebitSolde}.compareTo(BigDecimal.ZERO) != 0)]]></printWhenExpression>
+ <printWhenExpression><![CDATA[new Boolean($V{sumBalanceDebit}.compareTo(BigDecimal.ZERO) != 0)]]></printWhenExpression>
</reportElement>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
@@ -354,7 +356,7 @@
<font fontName="DejaVu Sans Mono" size="8"/>
<paragraph rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($V{amountDebitSolde}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{amountDebitSolde}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($V{amountBalanceDebit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{amountBalanceDebit}) : ""]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="362" y="0" width="72" height="10" forecolor="#736343" uuid="0736caf4-6f73-417e-93c8-2a81a81f6721">
@@ -377,7 +379,7 @@
<font fontName="DejaVu Sans Mono" size="8"/>
<paragraph rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($V{amountCreditSolde}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{amountCreditSolde}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($V{amountBalanceCredit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{amountBalanceCredit}) : ""]]></textFieldExpression>
</textField>
</frame>
</band>
diff --git a/lima-report/src/main/resources/jasperreports/entryBook/DocumentReport.jrxml b/lima-report/src/main/resources/jasperreports/entryBook/DocumentReport.jrxml
index 4e76999..d6ade61 100644
--- a/lima-report/src/main/resources/jasperreports/entryBook/DocumentReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/entryBook/DocumentReport.jrxml
@@ -4,8 +4,11 @@
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceReport" pageWidth="595" pageHeight="842" whenNoDataType="BlankPage" columnWidth="575" leftMargin="10" rightMargin="10" topMargin="10" bottomMargin="10" isSummaryNewPage="true" isSummaryWithPageHeaderAndFooter="true" isFloa [...]
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
+
<style name="Default" isDefault="true" scaleImage="Clip" fontName="DejaVu Sans" fontSize="8"/>
+
<style name="Oblique" fontName="DejaVu Sans Mono" fontSize="8" isItalic="true"/>
+
<style name="TableHeader" mode="Opaque" forecolor="#D0B48E" backcolor="#FDCA97" fontName="DejaVu Sans"/>
<style name="HeaderColumn" forecolor="#804000" fontName="DejaVu Sans" fontSize="8" isBold="true">
<box>
@@ -15,18 +18,21 @@
<rightPen lineWidth="0.6" lineColor="#804000"/>
</box>
</style>
+
<style name="FooterHeader" mode="Opaque" forecolor="#D0B48E" backcolor="#FDCA97" fontName="DejaVu Sans"/>
- <style name="FooterColumn" forecolor="#D0B48E" backcolor="#F2EBDF" fontName="DejaVu Sans" fontSize="8" isBold="true">
- <box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <style name="FooterColumn" forecolor="#804000" fontName="DejaVu Sans" fontSize="8" isBold="true">
+ <box>
+ <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
</style>
+
<queryString>
<![CDATA[]]>
</queryString>
+
<field name="formatter" class="java.text.DecimalFormat"/>
<field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
<field name="entryBooks" class="java.util.List"/>
@@ -47,10 +53,12 @@
<field name="columnDebitTitle" class="java.lang.String"/>
<field name="columnDescriptionTitle" class="java.lang.String"/>
<field name="columnTotalForPeriodTitle" class="java.lang.String"/>
- <field name="columnVoucherTitle" class="java.lang.String"/>
+ <field name="columnVoucherTitle" class="java.lang.String"/>
+
+ <field name="lastPageColumnDescription" class="java.lang.String"/>
- <field name="soldeDebit" class="java.math.BigDecimal"/>
- <field name="soldeCredit" class="java.math.BigDecimal"/>
+ <field name="debitBalance" class="java.math.BigDecimal"/>
+ <field name="creditBalance" class="java.math.BigDecimal"/>
<variable name="entryBooks" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource">
<variableExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource((java.util.List)$F{entryBooks})]]></variableExpression>
@@ -203,33 +211,31 @@
</pageFooter>
<lastPageFooter>
<band height="30">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
<frame>
- <reportElement style="FooterHeader" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="578" height="20" isRemoveLineWhenBlank="true" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="ffa6f4ff-14e5-4501-acbe-0c4e832d9c2a"/>
+ <reportElement style="FooterHeader" stretchType="RelativeToBandHeight" x="0" y="0" width="578" height="20" isRemoveLineWhenBlank="true" uuid="ffa6f4ff-14e5-4501-acbe-0c4e832d9c2a"/>
<textField isBlankWhenNull="true">
- <reportElement style="FooterColumn" x="0" y="0" width="434" height="20" forecolor="#736343" uuid="f818f119-5580-46fd-acbd-086f7d222dde"/>
+ <reportElement style="FooterColumn" x="0" y="0" width="434" height="20" uuid="f818f119-5580-46fd-acbd-086f7d222dde"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="12" isBold="true" isItalic="true"/>
<paragraph lineSpacingSize="0.0" leftIndent="40"/>
</textElement>
- <textFieldExpression><![CDATA["Total pour les journaux sélectionnés"]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{lastPageColumnDescription}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement style="FooterColumn" x="434" y="0" width="72" height="20" forecolor="#736343" uuid="8382935a-23c9-48a0-88f3-aa486cccd575"/>
+ <reportElement style="FooterColumn" x="434" y="0" width="72" height="20" uuid="8382935a-23c9-48a0-88f3-aa486cccd575"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($F{soldeDebit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{soldeDebit}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($F{debitBalance}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{debitBalance}) : ""]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement style="FooterColumn" x="506" y="0" width="72" height="20" forecolor="#736343" uuid="c7fa4a13-051c-40c0-b663-58b0401402b4"/>
+ <reportElement style="FooterColumn" x="506" y="0" width="72" height="20" uuid="c7fa4a13-051c-40c0-b663-58b0401402b4"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($F{soldeCredit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{soldeCredit}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($F{creditBalance}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{creditBalance}) : ""]]></textFieldExpression>
</textField>
</frame>
<textField isBlankWhenNull="false">
diff --git a/lima-report/src/main/resources/jasperreports/entryBook/EntryBookReport.jrxml b/lima-report/src/main/resources/jasperreports/entryBook/EntryBookReport.jrxml
index 15581ab..79c7327 100644
--- a/lima-report/src/main/resources/jasperreports/entryBook/EntryBookReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/entryBook/EntryBookReport.jrxml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
-<!-- 2015-03-11T11:57:53 -->
+<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
+<!-- 2015-03-11T11:57:53 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceClassesReport" pageWidth="578" pageHeight="50" whenNoDataType="BlankPage" columnWidth="578" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" isFloatColumnFooter="true" whenResourceMissingType="Empty" isIgnoreP [...]
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
@@ -10,13 +10,17 @@
<queryString>
<![CDATA[]]>
</queryString>
- <field name="soldeDebit" class="java.math.BigDecimal"/>
- <field name="soldeCredit" class="java.math.BigDecimal"/>
- <field name="financialPeriods" class="java.util.List"/>
- <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
- <field name="code" class="java.lang.String"/>
- <field name="libelle" class="java.lang.String"/>
+
<field name="formatter" class="java.text.DecimalFormat"/>
+ <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
+
+ <field name="financialPeriods" class="java.util.List"/>
+
+ <field name="debitBalance" class="java.math.BigDecimal"/>
+ <field name="creditBalance" class="java.math.BigDecimal"/>
+ <field name="code" class="java.lang.String"/>
+ <field name="label" class="java.lang.String"/>
+
<variable name="generalEntryBookEntry" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource">
<variableExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource((java.util.List)$F{financialPeriods})]]></variableExpression>
</variable>
@@ -25,67 +29,30 @@
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<frame>
- <reportElement style="Default" mode="Opaque" x="0" y="0" width="578" height="10" isRemoveLineWhenBlank="true" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="b362ba5e-b960-4aff-8c28-d8288ee352a1">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- </box>
+ <reportElement style="Default" mode="Opaque" x="0" y="0" width="578" height="10" isRemoveLineWhenBlank="true" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="b362ba5e-b960-4aff-8c28-d8288ee352a1"/>
<textField pattern="" isBlankWhenNull="true">
- <reportElement mode="Transparent" x="0" y="0" width="434" height="10" isRemoveLineWhenBlank="true" forecolor="#736343" uuid="1472eda4-3df8-47ae-aba7-0aae2d2bedae">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
+ <reportElement mode="Transparent" x="0" y="0" width="434" height="10" isRemoveLineWhenBlank="true" forecolor="#736343" uuid="1472eda4-3df8-47ae-aba7-0aae2d2bedae"/>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="8" isBold="true" isItalic="true"/>
<paragraph lineSpacingSize="0.0" leftIndent="40"/>
</textElement>
- <textFieldExpression><![CDATA["Journal " + $F{code} + " " + $F{libelle}]]></textFieldExpression>
+ <textFieldExpression><![CDATA["Journal " + $F{code} + " " + $F{label}]]></textFieldExpression>
</textField>
<textField>
- <reportElement x="434" y="0" width="72" height="10" uuid="baca77fb-1d57-428f-8746-1bb482b61b55">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <reportElement x="434" y="0" width="72" height="10" uuid="baca77fb-1d57-428f-8746-1bb482b61b55"/>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
<leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
<rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
</textField>
<textField>
- <reportElement x="506" y="0" width="72" height="10" uuid="da04b7ce-dd80-4c40-a0cb-7d74dac0da00">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <reportElement x="506" y="0" width="72" height="10" uuid="da04b7ce-dd80-4c40-a0cb-7d74dac0da00"/>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
<leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
<rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
</textField>
@@ -97,10 +64,7 @@
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<subreport isUsingCache="false" runToBottom="false">
- <reportElement key="subreport-5" positionType="Float" mode="Opaque" x="0" y="0" width="578" height="10" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#FFFFFF" uuid="d7fbefd9-03b1-4eaf-b7c6-fb46c737190a">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
+ <reportElement key="subreport-5" positionType="Float" mode="Opaque" x="0" y="0" width="578" height="10" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#FFFFFF" uuid="d7fbefd9-03b1-4eaf-b7c6-fb46c737190a"/>
<dataSourceExpression><![CDATA[$V{generalEntryBookEntry}]]></dataSourceExpression>
<subreportExpression><![CDATA[$F{subReport}]]></subreportExpression>
</subreport>
diff --git a/lima-report/src/main/resources/jasperreports/entryBook/FinancialPeriodReport.jrxml b/lima-report/src/main/resources/jasperreports/entryBook/FinancialPeriodReport.jrxml
index ae5b8fd..63e271a 100644
--- a/lima-report/src/main/resources/jasperreports/entryBook/FinancialPeriodReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/entryBook/FinancialPeriodReport.jrxml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
-<!-- 2015-03-11T14:47:39 -->
+<!-- Created with Jaspersoft Studio version 6.1.0.final using JasperReports Library version 6.1.0 -->
+<!-- 2015-07-07T15:18:19 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceClassesReport" pageWidth="578" pageHeight="51" whenNoDataType="BlankPage" columnWidth="578" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" isFloatColumnFooter="true" whenResourceMissingType="Empty" isIgnoreP [...]
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
@@ -18,14 +18,13 @@
<queryString>
<![CDATA[]]>
</queryString>
- <field name="soldeDebit" class="java.math.BigDecimal"/>
- <field name="soldeCredit" class="java.math.BigDecimal"/>
- <field name="transactions" class="java.util.List"/>
+ <field name="formatter" class="java.text.DecimalFormat"/>
<field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
+ <field name="debitBalance" class="java.math.BigDecimal"/>
+ <field name="creditBalance" class="java.math.BigDecimal"/>
<field name="period" class="java.util.Date"/>
- <field name="libelle" class="java.lang.String"/>
<field name="entryBookCode" class="java.lang.String"/>
- <field name="formatter" class="java.text.DecimalFormat"/>
+ <field name="transactions" class="java.util.List"/>
<variable name="generalEntryBookEntry" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource">
<variableExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource((java.util.List)$F{transactions})]]></variableExpression>
</variable>
@@ -34,32 +33,13 @@
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<frame>
- <reportElement style="Default" mode="Opaque" x="0" y="0" width="578" height="10" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="b362ba5e-b960-4aff-8c28-d8288ee352a1">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
+ <reportElement style="Default" mode="Opaque" x="0" y="0" width="578" height="10" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="b362ba5e-b960-4aff-8c28-d8288ee352a1"/>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textField pattern="" isBlankWhenNull="true">
- <reportElement x="0" y="0" width="434" height="10" forecolor="#736343" uuid="1472eda4-3df8-47ae-aba7-0aae2d2bedae">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
+ <reportElement x="0" y="0" width="434" height="10" forecolor="#736343" uuid="1472eda4-3df8-47ae-aba7-0aae2d2bedae"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="8" isBold="true" isItalic="true"/>
<paragraph lineSpacingSize="0.0" leftIndent="80"/>
@@ -67,37 +47,19 @@
<textFieldExpression><![CDATA[new SimpleDateFormat("MMMM yyyy").format($F{period})]]></textFieldExpression>
</textField>
<textField pattern="">
- <reportElement x="434" y="0" width="72" height="10" uuid="e6c93d97-54e3-4b70-9c28-56a3319bad77">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- </box>
- </textField>
- <textField>
- <reportElement x="506" y="0" width="72" height="10" uuid="b5197d26-0ac8-4102-9a6e-857a6e2b2c99">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <reportElement x="434" y="0" width="72" height="10" uuid="e6c93d97-54e3-4b70-9c28-56a3319bad77"/>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <leftPen lineWidth="0.6" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineColor="#804000"/>
</box>
</textField>
+ <textField pattern="">
+ <reportElement x="506" y="0" width="72" height="10" uuid="e6c93d97-54e3-4b70-9c28-56a3319bad88"/>
+ <box>
+ <leftPen lineWidth="0.6" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineColor="#804000"/>
+ </box>
+ </textField>
</frame>
</band>
</pageHeader>
@@ -106,31 +68,12 @@
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<frame>
- <reportElement style="Default" mode="Opaque" x="0" y="0" width="578" height="10" isRemoveLineWhenBlank="true" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="b362ba5e-b960-4aff-8c28-d8288ee352a1">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- </box>
+ <reportElement style="Default" mode="Opaque" x="0" y="0" width="578" height="10" isRemoveLineWhenBlank="true" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="b362ba5e-b960-4aff-8c28-d8288ee352a1"/>
<textField pattern="" isBlankWhenNull="true">
- <reportElement x="0" y="0" width="434" height="10" isRemoveLineWhenBlank="true" forecolor="#736343" uuid="1472eda4-3df8-47ae-aba7-0aae2d2bedae">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
+ <reportElement x="0" y="0" width="434" height="10" isRemoveLineWhenBlank="true" forecolor="#736343" uuid="1472eda4-3df8-47ae-aba7-0aae2d2bedae"/>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="8" isBold="true" isItalic="true"/>
@@ -139,34 +82,9 @@
<textFieldExpression><![CDATA[new SimpleDateFormat("MMMM yyyy").format($F{period})]]></textFieldExpression>
</textField>
<textField pattern="">
- <reportElement x="434" y="0" width="72" height="10" uuid="128b759f-c6d0-4310-a83c-8b9993d537dd">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- </box>
- </textField>
- <textField>
- <reportElement x="506" y="0" width="72" height="10" uuid="49cc6926-8eb0-4e4c-9c53-6efc0a56a728">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <reportElement x="434" y="0" width="72" height="10" uuid="128b759f-c6d0-4310-a83c-8b9993d537dd"/>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
<leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
<rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
</textField>
@@ -179,15 +97,7 @@
<subreportExpression><![CDATA[$F{subReport}]]></subreportExpression>
</subreport>
<subreport isUsingCache="false" runToBottom="false">
- <reportElement key="subreport-5" positionType="Float" mode="Transparent" x="0" y="10" width="578" height="10" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#FFFFFF" uuid="1095b1fb-ac01-4f55-b694-2e4e5ec17a76">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <printWhenExpression><![CDATA[new Boolean(!($V{PAGE_NUMBER} == 1 && $V{REPORT_COUNT} == 1))]]></printWhenExpression>
- </reportElement>
+ <reportElement key="subreport-5" positionType="Float" mode="Transparent" x="0" y="10" width="578" height="10" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#FFFFFF" uuid="1095b1fb-ac01-4f55-b694-2e4e5ec17a76"/>
<dataSourceExpression><![CDATA[$V{generalEntryBookEntry}]]></dataSourceExpression>
<subreportExpression><![CDATA[$F{subReport}]]></subreportExpression>
</subreport>
@@ -196,34 +106,17 @@
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<frame>
- <reportElement style="Default" stretchType="RelativeToTallestObject" mode="Opaque" x="0" y="0" width="578" height="10" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="571d1774-22c4-4ab4-901b-7470c74f0405">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
+ <reportElement style="Default" stretchType="RelativeToTallestObject" mode="Opaque" x="0" y="0" width="578" height="10" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="571d1774-22c4-4ab4-901b-7470c74f0405"/>
<box>
- <topPen lineWidth="0.0" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <bottomPen lineWidth="0.8" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textField pattern="" isBlankWhenNull="true">
- <reportElement x="0" y="0" width="434" height="10" forecolor="#736343" uuid="d3f672ab-80d2-4467-9ff9-73d4611a3025">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
+ <reportElement x="0" y="0" width="434" height="10" forecolor="#736343" uuid="d3f672ab-80d2-4467-9ff9-73d4611a3025"/>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="8" isBold="true" isItalic="true"/>
@@ -232,38 +125,28 @@
<textFieldExpression><![CDATA["Solde pour le journal " + $F{entryBookCode} + " jusqu'à fin " + new SimpleDateFormat("MMMM yyyy").format($F{period})]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="false">
- <reportElement style="Default" x="434" y="0" width="72" height="10" forecolor="#736343" uuid="53ba669a-6626-4e70-bbf0-fb243908a20e">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
+ <reportElement style="Default" x="434" y="0" width="72" height="10" forecolor="#736343" uuid="53ba669a-6626-4e70-bbf0-fb243908a20e"/>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
<leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
<rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($F{soldeDebit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{soldeDebit}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($F{debitBalance}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{debitBalance}) : ""]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="false">
- <reportElement style="Default" x="506" y="0" width="72" height="10" forecolor="#736343" uuid="edb8a8c1-ac7a-44cb-9de6-b231b00f966f">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
+ <reportElement style="Default" x="506" y="0" width="72" height="10" forecolor="#736343" uuid="edb8a8c1-ac7a-44cb-9de6-b231b00f966f"/>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
<leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
<rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($F{soldeCredit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{soldeCredit}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($F{creditBalance}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{creditBalance}) : ""]]></textFieldExpression>
</textField>
</frame>
</band>
diff --git a/lima-report/src/main/resources/jasperreports/entryBook/TransactionReport.jrxml b/lima-report/src/main/resources/jasperreports/entryBook/TransactionReport.jrxml
index 64fdf12..c841467 100644
--- a/lima-report/src/main/resources/jasperreports/entryBook/TransactionReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/entryBook/TransactionReport.jrxml
@@ -1,22 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
-<!-- 2015-03-11T11:59:00 -->
+<!-- Created with Jaspersoft Studio version 6.1.0.final using JasperReports Library version 6.1.0 -->
+<!-- 2015-07-07T12:30:07 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceClassesReport" pageWidth="578" pageHeight="30" columnWidth="578" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" whenResourceMissingType="Empty" isIgnorePagination="true" uuid="75ff86c6-c370-4f0b-a2d3-e17324a465bb">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<style name="Default" isDefault="true" fontName="DejaVu Sans"/>
<style name="Default oblique" fontName="DejaVu Sans Mono"/>
+ <style name="bodyColumn" fontName="DejaVu Sans" fontSize="8">
+ <box>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ </box>
+ </style>
<queryString>
<![CDATA[]]>
</queryString>
- <field name="libelle" class="java.lang.String"/>
+ <field name="formatter" class="java.text.DecimalFormat"/>
+ <field name="dateFormat" class="java.text.SimpleDateFormat"/>
+ <field name="description" class="java.lang.String"/>
<field name="debit" class="java.math.BigDecimal"/>
<field name="credit" class="java.math.BigDecimal"/>
<field name="transactionDate" class="java.util.Date"/>
<field name="account" class="java.lang.String"/>
<field name="voucher" class="java.lang.String"/>
- <field name="formatter" class="java.text.DecimalFormat"/>
<variable name="entryBookDebitSolde" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{debit}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
@@ -36,35 +43,15 @@
<detail>
<band height="10" splitType="Stretch">
<textField pattern="" isBlankWhenNull="true">
- <reportElement x="0" y="0" width="60" height="10" uuid="c5f32333-c77a-45f8-9bec-c8d61e15d85a">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- </box>
+ <reportElement style="bodyColumn" x="0" y="0" width="60" height="10" uuid="c5f32333-c77a-45f8-9bec-c8d61e15d85a"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy").format($F{transactionDate})]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{dateFormat}.format($F{transactionDate})]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement x="60" y="0" width="100" height="10" uuid="c5f32333-c77a-45f8-9bec-c8d61e15d85a">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- </box>
+ <reportElement style="bodyColumn" x="60" y="0" width="100" height="10" uuid="c5f32333-c77a-45f8-9bec-c8d61e15d85a"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="8"/>
<paragraph leftIndent="2"/>
@@ -72,16 +59,7 @@
<textFieldExpression><![CDATA[$F{account}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement x="160" y="0" width="40" height="10" uuid="c5f32333-c77a-45f8-9bec-c8d61e15d85a">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- </box>
+ <reportElement style="bodyColumn" x="160" y="0" width="40" height="10" uuid="c5f32333-c77a-45f8-9bec-c8d61e15d85a"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="8"/>
<paragraph leftIndent="2"/>
@@ -89,33 +67,15 @@
<textFieldExpression><![CDATA[$F{voucher}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement x="200" y="0" width="234" height="10" uuid="0bcc6e5d-b2ee-474f-8e66-475933d55a16">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- </box>
+ <reportElement style="bodyColumn" x="200" y="0" width="234" height="10" uuid="0bcc6e5d-b2ee-474f-8e66-475933d55a16"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[$F{libelle}]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{description}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="false">
- <reportElement x="506" y="0" width="72" height="10" uuid="edb8a8c1-ac7a-44cb-9de6-b231b00f966f"/>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- </box>
+ <reportElement style="bodyColumn" x="506" y="0" width="72" height="10" uuid="edb8a8c1-ac7a-44cb-9de6-b231b00f966f"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="8"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
@@ -123,10 +83,7 @@
<textFieldExpression><![CDATA[new Boolean($F{credit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{credit}) : ""]]></textFieldExpression>
</textField>
<textField>
- <reportElement x="434" y="0" width="72" height="10" uuid="39bdbda9-8233-4e46-b3ed-d5f0d06e2d86">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
+ <reportElement style="bodyColumn" x="434" y="0" width="72" height="10" uuid="39bdbda9-8233-4e46-b3ed-d5f0d06e2d86"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="8"/>
<paragraph rightIndent="2"/>
@@ -140,29 +97,15 @@
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<frame>
- <reportElement mode="Transparent" x="0" y="0" width="578" height="10" uuid="48190dbf-c1d0-421a-bfcb-9c9db0c0c359">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
+ <reportElement mode="Transparent" x="0" y="0" width="578" height="10" uuid="48190dbf-c1d0-421a-bfcb-9c9db0c0c359"/>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
+ <topPen lineWidth="0.0" lineStyle="Dashed" lineColor="#804000"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <bottomPen lineWidth="0.6" lineStyle="Dashed" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textField>
- <reportElement x="0" y="0" width="434" height="10" forecolor="#736343" uuid="d622e85e-b93e-4be5-90e0-cf3b854f012d">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- </box>
+ <reportElement x="0" y="0" width="434" height="10" forecolor="#736343" uuid="d622e85e-b93e-4be5-90e0-cf3b854f012d"/>
<textElement>
<font size="8" isBold="true"/>
<paragraph leftIndent="80"/>
@@ -171,19 +114,11 @@
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement key="" x="434" y="0" width="72" height="10" forecolor="#736343" uuid="75ef2eb9-6e2d-447c-9dd6-488a63fcdf04">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[new Boolean($V{EntryBookEndColomnDebitSolde}.compareTo(BigDecimal.ZERO) != 0)]]></printWhenExpression>
</reportElement>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textElement textAlignment="Right">
<font fontName="DejaVu Sans Mono" size="8"/>
@@ -192,20 +127,7 @@
<textFieldExpression><![CDATA[new Boolean($V{EntryBookEndColomnDebitSolde}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{EntryBookEndColomnDebitSolde}) : ""]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="false">
- <reportElement x="506" y="0" width="72" height="10" forecolor="#736343" uuid="c52c36a6-6a50-473b-9dad-0526f039b7c1">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#736343"/>
- </box>
+ <reportElement x="506" y="0" width="72" height="10" forecolor="#736343" uuid="c52c36a6-6a50-473b-9dad-0526f039b7c1"/>
<textElement textAlignment="Right">
<font fontName="DejaVu Sans Mono" size="8"/>
<paragraph rightIndent="2"/>
@@ -220,29 +142,18 @@
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<frame>
- <reportElement mode="Opaque" x="0" y="0" width="578" height="10" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="d7d82e83-663d-410a-a61d-6211645557ce">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
+ <reportElement mode="Opaque" x="0" y="0" width="578" height="10" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="d7d82e83-663d-410a-a61d-6211645557ce"/>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
+ <topPen lineWidth="0.6" lineStyle="Dashed" lineColor="#804000"/>
<leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
<rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textField>
- <reportElement x="0" y="0" width="434" height="10" forecolor="#736343" uuid="16735e42-8adf-47c5-8aa6-590bbc2327a9">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
- </box>
+ <reportElement x="0" y="0" width="434" height="10" forecolor="#736343" uuid="16735e42-8adf-47c5-8aa6-590bbc2327a9"/>
+ <box>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ </box>
<textElement>
<font size="8" isBold="true"/>
<paragraph leftIndent="80"/>
@@ -250,18 +161,9 @@
<textFieldExpression><![CDATA["Sous-total pour " + new SimpleDateFormat("MMMM yyyy").format($F{transactionDate})]]></textFieldExpression>
</textField>
<textField pattern="">
- <reportElement x="434" y="0" width="72" height="10" forecolor="#736343" uuid="4c23c4e2-1c93-4a78-b82b-895286708171">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
+ <reportElement x="434" y="0" width="72" height="10" forecolor="#736343" uuid="4c23c4e2-1c93-4a78-b82b-895286708171"/>
<box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#804000"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
<rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textElement textAlignment="Right">
@@ -271,21 +173,12 @@
<textFieldExpression><![CDATA[new Boolean($V{entryBookDebitSolde}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{entryBookDebitSolde}) : ""]]></textFieldExpression>
</textField>
<textField>
- <reportElement x="506" y="0" width="72" height="10" forecolor="#736343" uuid="a7b19080-fcc5-407b-ae5c-20a85afd363e">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- </box>
- <textElement textAlignment="Right">
+ <reportElement x="506" y="0" width="72" height="10" forecolor="#736343" uuid="a7b19080-fcc5-407b-ae5c-20a85afd363e"/>
+ <box>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ </box>
+ <textElement textAlignment="Right">
<font fontName="DejaVu Sans Mono" size="8" isBold="true"/>
<paragraph rightIndent="2"/>
</textElement>
diff --git a/lima-report/src/main/resources/jasperreports/generalEntryBook/DocumentReport.jrxml b/lima-report/src/main/resources/jasperreports/generalEntryBook/DocumentReport.jrxml
index 971ba90..367cf23 100644
--- a/lima-report/src/main/resources/jasperreports/generalEntryBook/DocumentReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/generalEntryBook/DocumentReport.jrxml
@@ -1,26 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
-<!-- 2015-03-11T17:41:37 -->
+<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
+<!-- 2015-03-11T17:41:37 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceReport" pageWidth="595" pageHeight="842" whenNoDataType="BlankPage" columnWidth="575" leftMargin="10" rightMargin="10" topMargin="10" bottomMargin="10" isSummaryNewPage="true" isSummaryWithPageHeaderAndFooter="true" isFloa [...]
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
- <style name="Default" isDefault="true" fontName="DejaVu Sans" fontSize="8"/>
- <style name="Bold" fontName="DejaVu Sans" fontSize="8"/>
- <style name="Oblique" fontName="DejaVu Sans Mono" fontSize="8"/>
- <style name="Column header" forecolor="#D0B48E" backcolor="#F2EBDF" fontName="DejaVu Sans" fontSize="12" isBold="true"/>
+
+ <style name="Default" isDefault="true" scaleImage="Clip" fontName="DejaVu Sans" fontSize="8"/>
+ <style name="Oblique" fontName="DejaVu Sans Mono" fontSize="8" isItalic="true"/>
+ <style name="TableHeader" mode="Opaque" forecolor="#D0B48E" backcolor="#FDCA97" fontName="DejaVu Sans"/>
+ <style name="HeaderColumn" forecolor="#804000" fontName="DejaVu Sans" fontSize="8" isBold="true">
+ <box>
+ <topPen lineWidth="0.6" lineColor="#804000"/>
+ <leftPen lineWidth="0.6" lineColor="#804000"/>
+ <bottomPen lineWidth="0.6" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineColor="#804000"/>
+ </box>
+ </style>
+ <style name="FooterHeader" mode="Opaque" forecolor="#D0B48E" backcolor="#FDCA97" fontName="DejaVu Sans"/>
+ <style name="FooterColumn" forecolor="#804000" fontName="DejaVu Sans" fontSize="8" isBold="true">
+ <box>
+ <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ </box>
+ </style>
+
<queryString>
<![CDATA[]]>
</queryString>
- <field name="fromDate" class="java.util.Date"/>
- <field name="toDate" class="java.util.Date"/>
- <field name="currency" class="java.lang.String"/>
- <field name="generalEntryBooks" class="java.util.List"/>
- <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
- <field name="companyName" class="java.lang.String"/>
- <field name="title" class="java.lang.String"/>
- <field name="soldeDebit" class="java.math.BigDecimal"/>
- <field name="soldeCredit" class="java.math.BigDecimal"/>
<field name="formatter" class="java.text.DecimalFormat"/>
+ <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
+ <field name="generalEntryBooks" class="java.util.List"/>
+
+ <field name="titleCompanyName" class="java.lang.String"/>
+ <field name="titleCurrentDate" class="java.lang.String"/>
+ <field name="titleFromToDate" class="java.lang.String"/>
+ <field name="titleReport" class="java.lang.String"/>
+
+ <field name="headerCurrency" class="java.lang.String"/>
+ <field name="headerCurrencyLabel" class="java.lang.String"/>
+ <field name="headerSelectedAccounts" class="java.lang.String"/>
+ <field name="headerSelectedAccountsLabel" class="java.lang.String"/>
+
+ <field name="columnEntryBookTitle" class="java.lang.String"/>
+ <field name="columnDescriptionTitle" class="java.lang.String"/>
+ <field name="columnTotalForPeriodTitle" class="java.lang.String"/>
+ <field name="columnDebitTitle" class="java.lang.String"/>
+ <field name="columnCreditTitle" class="java.lang.String"/>
+
+ <field name="lastPageColumnDescription" class="java.lang.String"/>
+
+ <field name="debitBalance" class="java.math.BigDecimal"/>
+ <field name="creditBalance" class="java.math.BigDecimal"/>
<variable name="generalEntryBooks" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource">
<variableExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource((java.util.List)$F{generalEntryBooks})]]></variableExpression>
</variable>
@@ -28,168 +60,101 @@
<background>
<band splitType="Stretch"/>
</background>
- <title>
- <band height="41" splitType="Stretch">
- <frame>
- <reportElement style="Default" mode="Opaque" x="0" y="1" width="578" height="40" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="1aba49d4-0acc-4925-8731-13c1cc1a90f4"/>
- <box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- </box>
- <textField isBlankWhenNull="true">
- <reportElement style="Default" x="0" y="0" width="578" height="20" forecolor="#736343" uuid="9ee9d5f1-6e74-4526-83a4-3b386f2733a8"/>
- <textElement textAlignment="Center" verticalAlignment="Middle">
- <font size="14" isBold="true"/>
- </textElement>
- <textFieldExpression><![CDATA[$F{title}]]></textFieldExpression>
- </textField>
- <textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="true">
- <reportElement style="Default" x="444" y="0" width="134" height="20" forecolor="#736343" uuid="a60d5d40-69ac-4c50-a33a-67c26cce05f3"/>
- <textElement textAlignment="Right" verticalAlignment="Middle">
- <font size="8" isBold="false"/>
- <paragraph rightIndent="5"/>
- </textElement>
- <textFieldExpression><![CDATA["Edition du: " + new SimpleDateFormat("dd/MM/yyyy à HH:mm").format(new java.util.Date())]]></textFieldExpression>
- </textField>
- <textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
- <reportElement style="Default" x="210" y="20" width="80" height="20" forecolor="#736343" uuid="37d0a47c-0197-4f09-8358-823b39a2a42a">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <textElement textAlignment="Right" verticalAlignment="Middle">
- <font isBold="true"/>
- </textElement>
- <textFieldExpression><![CDATA["Du " + new SimpleDateFormat("dd/MM/yyyy").format($F{fromDate})]]></textFieldExpression>
- </textField>
- <textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
- <reportElement style="Default" x="290" y="20" width="80" height="20" forecolor="#736343" uuid="5fc4df4a-5930-4ccd-b450-cf7aac6be57b">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <textElement verticalAlignment="Middle">
- <font isBold="true"/>
- </textElement>
- <textFieldExpression><![CDATA[" au " + new SimpleDateFormat("dd/MM/yyyy").format($F{toDate})]]></textFieldExpression>
- </textField>
- <textField isBlankWhenNull="true">
- <reportElement style="Default" x="0" y="0" width="190" height="20" forecolor="#736343" uuid="5aa3ceb9-e407-42da-bdc3-097875bdd5f5">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <textElement verticalAlignment="Middle" rotation="None">
- <font size="10" isBold="true"/>
- <paragraph leftIndent="5"/>
- </textElement>
- <textFieldExpression><![CDATA[$F{companyName}]]></textFieldExpression>
- </textField>
- </frame>
- </band>
- </title>
- <pageHeader>
- <band height="25" splitType="Stretch">
- <textField isBlankWhenNull="true">
- <reportElement style="Oblique" x="444" y="9" width="134" height="16" forecolor="#000000" uuid="abcb18cb-7d0e-4eb8-a9f5-aca4baffa9ae">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <textElement textAlignment="Right" verticalAlignment="Middle">
- <font size="8"/>
- </textElement>
- <textFieldExpression><![CDATA["Devise: " + $F{currency}]]></textFieldExpression>
- </textField>
- </band>
- </pageHeader>
+ <title>
+ <band height="41" splitType="Stretch">
+ <frame>
+ <reportElement style="Default" mode="Opaque" x="0" y="1" width="578" height="40" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="1aba49d4-0acc-4925-8731-13c1cc1a90f4"/>
+ <box>
+ <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ </box>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="0" y="0" width="578" height="20" forecolor="#736343" uuid="9ee9d5f1-6e74-4526-83a4-3b386f2733a8"/>
+ <textElement textAlignment="Center" verticalAlignment="Middle">
+ <font size="14" isBold="true"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{titleReport}]]></textFieldExpression>
+ </textField>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="444" y="0" width="134" height="20" forecolor="#736343" uuid="a60d5d40-69ac-4c50-a33a-67c26cce05f3"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle">
+ <font size="8" isBold="false"/>
+ <paragraph rightIndent="5"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{titleCurrentDate}]]></textFieldExpression>
+ </textField>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="210" y="20" width="160" height="20" forecolor="#736343" uuid="37d0a47c-0197-4f09-8358-823b39a2a42a"/>
+ <textElement textAlignment="Center" verticalAlignment="Middle">
+ <font isBold="true"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{titleFromToDate}]]></textFieldExpression>
+ </textField>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="0" y="0" width="190" height="20" forecolor="#736343" uuid="5aa3ceb9-e407-42da-bdc3-097875bdd5f5"/>
+ <textElement verticalAlignment="Middle" rotation="None">
+ <font size="10" isBold="true"/>
+ <paragraph leftIndent="5"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{titleCompanyName}]]></textFieldExpression>
+ </textField>
+ </frame>
+ </band>
+ </title>
+ <pageHeader>
+ <band height="16" splitType="Stretch">
+ <textField isBlankWhenNull="true">
+ <reportElement style="Oblique" x="444" y="0" width="134" height="16" forecolor="#000000" uuid="abcb18cb-7d0e-4eb8-a9f5-aca4baffa9ae"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle">
+ <font size="8"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{headerCurrencyLabel} + $F{headerCurrency}]]></textFieldExpression>
+ </textField>
+ </band>
+ </pageHeader>
<columnHeader>
<band height="20">
<frame>
- <reportElement style="Column header" mode="Opaque" x="0" y="0" width="578" height="20" backcolor="#FDCA97" uuid="6c2c2b44-eebf-41d3-8b56-47d4a20a4b24">
+ <reportElement style="TableHeader" x="0" y="0" width="578" height="20" uuid="6c2c2b44-eebf-41d3-8b56-47d4a20a4b24">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
</reportElement>
- <box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- </box>
- <staticText>
- <reportElement x="0" y="0" width="40" height="20" forecolor="#804000" uuid="63da28a1-a793-4bf5-81d4-6a4d6fc1e4df">
- <property name="local_mesure_unitwidth" value="pixel"/>
- </reportElement>
- <box>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textField>
+ <reportElement style="HeaderColumn" x="0" y="0" width="40" height="20" uuid="63da28a1-a793-4bf5-81d4-6a4d6fc1e4df"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Journal]]></text>
- </staticText>
- <staticText>
- <reportElement x="40" y="0" width="394" height="20" forecolor="#804000" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb">
- <property name="local_mesure_unitheight" value="pixel"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6"/>
- <leftPen lineWidth="0.6"/>
- <bottomPen lineWidth="0.6"/>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnEntryBookTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="40" y="0" width="394" height="20" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Intitulé]]></text>
- </staticText>
- <staticText>
- <reportElement x="434" y="0" width="144" height="10" forecolor="#804000" uuid="1bc6ab8b-d490-46a2-9a10-8f4c4f219889">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnDescriptionTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="434" y="0" width="144" height="10" uuid="1bc6ab8b-d490-46a2-9a10-8f4c4f219889" />
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Total Période]]></text>
- </staticText>
- <staticText>
- <reportElement x="434" y="10" width="72" height="10" forecolor="#804000" uuid="b6ea8597-d637-47d1-9a39-7c99101594e9">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineColor="#804000"/>
- <bottomPen lineWidth="0.6" lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineColor="#804000"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnTotalForPeriodTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="434" y="10" width="72" height="10" uuid="b6ea8597-d637-47d1-9a39-7c99101594e9"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Débit]]></text>
- </staticText>
- <staticText>
- <reportElement x="506" y="10" width="72" height="10" forecolor="#804000" uuid="c4f9f592-7052-4b66-abc2-f04cc5f3972c">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineColor="#804000"/>
- <leftPen lineColor="#804000"/>
- <bottomPen lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineColor="#804000"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnDebitTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="506" y="10" width="72" height="10" uuid="c4f9f592-7052-4b66-abc2-f04cc5f3972c"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Crédit]]></text>
- </staticText>
+ <textFieldExpression><![CDATA[$F{columnCreditTitle}]]></textFieldExpression>
+ </textField>
</frame>
</band>
</columnHeader>
@@ -223,98 +188,49 @@
</textField>
</band>
</pageFooter>
- <lastPageFooter>
- <band height="30">
- <frame>
- <reportElement style="Default" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="578" height="20" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="07f5ee06-0c59-46c6-b23e-052974f98f2f">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- </box>
- <textField isBlankWhenNull="true">
- <reportElement x="0" y="0" width="434" height="20" forecolor="#736343" uuid="9e826238-b4eb-45d6-a470-859288447fad">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
- <textElement textAlignment="Left" verticalAlignment="Middle">
- <font size="12" isBold="true" isItalic="true"/>
- <paragraph lineSpacingSize="0.0" leftIndent="40"/>
- </textElement>
- <textFieldExpression><![CDATA["Total du Journal Général"]]></textFieldExpression>
- </textField>
- <textField isBlankWhenNull="true">
- <reportElement style="Default" x="434" y="0" width="72" height="20" forecolor="#736343" uuid="bfddf750-3e4a-459a-8f09-7f617d0112e8">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
- <textElement textAlignment="Right" verticalAlignment="Middle">
- <font fontName="DejaVu Sans Mono" size="8" isBold="true"/>
- <paragraph lineSpacingSize="0.0" rightIndent="2"/>
- </textElement>
- <textFieldExpression><![CDATA[new Boolean($F{soldeDebit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{soldeDebit}) : ""]]></textFieldExpression>
- </textField>
- <textField isBlankWhenNull="true">
- <reportElement style="Default" x="506" y="0" width="72" height="20" forecolor="#736343" uuid="eb9dc63a-0873-43de-91a5-6d54d0748b3d">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
- <textElement textAlignment="Right" verticalAlignment="Middle">
- <font fontName="DejaVu Sans Mono" size="8" isBold="true"/>
- <paragraph lineSpacingSize="0.0" rightIndent="2"/>
- </textElement>
- <textFieldExpression><![CDATA[new Boolean($F{soldeCredit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{soldeCredit}) : ""]]></textFieldExpression>
- </textField>
- </frame>
- <textField isBlankWhenNull="false">
- <reportElement x="0" y="20" width="288" height="10" uuid="87361454-c898-41a6-8d56-2cd13115ba14">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
- <textElement textAlignment="Right">
- <paragraph lineSpacingSize="0.0"/>
- </textElement>
- <textFieldExpression><![CDATA["Page " + $V{PAGE_NUMBER}]]></textFieldExpression>
- </textField>
- <textField evaluationTime="Report">
- <reportElement x="288" y="20" width="287" height="10" uuid="3528c1ce-80bd-4714-948d-493b0bba736a">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
- <textElement textAlignment="Left">
- <paragraph lineSpacingSize="0.0"/>
- </textElement>
- <textFieldExpression><![CDATA[" / " + $V{PAGE_NUMBER}]]></textFieldExpression>
- </textField>
- </band>
- </lastPageFooter>
+ <lastPageFooter>
+ <band height="30">
+ <frame>
+ <reportElement style="FooterHeader" stretchType="RelativeToBandHeight" x="0" y="0" width="578" height="20" isRemoveLineWhenBlank="true" uuid="ffa6f4ff-14e5-4501-acbe-0c4e832d9c2a"/>
+ <textField isBlankWhenNull="true">
+ <reportElement style="FooterColumn" x="0" y="0" width="434" height="20" uuid="f818f119-5580-46fd-acbd-086f7d222dde"/>
+ <textElement textAlignment="Left" verticalAlignment="Middle">
+ <font size="12" isBold="true" isItalic="true"/>
+ <paragraph lineSpacingSize="0.0" leftIndent="40"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{lastPageColumnDescription}]]></textFieldExpression>
+ </textField>
+ <textField isBlankWhenNull="true">
+ <reportElement style="FooterColumn" x="434" y="0" width="72" height="20" uuid="8382935a-23c9-48a0-88f3-aa486cccd575"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle">
+ <font fontName="DejaVu Sans Mono" size="8" isBold="true"/>
+ <paragraph lineSpacingSize="0.0" rightIndent="2"/>
+ </textElement>
+ <textFieldExpression><![CDATA[new Boolean($F{debitBalance}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{debitBalance}) : ""]]></textFieldExpression>
+ </textField>
+ <textField isBlankWhenNull="true">
+ <reportElement style="FooterColumn" x="506" y="0" width="72" height="20" uuid="c7fa4a13-051c-40c0-b663-58b0401402b4"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle">
+ <font fontName="DejaVu Sans Mono" size="8" isBold="true"/>
+ <paragraph lineSpacingSize="0.0" rightIndent="2"/>
+ </textElement>
+ <textFieldExpression><![CDATA[new Boolean($F{creditBalance}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{creditBalance}) : ""]]></textFieldExpression>
+ </textField>
+ </frame>
+ <textField isBlankWhenNull="false">
+ <reportElement x="0" y="20" width="288" height="10" uuid="fd62df4f-6500-4fea-93be-fe749f161de6"/>
+ <textElement textAlignment="Right">
+ <paragraph lineSpacingSize="0.0"/>
+ </textElement>
+ <textFieldExpression><![CDATA["Page " + $V{PAGE_NUMBER}]]></textFieldExpression>
+ </textField>
+ <textField evaluationTime="Report">
+ <reportElement x="288" y="20" width="287" height="10" uuid="e5018134-bbde-4b3e-a83d-7abf00c56c09"/>
+ <textElement textAlignment="Left">
+ <paragraph lineSpacingSize="0.0"/>
+ </textElement>
+ <textFieldExpression><![CDATA[" / " + $V{PAGE_NUMBER}]]></textFieldExpression>
+ </textField>
+ </band>
+ </lastPageFooter>
</jasperReport>
diff --git a/lima-report/src/main/resources/jasperreports/generalEntryBook/EntryBookPeriodReport.jrxml b/lima-report/src/main/resources/jasperreports/generalEntryBook/EntryBookPeriodReport.jrxml
index 2506f1e..0ddb70a 100644
--- a/lima-report/src/main/resources/jasperreports/generalEntryBook/EntryBookPeriodReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/generalEntryBook/EntryBookPeriodReport.jrxml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
-<!-- 2015-03-11T17:29:13 -->
+<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
+<!-- 2015-03-11T17:29:13 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceClassesReport" pageWidth="578" pageHeight="20" whenNoDataType="BlankPage" columnWidth="578" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" whenResourceMissingType="Empty" isIgnorePagination="true" uuid="75ff [...]
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
@@ -18,12 +18,16 @@
<queryString>
<![CDATA[]]>
</queryString>
- <field name="soldeDebit" class="java.math.BigDecimal"/>
- <field name="soldeCredit" class="java.math.BigDecimal"/>
+ <field name="formatter" class="java.text.DecimalFormat"/>
+ <field name="dateFormat" class="java.text.SimpleDateFormat"/>
+
+ <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
+
+ <field name="debitBalance" class="java.math.BigDecimal"/>
+ <field name="creditBalance" class="java.math.BigDecimal"/>
<field name="entries" class="java.util.List"/>
- <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
<field name="period" class="java.util.Date"/>
- <field name="formatter" class="java.text.DecimalFormat"/>
+
<variable name="entries" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource">
<variableExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource((java.util.List)$F{entries})]]></variableExpression>
</variable>
@@ -32,12 +36,7 @@
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<frame>
- <reportElement style="Default" mode="Opaque" x="0" y="0" width="578" height="10" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="b362ba5e-b960-4aff-8c28-d8288ee352a1">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
+ <reportElement style="Default" mode="Opaque" x="0" y="0" width="578" height="10" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="b362ba5e-b960-4aff-8c28-d8288ee352a1"/>
<box>
<topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
<leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
@@ -45,11 +44,7 @@
<rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
</box>
<textField isBlankWhenNull="true">
- <reportElement x="0" y="0" width="578" height="10" forecolor="#736343" uuid="1472eda4-3df8-47ae-aba7-0aae2d2bedae">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
+ <reportElement x="0" y="0" width="578" height="10" forecolor="#736343" uuid="1472eda4-3df8-47ae-aba7-0aae2d2bedae"/>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
@@ -73,12 +68,7 @@
</band>
<band height="10" splitType="Stretch">
<frame>
- <reportElement style="Default" mode="Opaque" x="0" y="0" width="578" height="10" forecolor="#FFFFFF" backcolor="#FFFFFF" uuid="571d1774-22c4-4ab4-901b-7470c74f0405">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
+ <reportElement style="Default" mode="Opaque" x="0" y="0" width="578" height="10" forecolor="#FFFFFF" backcolor="#FFFFFF" uuid="571d1774-22c4-4ab4-901b-7470c74f0405"/>
<box>
<topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
<leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
@@ -86,13 +76,7 @@
<rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
</box>
<textField isBlankWhenNull="true">
- <reportElement x="0" y="0" width="434" height="10" forecolor="#736343" uuid="dc68030b-597d-47b5-8be9-eecfdde17f5e">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
+ <reportElement x="0" y="0" width="434" height="10" forecolor="#736343" uuid="dc68030b-597d-47b5-8be9-eecfdde17f5e"/>
<box>
<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
@@ -117,7 +101,7 @@
<font fontName="DejaVu Sans Mono" size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($F{soldeDebit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{soldeDebit}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($F{debitBalance}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{debitBalance}) : ""]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement style="Default" x="506" y="0" width="72" height="10" forecolor="#736343" uuid="edb8a8c1-ac7a-44cb-9de6-b231b00f966f"/>
@@ -131,7 +115,7 @@
<font fontName="DejaVu Sans Mono" size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($F{soldeCredit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{soldeCredit}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($F{creditBalance}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{creditBalance}) : ""]]></textFieldExpression>
</textField>
</frame>
</band>
diff --git a/lima-report/src/main/resources/jasperreports/generalEntryBook/GeneralEntryBookEntryReport.jrxml b/lima-report/src/main/resources/jasperreports/generalEntryBook/GeneralEntryBookEntryReport.jrxml
index 0a0444b..5e154d0 100644
--- a/lima-report/src/main/resources/jasperreports/generalEntryBook/GeneralEntryBookEntryReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/generalEntryBook/GeneralEntryBookEntryReport.jrxml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
-<!-- 2015-03-11T11:54:13 -->
+<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
+<!-- 2015-03-11T11:54:13 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceClassesReport" pageWidth="578" pageHeight="21" columnWidth="578" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="75ff86c6-c370-4f0b-a2d3-e17324a465bb">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
@@ -10,11 +10,12 @@
<queryString>
<![CDATA[]]>
</queryString>
+ <field name="formatter" class="java.text.DecimalFormat"/>
+
<field name="code" class="java.lang.String"/>
- <field name="libelle" class="java.lang.String"/>
+ <field name="description" class="java.lang.String"/>
<field name="debit" class="java.math.BigDecimal"/>
<field name="credit" class="java.math.BigDecimal"/>
- <field name="formatter" class="java.text.DecimalFormat"/>
<detail>
<band height="10" splitType="Stretch">
<textField isBlankWhenNull="true">
@@ -47,7 +48,7 @@
<font size="8"/>
<paragraph leftIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[$F{libelle}]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{description}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="434" y="0" width="72" height="10" uuid="53ba669a-6626-4e70-bbf0-fb243908a20e"/>
diff --git a/lima-report/src/main/resources/jasperreports/generalLedger/DocumentReport.jrxml b/lima-report/src/main/resources/jasperreports/generalLedger/DocumentReport.jrxml
index 130ea91..7a1a5ac 100644
--- a/lima-report/src/main/resources/jasperreports/generalLedger/DocumentReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/generalLedger/DocumentReport.jrxml
@@ -1,258 +1,179 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
-<!-- 2015-03-11T11:59:35 -->
+<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
+<!-- 2015-03-11T11:59:35 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceReport" pageWidth="595" pageHeight="842" whenNoDataType="BlankPage" columnWidth="575" leftMargin="10" rightMargin="10" topMargin="10" bottomMargin="10" isSummaryNewPage="true" isSummaryWithPageHeaderAndFooter="true" isFloa [...]
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
- <style name="Default" isDefault="true" fontName="DejaVu Sans" fontSize="8"/>
- <style name="Bold" fontName="DejaVu Sans" fontSize="8"/>
- <style name="Oblique" fontName="DejaVu Sans Mono" fontSize="8"/>
- <style name="Column header" forecolor="#D0B48E" backcolor="#F2EBDF" fontName="DejaVu Sans" fontSize="12" isBold="true"/>
+ <style name="Default" isDefault="true" scaleImage="Clip" fontName="DejaVu Sans" fontSize="8"/>
+
+ <style name="Oblique" fontName="DejaVu Sans Mono" fontSize="8" isItalic="true"/>
+
+ <style name="TableHeader" mode="Opaque" forecolor="#D0B48E" backcolor="#FDCA97" fontName="DejaVu Sans"/>
+ <style name="HeaderColumn" forecolor="#804000" fontName="DejaVu Sans" fontSize="8" isBold="true">
+ <box>
+ <topPen lineWidth="0.6" lineColor="#804000"/>
+ <leftPen lineWidth="0.6" lineColor="#804000"/>
+ <bottomPen lineWidth="0.6" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineColor="#804000"/>
+ </box>
+ </style>
+
<queryString>
<![CDATA[]]>
</queryString>
- <field name="fromDate" class="java.util.Date"/>
- <field name="toDate" class="java.util.Date"/>
- <field name="currency" class="java.lang.String"/>
- <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
- <field name="companyName" class="java.lang.String"/>
- <field name="title" class="java.lang.String"/>
- <field name="fromAccount" class="java.lang.String"/>
- <field name="toAccount" class="java.lang.String"/>
- <field name="formatter" class="java.text.DecimalFormat"/>
- <field name="generalLedgers" class="java.util.List"/>
+
+ <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
+ <field name="generalLedgers" class="java.util.List"/>
+
+ <field name="titleCompanyName" class="java.lang.String"/>
+ <field name="titleCurrentDate" class="java.lang.String"/>
+ <field name="titleFromToDate" class="java.lang.String"/>
+ <field name="titleReport" class="java.lang.String"/>
+
+ <field name="headerCurrency" class="java.lang.String"/>
+ <field name="headerCurrencyLabel" class="java.lang.String"/>
+ <field name="headerSelectedAccounts" class="java.lang.String"/>
+ <field name="headerSelectedAccountsLabel" class="java.lang.String"/>
+
+ <field name="columnBalanceTitle" class="java.lang.String"/>
+ <field name="columnCreditTitle" class="java.lang.String"/>
+ <field name="columnDateTitle" class="java.lang.String"/>
+ <field name="columnDebitTitle" class="java.lang.String"/>
+ <field name="columnDescriptionTitle" class="java.lang.String"/>
+ <field name="columnEntryBookTitle" class="java.lang.String"/>
+ <field name="columnVoucherTitle" class="java.lang.String"/>
+
<variable name="generalLedgers" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource">
<variableExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource((java.util.List)$F{generalLedgers})]]></variableExpression>
</variable>
+
<group name="generalLedgers"/>
<background>
<band splitType="Stretch"/>
</background>
- <title>
- <band height="41" splitType="Stretch">
- <frame>
- <reportElement style="Default" mode="Opaque" x="0" y="1" width="578" height="40" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="1aba49d4-0acc-4925-8731-13c1cc1a90f4"/>
- <box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- </box>
- <textField isBlankWhenNull="true">
- <reportElement style="Default" x="0" y="0" width="578" height="20" forecolor="#736343" uuid="9ee9d5f1-6e74-4526-83a4-3b386f2733a8"/>
- <textElement textAlignment="Center" verticalAlignment="Middle">
- <font size="14" isBold="true"/>
- </textElement>
- <textFieldExpression><![CDATA[$F{title}]]></textFieldExpression>
- </textField>
- <textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="true">
- <reportElement style="Default" x="444" y="0" width="134" height="20" forecolor="#736343" uuid="a60d5d40-69ac-4c50-a33a-67c26cce05f3"/>
- <textElement textAlignment="Right" verticalAlignment="Middle">
- <font size="8" isBold="false"/>
- <paragraph rightIndent="5"/>
- </textElement>
- <textFieldExpression><![CDATA["Edition du: " + new SimpleDateFormat("dd/MM/yyyy à HH:mm").format(new java.util.Date())]]></textFieldExpression>
- </textField>
- <textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
- <reportElement style="Default" x="210" y="20" width="80" height="20" forecolor="#736343" uuid="37d0a47c-0197-4f09-8358-823b39a2a42a">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <textElement textAlignment="Right" verticalAlignment="Middle">
- <font isBold="true"/>
- </textElement>
- <textFieldExpression><![CDATA["Du " + new SimpleDateFormat("dd/MM/yyyy").format($F{fromDate})]]></textFieldExpression>
- </textField>
- <textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
- <reportElement style="Default" x="290" y="20" width="80" height="20" forecolor="#736343" uuid="5fc4df4a-5930-4ccd-b450-cf7aac6be57b">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <textElement verticalAlignment="Middle">
- <font isBold="true"/>
- </textElement>
- <textFieldExpression><![CDATA[" au " + new SimpleDateFormat("dd/MM/yyyy").format($F{toDate})]]></textFieldExpression>
- </textField>
- <textField isBlankWhenNull="true">
- <reportElement style="Default" x="0" y="0" width="190" height="20" forecolor="#736343" uuid="5aa3ceb9-e407-42da-bdc3-097875bdd5f5">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <textElement verticalAlignment="Middle" rotation="None">
- <font size="10" isBold="true"/>
- <paragraph leftIndent="5"/>
- </textElement>
- <textFieldExpression><![CDATA[$F{companyName}]]></textFieldExpression>
- </textField>
- </frame>
- </band>
- </title>
- <pageHeader>
- <band height="25" splitType="Stretch">
- <textField isBlankWhenNull="true">
- <reportElement style="Oblique" x="444" y="9" width="134" height="16" forecolor="#000000" uuid="abcb18cb-7d0e-4eb8-a9f5-aca4baffa9ae">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <textElement textAlignment="Right" verticalAlignment="Middle">
- <font size="8"/>
- </textElement>
- <textFieldExpression><![CDATA["Devise: " + $F{currency}]]></textFieldExpression>
- </textField>
- <textField isBlankWhenNull="true">
- <reportElement style="Oblique" x="0" y="9" width="444" height="16" uuid="02c35c41-1b1f-4554-ab87-5403d63ae3d6">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <textElement textAlignment="Left" verticalAlignment="Middle">
- <font size="8" isItalic="true"/>
- </textElement>
- <textFieldExpression><![CDATA["Comptes: " + $F{fromAccount}]]></textFieldExpression>
- </textField>
- </band>
- </pageHeader>
+
+ <title>
+ <band height="41" splitType="Stretch">
+ <frame>
+ <reportElement style="Default" mode="Opaque" x="0" y="1" width="578" height="40" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="1aba49d4-0acc-4925-8731-13c1cc1a90f4"/>
+ <box>
+ <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ </box>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="0" y="0" width="578" height="20" forecolor="#736343" uuid="9ee9d5f1-6e74-4526-83a4-3b386f2733a8"/>
+ <textElement textAlignment="Center" verticalAlignment="Middle">
+ <font size="14" isBold="true"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{titleReport}]]></textFieldExpression>
+ </textField>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="444" y="0" width="134" height="20" forecolor="#736343" uuid="a60d5d40-69ac-4c50-a33a-67c26cce05f3"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle">
+ <font size="8" isBold="false"/>
+ <paragraph rightIndent="5"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{titleCurrentDate}]]></textFieldExpression>
+ </textField>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="210" y="20" width="160" height="20" forecolor="#736343" uuid="37d0a47c-0197-4f09-8358-823b39a2a42a"/>
+ <textElement textAlignment="Center" verticalAlignment="Middle">
+ <font isBold="true"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{titleFromToDate}]]></textFieldExpression>
+ </textField>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="0" y="0" width="190" height="20" forecolor="#736343" uuid="5aa3ceb9-e407-42da-bdc3-097875bdd5f5"/>
+ <textElement verticalAlignment="Middle" rotation="None">
+ <font size="10" isBold="true"/>
+ <paragraph leftIndent="5"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{titleCompanyName}]]></textFieldExpression>
+ </textField>
+ </frame>
+ </band>
+ </title>
+
+ <pageHeader>
+ <band height="16" splitType="Stretch">
+ <textField isBlankWhenNull="true">
+ <reportElement style="Oblique" x="0" y="0" width="444" height="16" uuid="9db3917c-44e3-46d2-b95a-6463e5eff328"/>
+ <textElement textAlignment="Left" verticalAlignment="Middle">
+ <font size="8" isItalic="true"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{headerSelectedAccountsLabel} + $F{headerSelectedAccounts}]]></textFieldExpression>
+ </textField>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Oblique" x="444" y="0" width="134" height="16" forecolor="#000000" uuid="abcb18cb-7d0e-4eb8-a9f5-aca4baffa9ae"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle">
+ <font size="8"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{headerCurrencyLabel} + $F{headerCurrency}]]></textFieldExpression>
+ </textField>
+ </band>
+ </pageHeader>
+
<columnHeader>
<band height="20">
<frame>
- <reportElement style="Column header" mode="Opaque" x="0" y="0" width="578" height="20" forecolor="#D0B48E" backcolor="#FDCA97" uuid="6c2c2b44-eebf-41d3-8b56-47d4a20a4b24">
+ <reportElement style="TableHeader" mode="Opaque" x="0" y="0" width="578" height="20" uuid="6c2c2b44-eebf-41d3-8b56-47d4a20a4b24">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
</reportElement>
- <box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- </box>
- <staticText>
- <reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="60" height="20" forecolor="#804000" backcolor="#FFFFFF" uuid="63da28a1-a793-4bf5-81d4-6a4d6fc1e4df">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textField>
+ <reportElement style="HeaderColumn" x="0" y="0" width="60" height="20" uuid="63da28a1-a793-4bf5-81d4-6a4d6fc1e4df"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Date]]></text>
- </staticText>
- <staticText>
- <reportElement x="60" y="0" width="40" height="20" forecolor="#804000" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6"/>
- <leftPen lineWidth="0.6"/>
- <bottomPen lineWidth="0.6"/>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnDateTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="60" y="0" width="40" height="20" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Journal]]></text>
- </staticText>
- <staticText>
- <reportElement x="100" y="0" width="40" height="20" forecolor="#804000" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6"/>
- <leftPen lineWidth="0.6"/>
- <bottomPen lineWidth="0.6"/>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnEntryBookTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="100" y="0" width="40" height="20" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Pièce]]></text>
- </staticText>
- <staticText>
- <reportElement x="140" y="0" width="222" height="20" forecolor="#804000" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6"/>
- <leftPen lineWidth="0.6"/>
- <bottomPen lineWidth="0.6"/>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnVoucherTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="140" y="0" width="222" height="20" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Intitulé]]></text>
- </staticText>
- <staticText>
- <reportElement x="362" y="0" width="72" height="20" forecolor="#804000" uuid="b6ea8597-d637-47d1-9a39-7c99101594e9">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineColor="#804000"/>
- <bottomPen lineWidth="0.6" lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineColor="#804000"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnDescriptionTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="362" y="0" width="72" height="20" uuid="b6ea8597-d637-47d1-9a39-7c99101594e9"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Débit]]></text>
- </staticText>
- <staticText>
- <reportElement x="434" y="0" width="72" height="20" forecolor="#804000" uuid="c4f9f592-7052-4b66-abc2-f04cc5f3972c">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
- <box>
- <topPen lineColor="#804000"/>
- <leftPen lineColor="#804000"/>
- <bottomPen lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineColor="#804000"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnDebitTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="434" y="0" width="72" height="20" uuid="c4f9f592-7052-4b66-abc2-f04cc5f3972c"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Crédit]]></text>
- </staticText>
- <staticText>
- <reportElement x="506" y="0" width="72" height="20" forecolor="#804000" uuid="c4f9f592-7052-4b66-abc2-f04cc5f3972c">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
- <box>
- <topPen lineColor="#804000"/>
- <leftPen lineColor="#804000"/>
- <bottomPen lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineColor="#804000"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnCreditTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="506" y="0" width="72" height="20" uuid="c4f9f592-7052-4b66-abc2-f04cc5f3972c"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Solde]]></text>
- </staticText>
+ <textFieldExpression><![CDATA[$F{columnBalanceTitle}]]></textFieldExpression>
+ </textField>
</frame>
</band>
</columnHeader>
+
<detail>
<band height="20" splitType="Stretch">
<subreport isUsingCache="false" runToBottom="false">
@@ -262,6 +183,7 @@
</subreport>
</band>
</detail>
+
<pageFooter>
<band height="10" splitType="Stretch">
<property name="local_mesure_unitheight" value="pixel"/>
diff --git a/lima-report/src/main/resources/jasperreports/generalLedger/GeneralLedgerEntryReport.jrxml b/lima-report/src/main/resources/jasperreports/generalLedger/GeneralLedgerEntryReport.jrxml
index 6ec6335..675f32d 100644
--- a/lima-report/src/main/resources/jasperreports/generalLedger/GeneralLedgerEntryReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/generalLedger/GeneralLedgerEntryReport.jrxml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
-<!-- 2015-03-11T12:00:01 -->
+<!-- Created with Jaspersoft Studio version 6.1.0.final using JasperReports Library version 6.1.0 -->
+<!-- 2015-07-07T11:29:55 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceClassesReport" pageWidth="578" pageHeight="31" whenNoDataType="BlankPage" columnWidth="578" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" whenResourceMissingType="Empty" isIgnorePagination="true" uuid="75ff [...]
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
@@ -15,17 +15,27 @@
<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
<style name="Default" isDefault="true" fontName="DejaVu Sans"/>
<style name="Default oblique" fontName="DejaVu Sans Mono"/>
+ <style name="TableBody" fontName="DejaVu Sans"/>
+ <style name="BodyColumn" fontName="DejaVu Sans" fontSize="8">
+ <box>
+ <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ </box>
+ </style>
<queryString>
<![CDATA[]]>
</queryString>
+ <field name="formatter" class="java.text.DecimalFormat"/>
+ <field name="dateFormat" class="java.text.SimpleDateFormat"/>
<field name="date" class="java.util.Date"/>
<field name="entryBook" class="java.lang.String"/>
<field name="voucher" class="java.lang.String"/>
<field name="description" class="java.lang.String"/>
<field name="debit" class="java.math.BigDecimal"/>
<field name="credit" class="java.math.BigDecimal"/>
- <field name="solde" class="java.math.BigDecimal"/>
- <field name="formatter" class="java.text.DecimalFormat"/>
+ <field name="balance" class="java.math.BigDecimal"/>
<field name="nbEntries" class="java.lang.Integer"/>
<variable name="subTotalDebit" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{debit}]]></variableExpression>
@@ -35,141 +45,60 @@
<variableExpression><![CDATA[$F{credit}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
- <variable name="subTotalSolde" class="java.math.BigDecimal" calculation="Sum">
- <variableExpression><![CDATA[$F{solde}]]></variableExpression>
+ <variable name="subTotalBalance" class="java.math.BigDecimal" calculation="Sum">
+ <variableExpression><![CDATA[$F{balance}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<detail>
<band height="10" splitType="Stretch">
<textField isBlankWhenNull="true">
- <reportElement positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="60" height="10" uuid="c5f32333-c77a-45f8-9bec-c8d61e15d85a">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
+ <reportElement style="BodyColumn" positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="60" height="10" uuid="c5f32333-c77a-45f8-9bec-c8d61e15d85a"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
- <font size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" leftIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[$F{date}]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{dateFormat}.format($F{date})]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement x="60" y="0" width="40" height="10" uuid="0bcc6e5d-b2ee-474f-8e66-475933d55a16">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
+ <reportElement style="BodyColumn" x="60" y="0" width="40" height="10" uuid="0bcc6e5d-b2ee-474f-8e66-475933d55a16"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
- <font size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$F{entryBook}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement x="100" y="0" width="40" height="10" uuid="e774e638-6353-46d0-9968-15992ef50bd3">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
+ <reportElement style="BodyColumn" x="100" y="0" width="40" height="10" uuid="e774e638-6353-46d0-9968-15992ef50bd3"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
- <font size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$F{voucher}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement style="Default" x="140" y="0" width="222" height="10" uuid="daac5561-4c81-4582-aabf-e8034c2cf93e">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
+ <reportElement style="BodyColumn" x="140" y="0" width="222" height="10" uuid="daac5561-4c81-4582-aabf-e8034c2cf93e"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
- <font size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$F{description}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement style="Default" x="362" y="0" width="72" height="10" uuid="53ba669a-6626-4e70-bbf0-fb243908a20e">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
+ <reportElement style="BodyColumn" x="362" y="0" width="72" height="10" uuid="53ba669a-6626-4e70-bbf0-fb243908a20e"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
- <font size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[new Boolean($F{debit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{debit}) : ""]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement style="Default" x="434" y="0" width="72" height="10" uuid="edb8a8c1-ac7a-44cb-9de6-b231b00f966f">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
+ <reportElement style="BodyColumn" x="434" y="0" width="72" height="10" uuid="edb8a8c1-ac7a-44cb-9de6-b231b00f966f"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
- <font size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[new Boolean($F{credit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{credit}) : ""]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement x="506" y="0" width="72" height="10" uuid="961e8048-c6ef-4b58-a857-31f9f29406c8">
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
+ <reportElement style="BodyColumn" x="506" y="0" width="72" height="10" uuid="961e8048-c6ef-4b58-a857-31f9f29406c8"/>
<textElement textAlignment="Right">
- <font size="8"/>
<paragraph rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($F{solde}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{solde}) : ""]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($F{balance}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{balance}) : ""]]></textFieldExpression>
</textField>
</band>
</detail>
@@ -179,72 +108,59 @@
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[$V{REPORT_COUNT} < $F{nbEntries}]]></printWhenExpression>
<frame>
- <reportElement x="0" y="0" width="578" height="10" uuid="5863f40f-6423-4463-ad4a-c4cecab0323c">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
+ <reportElement x="0" y="0" width="578" height="10" uuid="5863f40f-6423-4463-ad4a-c4cecab0323c"/>
<box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textField>
- <reportElement x="362" y="0" width="72" height="10" forecolor="#736343" uuid="0311393c-8196-477b-b00b-e76e767855ee">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
+ <reportElement x="0" y="0" width="362" height="10" forecolor="#736343" uuid="3deefb8e-456b-4bbb-8574-1a02651e5d7f"/>
+ <box>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ </box>
+ <textElement>
+ <font size="8" isBold="true"/>
+ </textElement>
+ <textFieldExpression><![CDATA["Sous total"]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement x="362" y="0" width="72" height="10" forecolor="#736343" uuid="0311393c-8196-477b-b00b-e76e767855ee"/>
+ <box>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ </box>
<textElement textAlignment="Right">
- <font size="8"/>
+ <font size="8" isBold="true"/>
<paragraph rightIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[new Boolean($V{subTotalDebit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{subTotalDebit}) : ""]]></textFieldExpression>
</textField>
<textField>
- <reportElement x="434" y="0" width="72" height="10" forecolor="#736343" uuid="0311393c-8196-477b-b00b-e76e767855ee">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
+ <reportElement x="434" y="0" width="72" height="10" forecolor="#736343" uuid="0311393c-8196-477b-b00b-e76e767855ee"/>
+ <box>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ </box>
<textElement textAlignment="Right">
- <font size="8"/>
+ <font size="8" isBold="true"/>
<paragraph rightIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[new Boolean($V{subTotalCredit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{subTotalCredit}) : ""]]></textFieldExpression>
</textField>
<textField>
- <reportElement x="506" y="0" width="72" height="10" forecolor="#736343" uuid="0311393c-8196-477b-b00b-e76e767855ee">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
+ <reportElement x="506" y="0" width="72" height="10" forecolor="#736343" uuid="0311393c-8196-477b-b00b-e76e767855ee"/>
+ <box>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ </box>
<textElement textAlignment="Right">
- <font size="8"/>
+ <font size="8" isBold="true"/>
<paragraph rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[new Boolean($V{subTotalSolde}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{subTotalSolde}) : ""]]></textFieldExpression>
- </textField>
- <textField>
- <reportElement x="0" y="0" width="362" height="10" forecolor="#736343" uuid="3deefb8e-456b-4bbb-8574-1a02651e5d7f">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <textElement>
- <font size="8"/>
- </textElement>
- <textFieldExpression><![CDATA["Sous total"]]></textFieldExpression>
+ <textFieldExpression><![CDATA[new Boolean($V{subTotalBalance}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($V{subTotalBalance}) : ""]]></textFieldExpression>
</textField>
</frame>
</band>
diff --git a/lima-report/src/main/resources/jasperreports/generalLedger/GeneralLedgerReport.jrxml b/lima-report/src/main/resources/jasperreports/generalLedger/GeneralLedgerReport.jrxml
index 7169223..9987b00 100644
--- a/lima-report/src/main/resources/jasperreports/generalLedger/GeneralLedgerReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/generalLedger/GeneralLedgerReport.jrxml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
-<!-- 2015-03-11T12:00:32 -->
+<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
+<!-- 2015-03-11T12:00:32 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceClassesReport" pageWidth="578" pageHeight="31" whenNoDataType="BlankPage" columnWidth="578" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" whenResourceMissingType="Empty" uuid="75ff86c6-c370-4f0b-a2d3-e17324 [...]
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
@@ -18,15 +18,18 @@
<queryString>
<![CDATA[]]>
</queryString>
+ <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
+ <field name="formatter" class="java.text.DecimalFormat"/>
+
+ <field name="entries" class="java.util.List"/>
+
<field name="accountNumber" class="java.lang.String"/>
<field name="label" class="java.lang.String"/>
<field name="debit" class="java.math.BigDecimal"/>
<field name="credit" class="java.math.BigDecimal"/>
- <field name="solde" class="java.math.BigDecimal"/>
- <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
- <field name="entries" class="java.util.List"/>
+ <field name="balance" class="java.math.BigDecimal"/>
<field name="nbEntries" class="java.lang.Integer"/>
- <field name="formatter" class="java.text.DecimalFormat"/>
+
<variable name="entries" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource">
<variableExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource((java.util.List)$F{entries})]]></variableExpression>
</variable>
@@ -38,8 +41,8 @@
<variableExpression><![CDATA[$F{credit}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
- <variable name="totalPeriodSolde" class="java.math.BigDecimal" calculation="Sum">
- <variableExpression><![CDATA[$F{solde}]]></variableExpression>
+ <variable name="totalPeriodBalance" class="java.math.BigDecimal" calculation="Sum">
+ <variableExpression><![CDATA[$F{balance}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<variable name="totalAccountDebit" class="java.math.BigDecimal" calculation="Sum">
@@ -50,35 +53,27 @@
<variableExpression><![CDATA[$F{credit}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
- <variable name="totalAccountSolde" class="java.math.BigDecimal" calculation="Sum">
- <variableExpression><![CDATA[$F{solde}]]></variableExpression>
+ <variable name="totalAccountBalance" class="java.math.BigDecimal" calculation="Sum">
+ <variableExpression><![CDATA[$F{balance}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
- <variable name="solde1" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
- <variableExpression><![CDATA[$F{solde}]]></variableExpression>
+ <variable name="balance1" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
+ <variableExpression><![CDATA[$F{balance}]]></variableExpression>
</variable>
<detail>
<band height="10">
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<frame>
- <reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="578" height="10" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="644d4927-8973-45d7-bd80-0512dad33987">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
+ <reportElement stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="578" height="10" forecolor="#FEEEDE" backcolor="#FEEEDE" uuid="644d4927-8973-45d7-bd80-0512dad33987"/>
<box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textField pattern="">
- <reportElement mode="Transparent" x="0" y="0" width="578" height="10" forecolor="#736343" uuid="b3b8449e-a63c-445d-8699-f0b9579f34f3">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <reportElement mode="Transparent" x="0" y="0" width="578" height="10" forecolor="#736343" uuid="b3b8449e-a63c-445d-8699-f0b9579f34f3"/>
<textElement textAlignment="Center">
<font size="8" isBold="true"/>
<paragraph leftIndent="0"/>
@@ -89,10 +84,7 @@
</band>
<band height="10" splitType="Stretch">
<subreport isUsingCache="false" runToBottom="false">
- <reportElement key="subreport-5" positionType="Float" mode="Transparent" x="0" y="0" width="578" height="10" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#FFFFFF" uuid="0877d57b-0e57-4e7a-a97e-c5418acbf030">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <reportElement key="subreport-5" positionType="Float" mode="Transparent" x="0" y="0" width="578" height="10" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#FFFFFF" uuid="0877d57b-0e57-4e7a-a97e-c5418acbf030"/>
<dataSourceExpression><![CDATA[$V{entries}]]></dataSourceExpression>
<subreportExpression><![CDATA[$F{subReport}]]></subreportExpression>
</subreport>
@@ -101,25 +93,15 @@
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<frame>
- <reportElement x="0" y="0" width="578" height="10" uuid="5863f40f-6423-4463-ad4a-c4cecab0323c">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
+ <reportElement x="0" y="0" width="578" height="10" uuid="5863f40f-6423-4463-ad4a-c4cecab0323c"/>
<box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
</box>
<textField isBlankWhenNull="true">
- <reportElement x="362" y="0" width="72" height="10" forecolor="#736343" uuid="0311393c-8196-477b-b00b-e76e767855ee">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
+ <reportElement x="362" y="0" width="72" height="10" forecolor="#736343" uuid="0311393c-8196-477b-b00b-e76e767855ee"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
<paragraph rightIndent="2"/>
@@ -127,14 +109,7 @@
<textFieldExpression><![CDATA[$F{debit}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement x="434" y="0" width="72" height="10" forecolor="#736343" uuid="0311393c-8196-477b-b00b-e76e767855ee">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
+ <reportElement x="434" y="0" width="72" height="10" forecolor="#736343" uuid="0311393c-8196-477b-b00b-e76e767855ee"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
<paragraph rightIndent="2"/>
@@ -142,27 +117,15 @@
<textFieldExpression><![CDATA[$F{credit}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
- <reportElement x="506" y="0" width="72" height="10" forecolor="#736343" uuid="0311393c-8196-477b-b00b-e76e767855ee">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- </reportElement>
+ <reportElement x="506" y="0" width="72" height="10" forecolor="#736343" uuid="0311393c-8196-477b-b00b-e76e767855ee"/>
<textElement textAlignment="Right">
<font size="8" isBold="true"/>
<paragraph rightIndent="2"/>
</textElement>
- <textFieldExpression><![CDATA[$F{solde}]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{balance}]]></textFieldExpression>
</textField>
<textField pattern="">
- <reportElement mode="Transparent" x="0" y="0" width="362" height="10" forecolor="#736343" uuid="3deefb8e-456b-4bbb-8574-1a02651e5d7f">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <reportElement mode="Transparent" x="0" y="0" width="362" height="10" forecolor="#736343" uuid="3deefb8e-456b-4bbb-8574-1a02651e5d7f"/>
<textElement>
<font size="8" isBold="true"/>
</textElement>
--
To stop receiving notification emails like this one, please contact
chorem.org SCM administrator <admin+scm(a)chorem.org>.
1
0
This is an automated email from the git hooks/post-receive script.
New commit to branch feature/1241-account-report in repository lima.
See http://git.chorem.org/lima.git
commit 9afd18d63faa9b966fc50beda3e2573cc7fd47b3
Author: dcosse <cosse(a)codelutin.com>
Date: Fri Jul 3 18:24:09 2015 +0200
refs #1241 refactoring
---
.../lima/business/ejb/AbstractLimaService.java | 5 +
.../ejb/report/AccountReportServiceImpl.java | 54 ++--
.../ejb/report/BalanceReportServiceImpl.java | 73 +++--
.../report/GeneralEntryBookReportServiceImpl.java | 25 +-
.../ejb/report/LedgerReportServiceImpl.java | 25 +-
.../ProvisionalEntryBookReportServiceImpl.java | 25 +-
.../resources/i18n/lima-business_en_GB.properties | 32 +-
.../resources/i18n/lima-business_fr_FR.properties | 30 +-
lima-callao/src/main/xmi/lima-callao-model.zargo | Bin 57764 -> 58818 bytes
.../jasperreports/account/DocumentReport.jrxml | 350 ++++++++-------------
.../balance/BalanceSubAccountsReport.jrxml | 10 +-
.../jasperreports/balance/DocumentReport.jrxml | 165 ++++------
.../jasperreports/entryBook/DocumentReport.jrxml | 296 ++++++-----------
.../resources/i18n/lima-swing_en_GB.properties | 17 +-
.../resources/i18n/lima-swing_fr_FR.properties | 22 +-
15 files changed, 488 insertions(+), 641 deletions(-)
diff --git a/lima-business/src/main/java/org/chorem/lima/business/ejb/AbstractLimaService.java b/lima-business/src/main/java/org/chorem/lima/business/ejb/AbstractLimaService.java
index bedb0a5..2cb10ea 100644
--- a/lima-business/src/main/java/org/chorem/lima/business/ejb/AbstractLimaService.java
+++ b/lima-business/src/main/java/org/chorem/lima/business/ejb/AbstractLimaService.java
@@ -27,6 +27,8 @@ import org.apache.commons.logging.LogFactory;
import org.chorem.lima.business.LimaInterceptor;
import org.chorem.lima.entity.LimaCallaoTopiaDaoSupplier;
+import java.text.SimpleDateFormat;
+
/**
* Abstract code for all ejb services (get context, catch, finally...).
*
@@ -35,6 +37,9 @@ import org.chorem.lima.entity.LimaCallaoTopiaDaoSupplier;
*/
public abstract class AbstractLimaService {
+ public static SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd/MM/yyyy");
+ public static SimpleDateFormat TIME_FORMAT = new SimpleDateFormat("HH:mm");
+
/** Logger. */
protected static final Log log = LogFactory.getLog(AbstractLimaService.class);
diff --git a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/AccountReportServiceImpl.java b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/AccountReportServiceImpl.java
index d43dd90..5c4a88a 100644
--- a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/AccountReportServiceImpl.java
+++ b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/AccountReportServiceImpl.java
@@ -27,6 +27,8 @@ import java.util.Collection;
import java.util.Date;
import java.util.List;
+import static org.nuiton.i18n.I18n.t;
+
/**
* Created by davidcosse on 26/06/15.
*/
@@ -44,26 +46,22 @@ public class AccountReportServiceImpl extends AbstractLimaService implements Acc
@Override
public DocumentReport getAccountDocumentReport(String accountId, Date from, Date to, JasperReport accountsEntryJasperReport, DecimalFormat bigDecimalFormat) {
+ DocumentReport documentReport = getDocumentReport(from, to, accountsEntryJasperReport, bigDecimalFormat, identityService);
- DocumentReport documentReport = new DocumentReportImpl();
- documentReport.setFormatter(bigDecimalFormat);
-
- Identity identity = identityService.getIdentity();
- String companyName = identity == null ? "" : identity.getName();
- documentReport.setCompanyName(companyName);
-
- // general info about balance report
- documentReport.setTitle(TITLE);
- documentReport.setCurrency(bigDecimalFormat.getDecimalFormatSymbols().getCurrencySymbol());
- documentReport.setFromDate(from);
- documentReport.setToDate(to);
- documentReport.setSubReport(accountsEntryJasperReport);
+ documentReport.setColumnAccountTitle(t("lima.config.documentReport.columnAccountTitle"));
+ documentReport.setColumnDateTitle(t("lima.config.documentReport.columnDateTitle"));
+ documentReport.setColumnEntryBookTitle(t("lima.config.documentReport.columnEntryBookTitle"));
+ documentReport.setColumnVoucherTitle(t("lima.config.documentReport.columnVoucherTitle"));
+ documentReport.setColumnDescriptionTitle(t("lima.config.documentReport.columnDescriptionTitle"));
+ documentReport.setColumnLetterTitle(t("lima.config.documentReport.columnLetterTitle"));
+ documentReport.setColumnDebitTitle(t("lima.config.documentReport.columnDebitTitle"));
+ documentReport.setColumnCreditTitle(t("lima.config.documentReport.columnCreditTitle"));
AccountTopiaDao accountTopiaDao = getDaoHelper().getAccountDao();
Account account = accountTopiaDao.forTopiaIdEquals(accountId).findUniqueOrNull();
if (from != null && to != null && account != null) {
- String fromAccountLabel = account.getAccountNumber();
+ String selectedAccounts = account.getAccountNumber();
Collection<AccountEntry> accountEntries = new ArrayList<>();
@@ -99,14 +97,14 @@ public class AccountReportServiceImpl extends AbstractLimaService implements Acc
documentReport.addAllAccounts(accountEntries);
if (CollectionUtils.isEmpty(accountEntries)) {
- fromAccountLabel += ", aucune entrée trouvé sur ce compte";
+ selectedAccounts += ", aucune entrée trouvé sur ce compte";
} else if (accountEntries.size() == 1){
- fromAccountLabel += ", et son compte fils";
+ selectedAccounts += ", et son compte fils";
} else {
- fromAccountLabel += ", et ses comptes fils";
+ selectedAccounts += ", et ses comptes fils";
}
- documentReport.setFromAccount(fromAccountLabel);
+ documentReport.setHeaderSelectedAccounts(selectedAccounts);
} else {
if (log.isWarnEnabled()) {
@@ -116,4 +114,24 @@ public class AccountReportServiceImpl extends AbstractLimaService implements Acc
return documentReport;
}
+
+ protected static DocumentReport getDocumentReport(Date from, Date to, JasperReport subReport, DecimalFormat bigDecimalFormat, IdentityService identityService) {
+ Date currentDate = new Date();
+ DocumentReport documentReport = new DocumentReportImpl();
+ documentReport.setSubReport(subReport);
+ documentReport.setFormatter(bigDecimalFormat);
+
+ documentReport.setTitleReport(TITLE);
+
+ Identity identity = identityService.getIdentity();
+ String companyName = identity == null ? "" : identity.getName();
+ documentReport.setTitleCompanyName(companyName);
+ documentReport.setTitleCurrentDate(t("lima.config.documentReport.titleCurrentDate", DATE_FORMAT.format(currentDate), TIME_FORMAT.format(currentDate)));
+ documentReport.setTitleFromToDate(t("lima.config.documentReport.titleFromToDate", DATE_FORMAT.format(from), DATE_FORMAT.format(to)));
+
+ documentReport.setHeaderSelectedAccountsLabel(t("lima.config.documentReport.headerSelectedAccountsLabel"));
+ documentReport.setHeaderCurrencyLabel(t("lima.config.documentReport.headerCurrencyLabel"));
+ documentReport.setHeaderCurrency(bigDecimalFormat.getDecimalFormatSymbols().getCurrencySymbol());
+ return documentReport;
+ }
}
diff --git a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/BalanceReportServiceImpl.java b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/BalanceReportServiceImpl.java
index f4ecd08..7a24de4 100644
--- a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/BalanceReportServiceImpl.java
+++ b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/BalanceReportServiceImpl.java
@@ -25,13 +25,13 @@ package org.chorem.lima.business.ejb.report;
import com.google.common.base.Predicate;
import com.google.common.collect.Iterables;
import net.sf.jasperreports.engine.JasperReport;
+import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
-import org.chorem.lima.beans.DocumentReport;
import org.chorem.lima.beans.BalanceAccount;
import org.chorem.lima.beans.BalanceAccountImpl;
-import org.chorem.lima.beans.DocumentReportImpl;
import org.chorem.lima.beans.BalanceTrial;
import org.chorem.lima.beans.BalanceTrialImpl;
+import org.chorem.lima.beans.DocumentReport;
import org.chorem.lima.beans.ReportsDatas;
import org.chorem.lima.business.api.AccountService;
import org.chorem.lima.business.api.FinancialPeriodService;
@@ -42,7 +42,6 @@ import org.chorem.lima.business.utils.AccountComparator;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.AccountTopiaDao;
import org.chorem.lima.entity.EntryTopiaDao;
-import org.chorem.lima.entity.Identity;
import javax.ejb.EJB;
import javax.ejb.Remote;
@@ -57,6 +56,8 @@ import java.util.Date;
import java.util.HashMap;
import java.util.List;
+import static org.nuiton.i18n.I18n.t;
+
/**
* Created by davidcosse on 04/11/14.
*/
@@ -93,19 +94,14 @@ public class BalanceReportServiceImpl extends AbstractLimaService implements Bal
@Override
public DocumentReport getBalanceDocumentReport(Date from, Date to, String selectedAccounts, DecimalFormat bigDecimalFormat, JasperReport mainAccountsJasperReport, JasperReport subAccountsJasperReport) {
- DocumentReport documentReport = new DocumentReportImpl();
- documentReport.setFormatter(bigDecimalFormat);
+ DocumentReport documentReport = AccountReportServiceImpl.getDocumentReport(from, to, mainAccountsJasperReport, bigDecimalFormat, identityService);
- Identity identity = identityService.getIdentity();
- String companyName = identity == null ? "" : identity.getName();
- documentReport.setCompanyName(companyName);
-
- // general info about balance report
- documentReport.setTitle(TITLE);
- documentReport.setCurrency(bigDecimalFormat.getDecimalFormatSymbols().getCurrencySymbol());
- documentReport.setFromDate(from);
- documentReport.setToDate(to);
- documentReport.setSubReport(mainAccountsJasperReport);
+ documentReport.setColumnAccountTitle(t("lima.config.documentReport.columnAccountTitle"));
+ documentReport.setColumnDescriptionTitle(t("lima.config.documentReport.columnDescriptionTitle"));
+ documentReport.setColumnTotalForPeriodTitle(t("lima.config.documentReport.columnTotalForPeriodTitle"));
+ documentReport.setColumnBalanceForPeriodTitle(t("lima.config.documentReport.columnBalanceForPeriodTitle"));
+ documentReport.setColumnDebitTitle(t("lima.config.documentReport.columnDebitTitle"));
+ documentReport.setColumnCreditTitle(t("lima.config.documentReport.columnCreditTitle"));
BalanceTrial balanceTrial = new BalanceTrialImpl();
balanceTrial.setReportsDatas(new ArrayList<ReportsDatas>());
@@ -116,43 +112,36 @@ public class BalanceReportServiceImpl extends AbstractLimaService implements Bal
List<Account> accounts;
//Remove Spaces
- // TODO DCossé 12/06/14 selectedAccounts is allways NULL
selectedAccounts = StringUtils.deleteWhitespace(selectedAccounts);
- //if no filter account
- if (selectedAccounts == null || selectedAccounts.equals("")) {
+
+ // find all if none specified
+ if (StringUtils.isBlank(selectedAccounts)) {
accounts = accountTopiaDao.findAll();
- }
- //build list account from selectedAccounts
- else {
+ } else {
accounts = accountService.stringToListAccounts(selectedAccounts);
}
Collection<BalanceAccount> returnedAccounts = new ArrayList<>();
- if (accounts != null && !accounts.isEmpty()) {
+ if (CollectionUtils.isNotEmpty(accounts)) {
Collections.sort(accounts, new AccountComparator());
- Account fromAccount = accounts.get(0);
- Account toAccount = accounts.get(accounts.size()-1);
- String fromAccountLabel = StringUtils.isNotBlank(fromAccount.getLabel()) ? fromAccount.getLabel() + " (" + fromAccount.getAccountNumber() + ")" : fromAccount.getAccountNumber();
- String toAccountLabel = StringUtils.isNotBlank(toAccount.getLabel()) ? toAccount.getLabel() + " (" + toAccount.getAccountNumber() + ")" : toAccount.getAccountNumber();
- documentReport.setFromAccount(fromAccountLabel + " à " + toAccountLabel);
+ setDocumentReportHeaderSelectedAccounts(documentReport, accounts);
HashMap<String, BalanceAccountImpl> accountsByClasses = new HashMap<>();
for (Account account : accounts) {
String accountClass = String.valueOf(account.getAccountNumber().charAt(0));
- BalanceAccountImpl classAccount = accountsByClasses.get(accountClass);
- if (classAccount == null) {
- classAccount = new BalanceAccountImpl();
- classAccount.setFormatter(bigDecimalFormat);
- classAccount.setSubReport(subAccountsJasperReport);
- classAccount.setSubAccounts(new ArrayList<BalanceAccount>());
- classAccount.setAccountNumber("");
- accountsByClasses.put(accountClass, classAccount);
- returnedAccounts.add(classAccount);
+ BalanceAccountImpl accountSubAccounts = accountsByClasses.get(accountClass);
+ if (accountSubAccounts == null) {
+ accountSubAccounts = new BalanceAccountImpl();
+ accountSubAccounts.setFormatter(bigDecimalFormat);
+ accountSubAccounts.setSubReport(subAccountsJasperReport);
+ accountSubAccounts.setSubAccounts(new ArrayList<BalanceAccount>());
+ accountsByClasses.put(accountClass, accountSubAccounts);
+ returnedAccounts.add(accountSubAccounts);
}
BalanceAccount subClassAccount = bindAccountToBalanceReportAccount(accountClass, account, from, to, bigDecimalFormat);
- classAccount.addSubAccount(subClassAccount);
+ accountSubAccounts.addSubAccount(subClassAccount);
}
}
@@ -161,6 +150,14 @@ public class BalanceReportServiceImpl extends AbstractLimaService implements Bal
return documentReport;
}
+ protected void setDocumentReportHeaderSelectedAccounts(DocumentReport documentReport, List<Account> accounts) {
+ Account fromAccount = accounts.get(0);
+ Account toAccount = accounts.get(accounts.size()-1);
+ String fromAccountText = StringUtils.isNotBlank(fromAccount.getLabel()) ? fromAccount.getLabel() + " (" + fromAccount.getAccountNumber() + ")" : fromAccount.getAccountNumber();
+ String toAccountText = StringUtils.isNotBlank(toAccount.getLabel()) ? toAccount.getLabel() + " (" + toAccount.getAccountNumber() + ")" : toAccount.getAccountNumber();
+ documentReport.setHeaderSelectedAccounts(t("lima.config.documentReport.headerSelectedAccounts", fromAccountText, toAccountText));
+ }
+
/**
* Calculate all credit, debit and solde amounts for the balance
* <p/>
@@ -176,6 +173,8 @@ public class BalanceReportServiceImpl extends AbstractLimaService implements Bal
accountNumber = StringUtils.rightPad(accountNumber, ACCOUNT_NUMBER_SIZE - accountNumber.length(), '0');
balanceAccount.setAccountNumber(accountNumber);
balanceAccount.setLabel(account.getLabel());
+ balanceAccount.setSubTotalForLabel(t("lima.config.documentReport.subTotalFor"));
+ balanceAccount.setTotalForLabel(t("lima.config.documentReport.totalFor"));
EntryTopiaDao entryTopiaDao = getDaoHelper().getEntryDao();
diff --git a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/GeneralEntryBookReportServiceImpl.java b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/GeneralEntryBookReportServiceImpl.java
index 9615820..ec77f90 100644
--- a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/GeneralEntryBookReportServiceImpl.java
+++ b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/GeneralEntryBookReportServiceImpl.java
@@ -31,7 +31,6 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaTechnicalException;
import org.chorem.lima.beans.DocumentReport;
-import org.chorem.lima.beans.DocumentReportImpl;
import org.chorem.lima.beans.GeneralEntryBook;
import org.chorem.lima.beans.GeneralEntryBookEntry;
import org.chorem.lima.beans.GeneralEntryBookEntryImpl;
@@ -44,7 +43,6 @@ import org.chorem.lima.business.api.report.GeneralEntryBookReportService;
import org.chorem.lima.business.ejb.AbstractLimaService;
import org.chorem.lima.entity.ClosedPeriodicEntryBook;
import org.chorem.lima.entity.FinancialPeriod;
-import org.chorem.lima.entity.Identity;
import javax.ejb.EJB;
import javax.ejb.Remote;
@@ -57,6 +55,8 @@ import java.util.Date;
import java.util.List;
import java.util.Map;
+import static org.nuiton.i18n.I18n.t;
+
/**
* Created by davidcosse on 17/11/14.
@@ -96,21 +96,16 @@ public class GeneralEntryBookReportServiceImpl extends AbstractLimaService imple
@Override
public DocumentReport getGeneralEntryBookDocumentReport(Date beginDate, Date endDate, DecimalFormat bigDecimalFormat, JasperReport generalEntryBooksJasperReport, JasperReport entriesJasperReport) {
- DocumentReport documentReport = new DocumentReportImpl();
- try {
+ DocumentReport documentReport = AccountReportServiceImpl.getDocumentReport(beginDate, endDate, generalEntryBooksJasperReport, bigDecimalFormat, identityService);
+ documentReport.setColumnEntryBookTitle(t("lima.config.documentReport.columnEntryBookTitle"));
+ documentReport.setColumnDescriptionTitle(t("lima.config.documentReport.columnDescriptionTitle"));
+ documentReport.setColumnTotalForPeriodTitle(t("lima.config.documentReport.columnTotalForPeriodTitle"));
+ documentReport.setColumnDebitTitle(t("lima.config.documentReport.columnDebitTitle"));
+ documentReport.setColumnCreditTitle(t("lima.config.documentReport.columnCreditTitle"));
+
+ try {
if (beginDate != null && endDate != null) {
- Identity identity = identityService.getIdentity();
- String companyName = identity == null ? "" : identity.getName();
- documentReport.setCompanyName(companyName);
-
- // general infos about balance report
- documentReport.setTitle(TITLE);
- documentReport.setCurrency(bigDecimalFormat.getDecimalFormatSymbols().getCurrencySymbol());
- documentReport.setFromDate(beginDate);
- documentReport.setToDate(endDate);
- documentReport.setSubReport(generalEntryBooksJasperReport);
- documentReport.setFormatter(bigDecimalFormat);
List<FinancialPeriod> financialPeriods = financialPeriodService.getFinancialPeriods(beginDate, endDate);
diff --git a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/LedgerReportServiceImpl.java b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/LedgerReportServiceImpl.java
index 56376df..50c5b17 100644
--- a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/LedgerReportServiceImpl.java
+++ b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/LedgerReportServiceImpl.java
@@ -26,7 +26,6 @@ import net.sf.jasperreports.engine.JasperReport;
import org.chorem.lima.LimaTechnicalException;
import org.chorem.lima.beans.BalanceTrial;
import org.chorem.lima.beans.DocumentReport;
-import org.chorem.lima.beans.DocumentReportImpl;
import org.chorem.lima.beans.GeneralLedger;
import org.chorem.lima.beans.GeneralLedgerEntry;
import org.chorem.lima.beans.GeneralLedgerEntryImpl;
@@ -40,7 +39,6 @@ import org.chorem.lima.business.utils.EntryComparator;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
-import org.chorem.lima.entity.Identity;
import javax.ejb.EJB;
import javax.ejb.Remote;
@@ -73,23 +71,20 @@ public class LedgerReportServiceImpl extends AbstractLimaService implements Ledg
@Override
public DocumentReport getLedgerDocumentReport(Date beginDate, Date endDate, DecimalFormat decimalFormat, JasperReport generalLedgersJasperReport, JasperReport entriesJasperReport) {
- DocumentReport result = new DocumentReportImpl();
- result.setFormatter(decimalFormat);
- result.setCurrency(decimalFormat.getDecimalFormatSymbols().getCurrencySymbol());
- result.setFromDate(beginDate);
- result.setToDate(endDate);
- result.setSubReport(generalLedgersJasperReport);
- result.setTitle(TITLE);
+ DocumentReport documentReport = AccountReportServiceImpl.getDocumentReport(beginDate, endDate, generalLedgersJasperReport, decimalFormat, identityService);
- Identity identity = identityService.getIdentity();
- String companyName = identity == null ? "" : identity.getName();
- result.setCompanyName(companyName);
+ documentReport.setColumnDateTitle(t("lima.config.documentReport.setColumnDateTitle"));
+ documentReport.setColumnEntryBookTitle(t("lima.config.documentReport.setColumnEntryBookTitle"));
+ documentReport.setColumnVoucherTitle(t("lima.config.documentReport.columnVoucherTitle"));
+ documentReport.setColumnDebitTitle(t("lima.config.documentReport.columnDebitTitle"));
+ documentReport.setColumnCreditTitle(t("lima.config.documentReport.columnCreditTitle"));
+ documentReport.setColumnBalanceTitle(t("lima.config.documentReport.columnBalanceTitle"));
if (beginDate != null && endDate != null) {
try {
BalanceTrial balanceTrial = reportService.generateLedger(beginDate, endDate, null, true);
- result.setFromAccount(balanceTrial.getFromToAccountNumber());
+ documentReport.setHeaderSelectedAccounts(balanceTrial.getFromToAccountNumber());
if (balanceTrial.getReportsDatas() != null) {
for (ReportsDatas reportsDatas : balanceTrial.getReportsDatas()) {
@@ -109,7 +104,7 @@ public class LedgerReportServiceImpl extends AbstractLimaService implements Ledg
generalLedger.setSolde(amountDebit.subtract(amountCredit));
generalLedger.setSubReport(entriesJasperReport);
generalLedger.setNbEntries(balanceTrial.getReportsDatas().size());
- result.addGeneralLedgers(generalLedger);
+ documentReport.addGeneralLedgers(generalLedger);
Collections.sort(entries, new EntryComparator());
@@ -150,6 +145,6 @@ public class LedgerReportServiceImpl extends AbstractLimaService implements Ledg
throw new LimaTechnicalException("Can't create document", ex);
}
}
- return result;
+ return documentReport;
}
}
diff --git a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/ProvisionalEntryBookReportServiceImpl.java b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/ProvisionalEntryBookReportServiceImpl.java
index 0340918..41d03a5 100644
--- a/lima-business/src/main/java/org/chorem/lima/business/ejb/report/ProvisionalEntryBookReportServiceImpl.java
+++ b/lima-business/src/main/java/org/chorem/lima/business/ejb/report/ProvisionalEntryBookReportServiceImpl.java
@@ -27,7 +27,6 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaTechnicalException;
import org.chorem.lima.beans.DocumentReport;
-import org.chorem.lima.beans.DocumentReportImpl;
import org.chorem.lima.beans.EntryBookImpl;
import org.chorem.lima.beans.FinancialPeriodImpl;
import org.chorem.lima.beans.Transaction;
@@ -42,7 +41,6 @@ import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.entity.FinancialPeriod;
-import org.chorem.lima.entity.Identity;
import javax.ejb.EJB;
import javax.ejb.Remote;
@@ -53,6 +51,8 @@ import java.text.DecimalFormat;
import java.util.Date;
import java.util.List;
+import static org.nuiton.i18n.I18n.t;
+
/**
* Created by davidcosse on 19/11/14.
*/
@@ -89,22 +89,17 @@ public class ProvisionalEntryBookReportServiceImpl implements ProvisionalEntryBo
@Override
public DocumentReport getEntryBookDocumentReport(Date beginDate, Date endDate, List<String> entryBookCodes, DecimalFormat bigDecimalFormat, JasperReport entryBooksJasperReport, JasperReport financialPeriodsJasperReport, JasperReport transactionsJasperReport) {
- DocumentReport documentReport = new DocumentReportImpl();
+ DocumentReport documentReport = AccountReportServiceImpl.getDocumentReport(beginDate, endDate, entryBooksJasperReport, bigDecimalFormat, identityService);
+
+ documentReport.setColumnEntryBookTitle(t("lima.config.documentReport.columnEntryBookTitle"));
+ documentReport.setColumnDescriptionTitle(t("lima.config.documentReport.columnDescriptionTitle"));
+ documentReport.setColumnTotalForPeriodTitle(t("lima.config.documentReport.columnTotalForPeriodTitle"));
+ documentReport.setColumnDebitTitle(t("lima.config.documentReport.columnDebitTitle"));
+ documentReport.setColumnCreditTitle(t("lima.config.documentReport.columnCreditTitle"));
+
try {
if (beginDate != null && endDate != null) {
- Identity identity = identityService.getIdentity();
- String companyName = identity == null ? "" : identity.getName();
- documentReport.setCompanyName(companyName);
-
- // general infos about balance report
- documentReport.setTitle(TITLE);
- documentReport.setCurrency(bigDecimalFormat.getDecimalFormatSymbols().getCurrencySymbol());
- documentReport.setFromDate(beginDate);
- documentReport.setToDate(endDate);
- documentReport.setFormatter(bigDecimalFormat);
-
- documentReport.setSubReport(entryBooksJasperReport);
BigDecimal documentReportDebit = BigDecimal.ZERO;
BigDecimal documentReportCredit = BigDecimal.ZERO;
diff --git a/lima-business/src/main/resources/i18n/lima-business_en_GB.properties b/lima-business/src/main/resources/i18n/lima-business_en_GB.properties
index 36aa5b4..f6f147a 100644
--- a/lima-business/src/main/resources/i18n/lima-business_en_GB.properties
+++ b/lima-business/src/main/resources/i18n/lima-business_en_GB.properties
@@ -56,9 +56,26 @@ lima.config.currency.label=
lima.config.data.dir.description=Data directory of Lima
lima.config.decimalSeparator.label=
lima.config.documentReport.account.documentReportModelPath.description=
+lima.config.documentReport.account.noAccount=Any account present
+lima.config.documentReport.account.noAccountTitle=Any account present
+lima.config.documentReport.assets=Assets
+lima.config.documentReport.balance=Balance
lima.config.documentReport.balance.balanceAccountReportModelPath.description=
lima.config.documentReport.balance.balanceSubAccountReportModelPath.description=
lima.config.documentReport.balance.documentReportModelPath.description=
+lima.config.documentReport.balanceSheet=Balance
+lima.config.documentReport.columnAccountTitle=Account
+lima.config.documentReport.columnBalanceForPeriodTitle=Balance
+lima.config.documentReport.columnBalanceTitle=Balance
+lima.config.documentReport.columnCreditTitle=Credit
+lima.config.documentReport.columnDateTitle=Date
+lima.config.documentReport.columnDebitTitle=Debit
+lima.config.documentReport.columnDescriptionTitle=Label
+lima.config.documentReport.columnEntryBookTitle=Entry book
+lima.config.documentReport.columnLetterTitle=Letter
+lima.config.documentReport.columnTotalForPeriodTitle=Total for period
+lima.config.documentReport.columnVoucherTitle=Voucher
+lima.config.documentReport.currentAsset=Current asset
lima.config.documentReport.entrybook.documentReportModelPath.description=
lima.config.documentReport.entrybook.entryBookModelPath.description=
lima.config.documentReport.entrybook.financialPeriodModelPath.description=
@@ -69,6 +86,17 @@ lima.config.documentReport.generalEntrybook.generalEntryBookModelPath.descriptio
lima.config.documentReport.generalLedger.documentReportModelPath.description=
lima.config.documentReport.generalLedger.generalLedgerEntryModelPath.description=
lima.config.documentReport.generalLedger.generalLedgerModelPath.description=
+lima.config.documentReport.headerCurrencyLabel=Currency\:
+lima.config.documentReport.headerSelectedAccounts=%s to %s
+lima.config.documentReport.headerSelectedAccountsLabel=Accounts\:
+lima.config.documentReport.investments=Investments
+lima.config.documentReport.liabilities=Liabilities
+lima.config.documentReport.setColumnDateTitle=
+lima.config.documentReport.setColumnEntryBookTitle=
+lima.config.documentReport.subTotalFor=Sub total for\:
+lima.config.documentReport.titleCurrentDate=Printed on %s at %s
+lima.config.documentReport.titleFromToDate=From %s to %s
+lima.config.documentReport.totalFor=total for\:
lima.config.host.address.description=
lima.config.httpport.description=HTTP Port
lima.config.reports.dir.description=
@@ -88,9 +116,7 @@ lima.host.http.address.description=
lima.host.http.port.description=
lima.importexport.import.alreadyExistFinancialStatement=Same financial statement exists
lima.lettering.accountRegularization=Regulatory account
-lima.reports.account.noAccount=Any account present
-lima.reports.account.noAccountTitle=Any account present
-lima.reports.accounts=Accounts
+lima.report.fromDateToDate=
lima.table.credit=Credit
lima.table.date=Date
lima.table.debit=Debit
diff --git a/lima-business/src/main/resources/i18n/lima-business_fr_FR.properties b/lima-business/src/main/resources/i18n/lima-business_fr_FR.properties
index 10c9d44..d8d52a9 100644
--- a/lima-business/src/main/resources/i18n/lima-business_fr_FR.properties
+++ b/lima-business/src/main/resources/i18n/lima-business_fr_FR.properties
@@ -56,10 +56,26 @@ lima.config.data.dir.description=Répertoire des données de Lima
lima.config.decimalSeparator.label=
lima.config.documentReport.account.accountModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'account'
lima.config.documentReport.account.documentReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'DocumentReport'
+lima.config.documentReport.assets=avoirs
+lima.config.documentReport.balance=Solde
lima.config.documentReport.balance.balanceAccountReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'BalanceAccount'
lima.config.documentReport.balance.balanceSubAccountReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'BalanceAccount' des comptes enfants
lima.config.documentReport.balance.documentReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'DocumentReport
+lima.config.documentReport.balanceSheet=Balance
lima.config.documentReport.bigDecimalFormat=formattage des montants
+lima.config.documentReport.columnAccountTitle=Compte
+lima.config.documentReport.columnBalanceForPeriodTitle=Solde période
+lima.config.documentReport.columnBalanceTitle=Solde
+lima.config.documentReport.columnCreditTitle=Crédit
+lima.config.documentReport.columnDateTitle=Date
+lima.config.documentReport.columnDebitTitle=Débit
+lima.config.documentReport.columnDescriptionTitle=Intitulé
+lima.config.documentReport.columnEntryBookTitle=Journal
+lima.config.documentReport.columnLetterTitle=Lettre
+lima.config.documentReport.columnTotalForPeriodTitle=Total période
+lima.config.documentReport.columnVoucherTitle=Pièce comptable
+lima.config.documentReport.currentAsset=Actif à court terme
+lima.config.documentReport.dir.description=Dossier des rapports
lima.config.documentReport.entrybook.documentReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'EntryBook'
lima.config.documentReport.entrybook.entryBookModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'EntryBook'
lima.config.documentReport.entrybook.financialPeriodModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'FinancialPeriod'
@@ -72,9 +88,19 @@ lima.config.documentReport.generalEntrybook.generalEntryBookModelPath.descriptio
lima.config.documentReport.generalLedger.documentReportModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'DocumentReport'
lima.config.documentReport.generalLedger.generalLedgerEntryModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'generalLedgerEntry'
lima.config.documentReport.generalLedger.generalLedgerModelPath.description=fichier source (.jrxml) généré par Jasper Report gérant les beans 'generalLedger'
+lima.config.documentReport.headerCurrencyLabel=Devise\:
+lima.config.documentReport.headerSelectedAccounts=%s à %s
+lima.config.documentReport.headerSelectedAccountsLabel=Comptes\:
+lima.config.documentReport.investments=investissements
+lima.config.documentReport.liabilities=passif
+lima.config.documentReport.setColumnDateTitle=
+lima.config.documentReport.setColumnEntryBookTitle=
+lima.config.documentReport.subTotalFor=Sous total pour\:
+lima.config.documentReport.titleCurrentDate=Édition du %s à %s
+lima.config.documentReport.titleFromToDate=Du %s au %s
+lima.config.documentReport.totalFor=total pour\:
lima.config.host.address.description=Adresse du serveur LIMA
lima.config.host.http.port.description=Port HTTP
-lima.config.reports.dir.description=Dossier des rapports
lima.config.reportvatpdfurl.description=Chemin du raport
lima.config.rulesnationality.description=Règles nationales
lima.config.scale.description=Précision
@@ -90,8 +116,8 @@ lima.host.http.address.description=
lima.host.http.port.description=Port du serveur web de Lima
lima.importexport.import.alreadyExistFinancialStatement=Transaction financière exitante
lima.lettering.accountRegularization=Compte de régulation
+lima.report.fromDateToDate=
lima.reports.account.noAccount=Aucun compte présent
-lima.reports.accounts=Comptes
lima.table.credit=Credit
lima.table.date=Date
lima.table.debit=Débit
diff --git a/lima-callao/src/main/xmi/lima-callao-model.zargo b/lima-callao/src/main/xmi/lima-callao-model.zargo
index 659fb03..5e7eea2 100644
Binary files a/lima-callao/src/main/xmi/lima-callao-model.zargo and b/lima-callao/src/main/xmi/lima-callao-model.zargo differ
diff --git a/lima-report/src/main/resources/jasperreports/account/DocumentReport.jrxml b/lima-report/src/main/resources/jasperreports/account/DocumentReport.jrxml
index f753198..71d897f 100644
--- a/lima-report/src/main/resources/jasperreports/account/DocumentReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/account/DocumentReport.jrxml
@@ -4,24 +4,42 @@
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceReport" pageWidth="595" pageHeight="842" whenNoDataType="BlankPage" columnWidth="575" leftMargin="10" rightMargin="10" topMargin="10" bottomMargin="10" isSummaryNewPage="true" isSummaryWithPageHeaderAndFooter="true" isFloa [...]
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
- <style name="Default" isDefault="true" fontName="DejaVu Sans" fontSize="8"/>
- <style name="Bold" fontName="DejaVu Sans" fontSize="8"/>
- <style name="Oblique" fontName="DejaVu Sans Mono" fontSize="8"/>
- <style name="Column header" forecolor="#D0B48E" backcolor="#F2EBDF" fontName="DejaVu Sans" fontSize="12" isBold="true"/>
- <queryString>
+ <style name="Default" isDefault="true" scaleImage="Clip" fontName="DejaVu Sans" fontSize="8"/>
+ <style name="TableHeader" mode="Opaque" forecolor="#D0B48E" backcolor="#FDCA97" fontName="DejaVu Sans"/>
+ <style name="HeaderColumn" forecolor="#804000" fontName="DejaVu Sans" fontSize="8" isBold="true">
+ <box>
+ <topPen lineWidth="0.6" lineColor="#804000"/>
+ <leftPen lineWidth="0.6" lineColor="#804000"/>
+ <bottomPen lineWidth="0.6" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineColor="#804000"/>
+ </box>
+ </style>
+ <style name="Oblique" fontName="DejaVu Sans Mono" fontSize="8" isItalic="true"/>
+ <queryString>
<![CDATA[]]>
</queryString>
- <field name="accounts" class="java.util.List"/>
- <field name="companyName" class="java.lang.String"/>
- <field name="currency" class="java.lang.String"/>
- <field name="formatter" class="java.text.DecimalFormat"/>
- <field name="fromAccount" class="java.lang.String"/>
- <field name="fromDate" class="java.util.Date"/>
- <field name="soldeCredit" class="java.math.BigDecimal"/>
- <field name="soldeDebit" class="java.math.BigDecimal"/>
- <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
- <field name="title" class="java.lang.String"/>
- <field name="toDate" class="java.util.Date"/>
+ <field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
+ <field name="accounts" class="java.util.List"/>
+
+ <field name="titleCompanyName" class="java.lang.String"/>
+ <field name="titleCurrentDate" class="java.lang.String"/>
+ <field name="titleFromToDate" class="java.lang.String"/>
+ <field name="titleReport" class="java.lang.String"/>
+
+ <field name="headerCurrency" class="java.lang.String"/>
+ <field name="headerCurrencyLabel" class="java.lang.String"/>
+ <field name="headerSelectedAccounts" class="java.lang.String"/>
+ <field name="headerSelectedAccountsLabel" class="java.lang.String"/>
+
+ <field name="columnAccountTitle" class="java.lang.String"/>
+ <field name="columnCreditTitle" class="java.lang.String"/>
+ <field name="columnDateTitle" class="java.lang.String"/>
+ <field name="columnDebitTitle" class="java.lang.String"/>
+ <field name="columnDescriptionTitle" class="java.lang.String"/>
+ <field name="columnEntryBookTitle" class="java.lang.String"/>
+ <field name="columnLetterTitle" class="java.lang.String"/>
+ <field name="columnVoucherTitle" class="java.lang.String"/>
+
<variable name="accounts" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource">
<variableExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource((java.util.List)$F{accounts})]]></variableExpression>
</variable>
@@ -29,241 +47,129 @@
<background>
<band splitType="Stretch"/>
</background>
- <title>
- <band height="41" splitType="Stretch">
- <frame>
- <reportElement style="Default" mode="Opaque" x="0" y="1" width="578" height="40" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="1aba49d4-0acc-4925-8731-13c1cc1a90f4"/>
- <box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- </box>
- <textField isBlankWhenNull="true">
- <reportElement style="Default" x="0" y="0" width="578" height="20" forecolor="#736343" uuid="9ee9d5f1-6e74-4526-83a4-3b386f2733a8"/>
- <textElement textAlignment="Center" verticalAlignment="Middle">
- <font size="14" isBold="true"/>
- </textElement>
- <textFieldExpression><![CDATA[$F{title}]]></textFieldExpression>
- </textField>
- <textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="true">
- <reportElement style="Default" x="444" y="0" width="134" height="20" forecolor="#736343" uuid="a60d5d40-69ac-4c50-a33a-67c26cce05f3"/>
- <textElement textAlignment="Right" verticalAlignment="Middle">
- <font size="8" isBold="false"/>
- <paragraph rightIndent="5"/>
- </textElement>
- <textFieldExpression><![CDATA["Edition du: " + new SimpleDateFormat("dd/MM/yyyy à HH:mm").format(new java.util.Date())]]></textFieldExpression>
- </textField>
- <textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
- <reportElement style="Default" x="210" y="20" width="80" height="20" forecolor="#736343" uuid="37d0a47c-0197-4f09-8358-823b39a2a42a">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <textElement textAlignment="Right" verticalAlignment="Middle">
- <font isBold="true"/>
- </textElement>
- <textFieldExpression><![CDATA["Du " + new SimpleDateFormat("dd/MM/yyyy").format($F{fromDate})]]></textFieldExpression>
- </textField>
- <textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
- <reportElement style="Default" x="290" y="20" width="80" height="20" forecolor="#736343" uuid="5fc4df4a-5930-4ccd-b450-cf7aac6be57b">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <textElement verticalAlignment="Middle">
- <font isBold="true"/>
- </textElement>
- <textFieldExpression><![CDATA[" au " + new SimpleDateFormat("dd/MM/yyyy").format($F{toDate})]]></textFieldExpression>
- </textField>
- <textField isBlankWhenNull="true">
- <reportElement style="Default" x="0" y="0" width="190" height="20" forecolor="#736343" uuid="5aa3ceb9-e407-42da-bdc3-097875bdd5f5">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <textElement verticalAlignment="Middle" rotation="None">
- <font size="10" isBold="true"/>
- <paragraph leftIndent="5"/>
- </textElement>
- <textFieldExpression><![CDATA[$F{companyName}]]></textFieldExpression>
- </textField>
- </frame>
- </band>
- </title>
- <pageHeader>
- <band height="25" splitType="Stretch">
- <textField isBlankWhenNull="true">
- <reportElement style="Oblique" x="444" y="9" width="134" height="16" forecolor="#000000" uuid="abcb18cb-7d0e-4eb8-a9f5-aca4baffa9ae">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <textElement textAlignment="Right" verticalAlignment="Middle">
- <font size="8"/>
- </textElement>
- <textFieldExpression><![CDATA["Devise: " + $F{currency}]]></textFieldExpression>
- </textField>
- <textField isBlankWhenNull="true">
- <reportElement style="Oblique" x="0" y="9" width="444" height="16" uuid="5b52edd4-5983-4e67-8b3f-9e89cfe43818">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <textElement textAlignment="Left" verticalAlignment="Middle">
- <font size="8" isItalic="true"/>
- </textElement>
- <textFieldExpression><![CDATA["Comptes: " + $F{fromAccount}]]></textFieldExpression>
- </textField>
- </band>
- </pageHeader>
+ <title>
+ <band height="41" splitType="Stretch">
+ <frame>
+ <reportElement style="Default" mode="Opaque" x="0" y="1" width="578" height="40" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="1aba49d4-0acc-4925-8731-13c1cc1a90f4"/>
+ <box>
+ <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ </box>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="0" y="0" width="578" height="20" forecolor="#736343" uuid="9ee9d5f1-6e74-4526-83a4-3b386f2733a8"/>
+ <textElement textAlignment="Center" verticalAlignment="Middle">
+ <font size="14" isBold="true"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{titleReport}]]></textFieldExpression>
+ </textField>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="444" y="0" width="134" height="20" forecolor="#736343" uuid="a60d5d40-69ac-4c50-a33a-67c26cce05f3"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle">
+ <font size="8" isBold="false"/>
+ <paragraph rightIndent="5"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{titleCurrentDate}]]></textFieldExpression>
+ </textField>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="210" y="20" width="160" height="20" forecolor="#736343" uuid="37d0a47c-0197-4f09-8358-823b39a2a42a"/>
+ <textElement textAlignment="Center" verticalAlignment="Middle">
+ <font isBold="true"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{titleFromToDate}]]></textFieldExpression>
+ </textField>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="0" y="0" width="190" height="20" forecolor="#736343" uuid="5aa3ceb9-e407-42da-bdc3-097875bdd5f5"/>
+ <textElement verticalAlignment="Middle" rotation="None">
+ <font size="10" isBold="true"/>
+ <paragraph leftIndent="5"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{titleCompanyName}]]></textFieldExpression>
+ </textField>
+ </frame>
+ </band>
+ </title>
+ <pageHeader>
+ <band height="16" splitType="Stretch">
+ <textField isBlankWhenNull="true">
+ <reportElement style="Oblique" x="0" y="0" width="444" height="16" uuid="9db3917c-44e3-46d2-b95a-6463e5eff328"/>
+ <textElement textAlignment="Left" verticalAlignment="Middle">
+ <font size="8" isItalic="true"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{headerSelectedAccountsLabel} + $F{headerSelectedAccounts}]]></textFieldExpression>
+ </textField>
+ <textField isBlankWhenNull="true">
+ <reportElement style="Oblique" x="444" y="0" width="134" height="16" forecolor="#000000" uuid="abcb18cb-7d0e-4eb8-a9f5-aca4baffa9ae"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle">
+ <font size="8"/>
+ </textElement>
+ <textFieldExpression><![CDATA[$F{headerCurrencyLabel} + $F{headerCurrency}]]></textFieldExpression>
+ </textField>
+ </band>
+ </pageHeader>
<columnHeader>
<band height="20">
<frame>
- <reportElement style="Column header" mode="Opaque" x="0" y="0" width="578" height="20" backcolor="#FDCA97" uuid="6c2c2b44-eebf-41d3-8b56-47d4a20a4b24">
+ <reportElement style="TableHeader" x="0" y="0" width="578" height="20" uuid="6c2c2b44-eebf-41d3-8b56-47d4a20a4b24">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
</reportElement>
- <box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- </box>
- <staticText>
- <reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="84" height="20" forecolor="#804000" backcolor="#FFFFFF" uuid="63da28a1-a793-4bf5-81d4-6a4d6fc1e4df">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textField>
+ <reportElement style="HeaderColumn" x="0" y="0" width="84" height="20" uuid="63da28a1-a793-4bf5-81d4-6a4d6fc1e4df"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[N° Compte]]></text>
- </staticText>
- <staticText>
- <reportElement x="84" y="0" width="62" height="20" forecolor="#804000" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6"/>
- <leftPen lineWidth="0.6"/>
- <bottomPen lineWidth="0.6"/>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnAccountTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="84" y="0" width="62" height="20" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Date]]></text>
- </staticText>
- <staticText>
- <reportElement x="146" y="0" width="36" height="20" forecolor="#804000" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6"/>
- <leftPen lineWidth="0.6"/>
- <bottomPen lineWidth="0.6"/>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnDateTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="146" y="0" width="36" height="20" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Journal]]></text>
- </staticText>
- <staticText>
- <reportElement x="182" y="0" width="108" height="20" forecolor="#804000" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6"/>
- <leftPen lineWidth="0.6"/>
- <bottomPen lineWidth="0.6"/>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnEntryBookTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="182" y="0" width="108" height="20" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Pièce comptable]]></text>
- </staticText>
- <staticText>
- <reportElement x="290" y="0" width="108" height="20" forecolor="#804000" uuid="1bc6ab8b-d490-46a2-9a10-8f4c4f219889">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnVoucherTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="290" y="0" width="108" height="20" uuid="1bc6ab8b-d490-46a2-9a10-8f4c4f219889"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Description]]></text>
- </staticText>
- <staticText>
- <reportElement x="398" y="0" width="36" height="20" forecolor="#804000" uuid="f0c1ae81-733f-42ba-844d-082b51c95040">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6"/>
- <leftPen lineWidth="0.6"/>
- <bottomPen lineWidth="0.6"/>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnDescriptionTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="398" y="0" width="36" height="20" uuid="f0c1ae81-733f-42ba-844d-082b51c95040"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Lettre]]></text>
- </staticText>
- <staticText>
- <reportElement x="434" y="0" width="72" height="20" forecolor="#804000" uuid="b6ea8597-d637-47d1-9a39-7c99101594e9">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineColor="#804000"/>
- <bottomPen lineWidth="0.6" lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineColor="#804000"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnLetterTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="434" y="0" width="72" height="20" uuid="b6ea8597-d637-47d1-9a39-7c99101594e9"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Débit]]></text>
- </staticText>
- <staticText>
- <reportElement x="506" y="0" width="72" height="20" forecolor="#804000" uuid="c4f9f592-7052-4b66-abc2-f04cc5f3972c">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineColor="#804000"/>
- <leftPen lineColor="#804000"/>
- <bottomPen lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineColor="#804000"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnDebitTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="506" y="0" width="72" height="20" uuid="c4f9f592-7052-4b66-abc2-f04cc5f3972c"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Crédit]]></text>
- </staticText>
+ <textFieldExpression><![CDATA[$F{columnCreditTitle}]]></textFieldExpression>
+ </textField>
</frame>
</band>
</columnHeader>
diff --git a/lima-report/src/main/resources/jasperreports/balance/BalanceSubAccountsReport.jrxml b/lima-report/src/main/resources/jasperreports/balance/BalanceSubAccountsReport.jrxml
index 1e970a7..6214da6 100644
--- a/lima-report/src/main/resources/jasperreports/balance/BalanceSubAccountsReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/balance/BalanceSubAccountsReport.jrxml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
-<!-- 2015-03-11T12:07:20 -->
+<!-- Created with Jaspersoft Studio version 6.1.0.final using JasperReports Library version 6.1.0 -->
+<!-- 2015-07-02T18:03:10 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceClassesReport" pageWidth="578" pageHeight="20" columnWidth="578" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="75ff86c6-c370-4f0b-a2d3-e17324a465bb">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
@@ -18,6 +18,8 @@
<field name="soldeCredit" class="java.math.BigDecimal"/>
<field name="formatter" class="java.text.DecimalFormat"/>
<field name="mainAccountLabel" class="java.lang.String"/>
+ <field name="totalForLabel" class="java.lang.String"/>
+ <field name="subTotalForLabel" class="java.lang.String"/>
<variable name="amountDebitSolde" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{amountDebit}]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
@@ -158,7 +160,7 @@
<font size="8" isBold="true"/>
<paragraph leftIndent="80"/>
</textElement>
- <textFieldExpression><![CDATA["Sous total pour " + $F{mainAccountLabel}]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{subTotalForLabel} + $F{mainAccountLabel}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement key="" x="434" y="0" width="72" height="10" forecolor="#736343" uuid="9c59df76-21ef-428f-8266-0da4cade0a20">
@@ -285,7 +287,7 @@
<font size="8" isBold="true"/>
<paragraph leftIndent="80"/>
</textElement>
- <textFieldExpression><![CDATA["Total pour " + $F{mainAccountLabel}]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{totalForLabel} + $F{mainAccountLabel}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement key="" x="434" y="0" width="72" height="10" forecolor="#736343" uuid="6edd1323-c09c-45f8-ac94-be4753616581">
diff --git a/lima-report/src/main/resources/jasperreports/balance/DocumentReport.jrxml b/lima-report/src/main/resources/jasperreports/balance/DocumentReport.jrxml
index 4cef030..16754a9 100644
--- a/lima-report/src/main/resources/jasperreports/balance/DocumentReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/balance/DocumentReport.jrxml
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.1.0.final using JasperReports Library version 6.1.0 -->
-<!-- 2015-07-02T15:06:04 -->
+<!-- 2015-07-02T17:50:13 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceReport" pageWidth="595" pageHeight="842" whenNoDataType="BlankPage" columnWidth="575" leftMargin="10" rightMargin="10" topMargin="10" bottomMargin="10" isSummaryNewPage="true" isSummaryWithPageHeaderAndFooter="true" isFloa [...]
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<style name="Default" isDefault="true" scaleImage="Clip" fontName="DejaVu Sans" fontSize="8"/>
<style name="TableHeader" mode="Opaque" forecolor="#D0B48E" backcolor="#FDCA97" fontName="DejaVu Sans"/>
- <style name="HeaderColomn" forecolor="#804000" fontName="DejaVu Sans" fontSize="8" isBold="true">
+ <style name="HeaderColumn" forecolor="#804000" fontName="DejaVu Sans" fontSize="8" isBold="true">
<box>
<topPen lineWidth="0.6" lineColor="#804000"/>
<leftPen lineWidth="0.6" lineColor="#804000"/>
@@ -18,15 +18,25 @@
<queryString>
<![CDATA[]]>
</queryString>
- <field name="fromDate" class="java.util.Date"/>
- <field name="toDate" class="java.util.Date"/>
- <field name="currency" class="java.lang.String"/>
- <field name="fromAccount" class="java.lang.String"/>
- <field name="toAccount" class="java.lang.String"/>
- <field name="mainAccounts" class="java.util.List"/>
<field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
- <field name="companyName" class="java.lang.String"/>
- <field name="title" class="java.lang.String"/>
+ <field name="mainAccounts" class="java.util.List"/>
+
+ <field name="titleCompanyName" class="java.lang.String"/>
+ <field name="titleCurrentDate" class="java.lang.String"/>
+ <field name="titleFromToDate" class="java.lang.String"/>
+ <field name="titleReport" class="java.lang.String"/>
+
+ <field name="headerCurrency" class="java.lang.String"/>
+ <field name="headerCurrencyLabel" class="java.lang.String"/>
+ <field name="headerSelectedAccounts" class="java.lang.String"/>
+ <field name="headerSelectedAccountsLabel" class="java.lang.String"/>
+
+ <field name="columnAccountTitle" class="java.lang.String"/>
+ <field name="columnBalanceForPeriodTitle" class="java.lang.String"/>
+ <field name="columnCreditTitle" class="java.lang.String"/>
+ <field name="columnDebitTitle" class="java.lang.String"/>
+ <field name="columnDescriptionTitle" class="java.lang.String"/>
+ <field name="columnTotalForPeriodTitle" class="java.lang.String"/>
<variable name="mainAccounts" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource">
<variableExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource((java.util.List)$F{mainAccounts})]]></variableExpression>
</variable>
@@ -49,46 +59,30 @@
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="14" isBold="true"/>
</textElement>
- <textFieldExpression><![CDATA[$F{title}]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{titleReport}]]></textFieldExpression>
</textField>
- <textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="true">
+ <textField isBlankWhenNull="true">
<reportElement style="Default" x="444" y="0" width="134" height="20" forecolor="#736343" uuid="a60d5d40-69ac-4c50-a33a-67c26cce05f3"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="8" isBold="false"/>
<paragraph rightIndent="5"/>
</textElement>
- <textFieldExpression><![CDATA["Edition du: " + new SimpleDateFormat("dd/MM/yyyy à HH:mm").format(new java.util.Date())]]></textFieldExpression>
- </textField>
- <textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
- <reportElement style="Default" x="210" y="20" width="80" height="20" forecolor="#736343" uuid="37d0a47c-0197-4f09-8358-823b39a2a42a">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <textElement textAlignment="Right" verticalAlignment="Middle">
- <font isBold="true"/>
- </textElement>
- <textFieldExpression><![CDATA["Du " + new SimpleDateFormat("dd/MM/yyyy").format($F{fromDate})]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{titleCurrentDate}]]></textFieldExpression>
</textField>
- <textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
- <reportElement style="Default" x="290" y="20" width="80" height="20" forecolor="#736343" uuid="5fc4df4a-5930-4ccd-b450-cf7aac6be57b">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <textElement verticalAlignment="Middle">
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="210" y="20" width="160" height="20" forecolor="#736343" uuid="37d0a47c-0197-4f09-8358-823b39a2a42a"/>
+ <textElement textAlignment="Center" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
- <textFieldExpression><![CDATA[" au " + new SimpleDateFormat("dd/MM/yyyy").format($F{toDate})]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{titleFromToDate}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement style="Default" x="0" y="0" width="190" height="20" forecolor="#736343" uuid="5aa3ceb9-e407-42da-bdc3-097875bdd5f5">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <reportElement style="Default" x="0" y="0" width="190" height="20" forecolor="#736343" uuid="5aa3ceb9-e407-42da-bdc3-097875bdd5f5"/>
<textElement verticalAlignment="Middle" rotation="None">
<font size="10" isBold="true"/>
<paragraph leftIndent="5"/>
</textElement>
- <textFieldExpression><![CDATA[$F{companyName}]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{titleCompanyName}]]></textFieldExpression>
</textField>
</frame>
</band>
@@ -96,25 +90,18 @@
<pageHeader>
<band height="16" splitType="Stretch">
<textField isBlankWhenNull="true">
- <reportElement style="Oblique" x="0" y="0" width="444" height="16" uuid="9db3917c-44e3-46d2-b95a-6463e5eff328">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
+ <reportElement style="Oblique" x="0" y="0" width="444" height="16" uuid="9db3917c-44e3-46d2-b95a-6463e5eff328"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="8" isItalic="true"/>
</textElement>
- <textFieldExpression><![CDATA["Comptes: " + $F{fromAccount}]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{headerSelectedAccountsLabel} + $F{headerSelectedAccounts}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement style="Oblique" x="444" y="0" width="134" height="16" forecolor="#000000" uuid="abcb18cb-7d0e-4eb8-a9f5-aca4baffa9ae">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <reportElement style="Oblique" x="444" y="0" width="134" height="16" forecolor="#000000" uuid="abcb18cb-7d0e-4eb8-a9f5-aca4baffa9ae"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="8"/>
</textElement>
- <textFieldExpression><![CDATA["Devise: " + $F{currency}]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{headerCurrencyLabel} + $F{headerCurrency}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
@@ -124,84 +111,62 @@
<reportElement style="TableHeader" x="0" y="0" width="578" height="20" uuid="6c2c2b44-eebf-41d3-8b56-47d4a20a4b24">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
</reportElement>
- <staticText>
- <reportElement style="HeaderColomn" x="0" y="0" width="40" height="20" uuid="63da28a1-a793-4bf5-81d4-6a4d6fc1e4df">
- <property name="local_mesure_unitwidth" value="pixel"/>
- </reportElement>
+ <textField>
+ <reportElement style="HeaderColumn" x="0" y="0" width="40" height="20" uuid="63da28a1-a793-4bf5-81d4-6a4d6fc1e4df"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Compte]]></text>
- </staticText>
- <staticText>
- <reportElement style="HeaderColomn" x="40" y="0" width="250" height="20" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb">
- <property name="local_mesure_unitheight" value="pixel"/>
- </reportElement>
+ <textFieldExpression><![CDATA[$F{columnAccountTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="40" y="0" width="250" height="20" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Intitulé]]></text>
- </staticText>
- <staticText>
- <reportElement style="HeaderColomn" x="290" y="0" width="144" height="10" uuid="caadc464-ad77-4b53-b5cb-11e29c0a18ce">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <textFieldExpression><![CDATA[$F{columnDescriptionTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="290" y="0" width="144" height="10" uuid="caadc464-ad77-4b53-b5cb-11e29c0a18ce"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Total Période]]></text>
- </staticText>
- <staticText>
- <reportElement style="HeaderColomn" x="290" y="10" width="72" height="10" uuid="e6928f86-fe5c-4c14-996c-19728e6abf44">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <textFieldExpression><![CDATA[$F{columnTotalForPeriodTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="290" y="10" width="72" height="10" uuid="e6928f86-fe5c-4c14-996c-19728e6abf44"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Débit]]></text>
- </staticText>
- <staticText>
- <reportElement style="HeaderColomn" x="362" y="10" width="72" height="10" uuid="13dd0f7b-3331-4ca4-8ef8-5468fb65fc3e">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <textFieldExpression><![CDATA[$F{columnDebitTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="362" y="10" width="72" height="10" uuid="13dd0f7b-3331-4ca4-8ef8-5468fb65fc3e"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Crédit]]></text>
- </staticText>
- <staticText>
- <reportElement style="HeaderColomn" x="434" y="0" width="144" height="10" uuid="1bc6ab8b-d490-46a2-9a10-8f4c4f219889">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <textFieldExpression><![CDATA[$F{columnCreditTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="434" y="0" width="144" height="10" uuid="1bc6ab8b-d490-46a2-9a10-8f4c4f219889"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Solde Période]]></text>
- </staticText>
- <staticText>
- <reportElement style="HeaderColomn" x="434" y="10" width="72" height="10" uuid="b6ea8597-d637-47d1-9a39-7c99101594e9">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <textFieldExpression><![CDATA[$F{columnBalanceForPeriodTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="434" y="10" width="72" height="10" uuid="b6ea8597-d637-47d1-9a39-7c99101594e9"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Débit]]></text>
- </staticText>
- <staticText>
- <reportElement style="HeaderColomn" x="506" y="10" width="72" height="10" uuid="c4f9f592-7052-4b66-abc2-f04cc5f3972c">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <textFieldExpression><![CDATA[$F{columnDebitTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="506" y="10" width="72" height="10" uuid="c4f9f592-7052-4b66-abc2-f04cc5f3972c"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Crédit]]></text>
- </staticText>
+ <textFieldExpression><![CDATA[$F{columnCreditTitle}]]></textFieldExpression>
+ </textField>
</frame>
</band>
</columnHeader>
diff --git a/lima-report/src/main/resources/jasperreports/entryBook/DocumentReport.jrxml b/lima-report/src/main/resources/jasperreports/entryBook/DocumentReport.jrxml
index 4b649cc..4e76999 100644
--- a/lima-report/src/main/resources/jasperreports/entryBook/DocumentReport.jrxml
+++ b/lima-report/src/main/resources/jasperreports/entryBook/DocumentReport.jrxml
@@ -1,26 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
-<!-- 2015-03-11T17:42:23 -->
+<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3 -->
+<!-- 2015-03-11T17:42:23 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BalanceReport" pageWidth="595" pageHeight="842" whenNoDataType="BlankPage" columnWidth="575" leftMargin="10" rightMargin="10" topMargin="10" bottomMargin="10" isSummaryNewPage="true" isSummaryWithPageHeaderAndFooter="true" isFloa [...]
<property name="com.jaspersoft.studio.unit." value="pixel"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
- <style name="Default" isDefault="true" fontName="DejaVu Sans" fontSize="8"/>
- <style name="Bold" fontName="DejaVu Sans" fontSize="8"/>
- <style name="Oblique" fontName="DejaVu Sans Mono" fontSize="8"/>
- <style name="Column header" forecolor="#D0B48E" backcolor="#F2EBDF" fontName="DejaVu Sans" fontSize="12" isBold="true"/>
+ <style name="Default" isDefault="true" scaleImage="Clip" fontName="DejaVu Sans" fontSize="8"/>
+ <style name="Oblique" fontName="DejaVu Sans Mono" fontSize="8" isItalic="true"/>
+ <style name="TableHeader" mode="Opaque" forecolor="#D0B48E" backcolor="#FDCA97" fontName="DejaVu Sans"/>
+ <style name="HeaderColumn" forecolor="#804000" fontName="DejaVu Sans" fontSize="8" isBold="true">
+ <box>
+ <topPen lineWidth="0.6" lineColor="#804000"/>
+ <leftPen lineWidth="0.6" lineColor="#804000"/>
+ <bottomPen lineWidth="0.6" lineColor="#804000"/>
+ <rightPen lineWidth="0.6" lineColor="#804000"/>
+ </box>
+ </style>
+ <style name="FooterHeader" mode="Opaque" forecolor="#D0B48E" backcolor="#FDCA97" fontName="DejaVu Sans"/>
+ <style name="FooterColumn" forecolor="#D0B48E" backcolor="#F2EBDF" fontName="DejaVu Sans" fontSize="8" isBold="true">
+ <box>
+ <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
+ </box>
+ </style>
<queryString>
<![CDATA[]]>
</queryString>
- <field name="fromDate" class="java.util.Date"/>
- <field name="toDate" class="java.util.Date"/>
- <field name="currency" class="java.lang.String"/>
- <field name="entryBooks" class="java.util.List"/>
+ <field name="formatter" class="java.text.DecimalFormat"/>
<field name="subReport" class="net.sf.jasperreports.engine.JasperReport"/>
- <field name="companyName" class="java.lang.String"/>
- <field name="title" class="java.lang.String"/>
+ <field name="entryBooks" class="java.util.List"/>
+
+ <field name="titleCompanyName" class="java.lang.String"/>
+ <field name="titleCurrentDate" class="java.lang.String"/>
+ <field name="titleFromToDate" class="java.lang.String"/>
+ <field name="titleReport" class="java.lang.String"/>
+
+ <field name="headerCurrency" class="java.lang.String"/>
+ <field name="headerCurrencyLabel" class="java.lang.String"/>
+ <field name="headerSelectedAccounts" class="java.lang.String"/>
+ <field name="headerSelectedAccountsLabel" class="java.lang.String"/>
+
+ <field name="columnAccountTitle" class="java.lang.String"/>
+ <field name="columnCreditTitle" class="java.lang.String"/>
+ <field name="columnDateTitle" class="java.lang.String"/>
+ <field name="columnDebitTitle" class="java.lang.String"/>
+ <field name="columnDescriptionTitle" class="java.lang.String"/>
+ <field name="columnTotalForPeriodTitle" class="java.lang.String"/>
+ <field name="columnVoucherTitle" class="java.lang.String"/>
+
<field name="soldeDebit" class="java.math.BigDecimal"/>
<field name="soldeCredit" class="java.math.BigDecimal"/>
- <field name="formatter" class="java.text.DecimalFormat"/>
+
<variable name="entryBooks" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource">
<variableExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource((java.util.List)$F{entryBooks})]]></variableExpression>
</variable>
@@ -43,196 +74,100 @@
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="14" isBold="true"/>
</textElement>
- <textFieldExpression><![CDATA[$F{title}]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{titleReport}]]></textFieldExpression>
</textField>
- <textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="true">
+ <textField isBlankWhenNull="true">
<reportElement style="Default" x="444" y="0" width="134" height="20" forecolor="#736343" uuid="a60d5d40-69ac-4c50-a33a-67c26cce05f3"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="8" isBold="false"/>
<paragraph rightIndent="5"/>
</textElement>
- <textFieldExpression><![CDATA["Edition du: " + new SimpleDateFormat("dd/MM/yyyy à HH:mm").format(new java.util.Date())]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{titleCurrentDate}]]></textFieldExpression>
</textField>
- <textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
- <reportElement style="Default" x="210" y="20" width="80" height="20" forecolor="#736343" uuid="37d0a47c-0197-4f09-8358-823b39a2a42a">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <textElement textAlignment="Right" verticalAlignment="Middle">
- <font isBold="true"/>
- </textElement>
- <textFieldExpression><![CDATA["Du " + new SimpleDateFormat("dd/MM/yyyy").format($F{fromDate})]]></textFieldExpression>
- </textField>
- <textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
- <reportElement style="Default" x="290" y="20" width="80" height="20" forecolor="#736343" uuid="5fc4df4a-5930-4ccd-b450-cf7aac6be57b">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <textElement verticalAlignment="Middle">
+ <textField isBlankWhenNull="true">
+ <reportElement style="Default" x="210" y="20" width="160" height="20" forecolor="#736343" uuid="37d0a47c-0197-4f09-8358-823b39a2a42a"/>
+ <textElement textAlignment="Center" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
- <textFieldExpression><![CDATA[" au " + new SimpleDateFormat("dd/MM/yyyy").format($F{toDate})]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{titleFromToDate}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement style="Default" x="0" y="0" width="190" height="20" forecolor="#736343" uuid="5aa3ceb9-e407-42da-bdc3-097875bdd5f5">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <reportElement style="Default" x="0" y="0" width="190" height="20" forecolor="#736343" uuid="5aa3ceb9-e407-42da-bdc3-097875bdd5f5"/>
<textElement verticalAlignment="Middle" rotation="None">
<font size="10" isBold="true"/>
<paragraph leftIndent="5"/>
</textElement>
- <textFieldExpression><![CDATA[$F{companyName}]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{titleCompanyName}]]></textFieldExpression>
</textField>
</frame>
</band>
</title>
<pageHeader>
- <band height="25" splitType="Stretch">
+ <band height="16" splitType="Stretch">
<textField isBlankWhenNull="true">
- <reportElement style="Oblique" x="444" y="9" width="134" height="16" forecolor="#000000" uuid="abcb18cb-7d0e-4eb8-a9f5-aca4baffa9ae">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
+ <reportElement style="Oblique" x="444" y="0" width="134" height="16" forecolor="#000000" uuid="abcb18cb-7d0e-4eb8-a9f5-aca4baffa9ae"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="8"/>
</textElement>
- <textFieldExpression><![CDATA["Devise: " + $F{currency}]]></textFieldExpression>
+ <textFieldExpression><![CDATA[$F{headerCurrencyLabel} + $F{headerCurrency}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="20">
<frame>
- <reportElement style="Column header" mode="Opaque" x="0" y="0" width="578" height="20" backcolor="#FDCA97" uuid="6c2c2b44-eebf-41d3-8b56-47d4a20a4b24">
+ <reportElement style="TableHeader" x="0" y="0" width="578" height="20" uuid="6c2c2b44-eebf-41d3-8b56-47d4a20a4b24">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.HorizontalRowLayout"/>
</reportElement>
- <box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- </box>
- <staticText>
- <reportElement stretchType="RelativeToBandHeight" x="0" y="0" width="60" height="20" forecolor="#804000" backcolor="#FFFFFF" uuid="63da28a1-a793-4bf5-81d4-6a4d6fc1e4df">
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textField>
+ <reportElement style="HeaderColumn" x="0" y="0" width="60" height="20" uuid="63da28a1-a793-4bf5-81d4-6a4d6fc1e4df"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Date]]></text>
- </staticText>
- <staticText>
- <reportElement x="60" y="0" width="100" height="20" forecolor="#804000" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6"/>
- <leftPen lineWidth="0.6"/>
- <bottomPen lineWidth="0.6"/>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnDateTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="60" y="0" width="100" height="20" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[N° Compte]]></text>
- </staticText>
- <staticText>
- <reportElement x="160" y="0" width="40" height="20" forecolor="#804000" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6"/>
- <leftPen lineWidth="0.6"/>
- <bottomPen lineWidth="0.6"/>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnAccountTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="160" y="0" width="40" height="20" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Pièce]]></text>
- </staticText>
- <staticText>
- <reportElement x="200" y="0" width="234" height="20" forecolor="#804000" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6"/>
- <leftPen lineWidth="0.6"/>
- <bottomPen lineWidth="0.6"/>
- <rightPen lineWidth="0.6"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnVoucherTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="200" y="0" width="234" height="20" uuid="da44668c-4f62-4f75-abaf-cb941b73bfcb"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Intitulé]]></text>
- </staticText>
- <staticText>
- <reportElement x="434" y="0" width="144" height="10" forecolor="#804000" uuid="1bc6ab8b-d490-46a2-9a10-8f4c4f219889">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#804000"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnDescriptionTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="434" y="0" width="144" height="10" uuid="1bc6ab8b-d490-46a2-9a10-8f4c4f219889"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Total Période]]></text>
- </staticText>
- <staticText>
- <reportElement x="434" y="10" width="72" height="10" forecolor="#804000" uuid="b6ea8597-d637-47d1-9a39-7c99101594e9">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6" lineColor="#804000"/>
- <leftPen lineWidth="0.6" lineColor="#804000"/>
- <bottomPen lineWidth="0.6" lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineColor="#804000"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnTotalForPeriodTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="434" y="10" width="72" height="10" uuid="b6ea8597-d637-47d1-9a39-7c99101594e9"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Débit]]></text>
- </staticText>
- <staticText>
- <reportElement x="506" y="10" width="72" height="10" forecolor="#804000" uuid="c4f9f592-7052-4b66-abc2-f04cc5f3972c">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineColor="#804000"/>
- <leftPen lineColor="#804000"/>
- <bottomPen lineColor="#804000"/>
- <rightPen lineWidth="0.6" lineColor="#804000"/>
- </box>
+ <textFieldExpression><![CDATA[$F{columnDebitTitle}]]></textFieldExpression>
+ </textField>
+ <textField>
+ <reportElement style="HeaderColumn" x="506" y="10" width="72" height="10" uuid="c4f9f592-7052-4b66-abc2-f04cc5f3972c"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
- <text><![CDATA[Crédit]]></text>
- </staticText>
+ <textFieldExpression><![CDATA[$F{columnCreditTitle}]]></textFieldExpression>
+ </textField>
</frame>
</band>
</columnHeader>
@@ -271,34 +206,9 @@
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<frame>
- <reportElement style="Default" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="578" height="20" isRemoveLineWhenBlank="true" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="ffa6f4ff-14e5-4501-acbe-0c4e832d9c2a">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <leftPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <bottomPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- <rightPen lineWidth="0.6" lineStyle="Solid" lineColor="#FDCA97"/>
- </box>
+ <reportElement style="FooterHeader" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="0" width="578" height="20" isRemoveLineWhenBlank="true" forecolor="#D0B48E" backcolor="#F2EBDF" uuid="ffa6f4ff-14e5-4501-acbe-0c4e832d9c2a"/>
<textField isBlankWhenNull="true">
- <reportElement x="0" y="0" width="434" height="20" forecolor="#736343" uuid="f818f119-5580-46fd-acbd-086f7d222dde">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="local_mesure_unitx" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.x" value="px"/>
- <property name="local_mesure_unitwidth" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.width" value="px"/>
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
+ <reportElement style="FooterColumn" x="0" y="0" width="434" height="20" forecolor="#736343" uuid="f818f119-5580-46fd-acbd-086f7d222dde"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="12" isBold="true" isItalic="true"/>
<paragraph lineSpacingSize="0.0" leftIndent="40"/>
@@ -306,16 +216,7 @@
<textFieldExpression><![CDATA["Total pour les journaux sélectionnés"]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement style="Default" x="434" y="0" width="72" height="20" forecolor="#736343" uuid="8382935a-23c9-48a0-88f3-aa486cccd575">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
+ <reportElement style="FooterColumn" x="434" y="0" width="72" height="20" forecolor="#736343" uuid="8382935a-23c9-48a0-88f3-aa486cccd575"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
@@ -323,16 +224,7 @@
<textFieldExpression><![CDATA[new Boolean($F{soldeDebit}.compareTo(BigDecimal.ZERO) != 0) ? $F{formatter}.format($F{soldeDebit}) : ""]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
- <reportElement style="Default" x="506" y="0" width="72" height="20" forecolor="#736343" uuid="c7fa4a13-051c-40c0-b663-58b0401402b4">
- <property name="local_mesure_unitheight" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.height" value="px"/>
- </reportElement>
- <box>
- <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
- </box>
+ <reportElement style="FooterColumn" x="506" y="0" width="72" height="20" forecolor="#736343" uuid="c7fa4a13-051c-40c0-b663-58b0401402b4"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans Mono" size="8" isBold="true"/>
<paragraph lineSpacingSize="0.0" rightIndent="2"/>
@@ -341,20 +233,14 @@
</textField>
</frame>
<textField isBlankWhenNull="false">
- <reportElement x="0" y="20" width="288" height="10" uuid="fd62df4f-6500-4fea-93be-fe749f161de6">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
+ <reportElement x="0" y="20" width="288" height="10" uuid="fd62df4f-6500-4fea-93be-fe749f161de6"/>
<textElement textAlignment="Right">
<paragraph lineSpacingSize="0.0"/>
</textElement>
<textFieldExpression><![CDATA["Page " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report">
- <reportElement x="288" y="20" width="287" height="10" uuid="e5018134-bbde-4b3e-a83d-7abf00c56c09">
- <property name="local_mesure_unity" value="pixel"/>
- <property name="com.jaspersoft.studio.unit.y" value="px"/>
- </reportElement>
+ <reportElement x="288" y="20" width="287" height="10" uuid="e5018134-bbde-4b3e-a83d-7abf00c56c09"/>
<textElement textAlignment="Left">
<paragraph lineSpacingSize="0.0"/>
</textElement>
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 a6a4484..4c6de4d 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
@@ -488,7 +488,22 @@ lima.quit=Exit
lima.refresh=Refresh
lima.refresh.shortcut=Refresh (F5)
lima.remove=Remove
-lima.remove.shortcut=Delete (Del)
+lima.remove.shortcut=
+lima.report.accounts=Accounts\:
+lima.report.assets=Assets
+lima.report.balance=Balance
+lima.report.balanceForPeriod=Balance
+lima.report.balanceSheet=Balance
+lima.report.credit=Credit
+lima.report.currency=Currency\:
+lima.report.currentAsset=Current asset
+lima.report.dedit=Debit
+lima.report.fromDateToDate=From %s to %s
+lima.report.generatingDate=Printed on %s
+lima.report.investments=Investments
+lima.report.label=Label
+lima.report.liabilities=Liabilities
+lima.report.totalForPeriod=Period total
lima.retainedEarnings.wait=
lima.search=Search
lima.structure=Structure
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 d10862e..6440893 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
@@ -494,10 +494,24 @@ lima.preferences=Préférences
lima.quit=Quitter
lima.refresh=Actualiser
lima.refresh.shortcut=Actualiser (F5)
-lima.remove=Supprimer
-lima.remove.shortcut=Supprimer (Suppr)
-lima.retainedEarnings.wait=Report à nouveaux...
-lima.search=Rechercher
+lima.remove.shortcut=
+lima.report.account=Compte
+lima.report.accounts=Comptes\:
+lima.report.assets=avoirs
+lima.report.balance=Solde
+lima.report.balanceForPeriod=Solde période
+lima.report.balanceSheet=Balance
+lima.report.credit=Crédit
+lima.report.currency=Devise\:
+lima.report.currentAsset=Actif à court terme
+lima.report.dedit=Débit
+lima.report.fromDateToDate=Du %s au %s
+lima.report.generatingDate=Édition du %s
+lima.report.investments=investissements
+lima.report.label=Intitulé
+lima.report.liabilities=passif
+lima.report.totalForPeriod=Total période
+lima.retainedEarnings.wait=
lima.structure=Structure
lima.table.account=Compte
lima.table.balance=Solde
--
To stop receiving notification emails like this one, please contact
chorem.org SCM administrator <admin+scm(a)chorem.org>.
1
0