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
- 1853 discussions
Author: dcosse
Date: 2014-07-31 17:10:21 +0200 (Thu, 31 Jul 2014)
New Revision: 3883
Url: http://forge.chorem.org/projects/lima/repository/revisions/3883
Log:
refs #1032 import EBP des entries
Added:
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ebp/
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ebp/EntryEBPModel.java
Modified:
trunk/lima-business-api/src/main/java/org/chorem/lima/LimaTechnicalException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/AccountException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/AfterLastFiscalPeriodException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistAccountException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialStatement.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistVatStatement.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyLockedFiscalPeriodException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/BeforeFirstFiscalPeriodException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/BeginAfterEndFiscalPeriodException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/ClosedPeriodicEntryBookException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/ClosedPeriodicEntryBooksException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/DateException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/EntriesException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/EntryBookException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/FinancialPeriodException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/FinancialTransactionsException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/FiscalPeriodException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportEbpException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportResult.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/InvalidAccountNumberException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/LastUnlockedFiscalPeriodException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/LimaException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/LockedEntryBookException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/LockedFinancialPeriodException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/MoreOneUnlockFiscalPeriodException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/NoEmptyFiscalPeriodException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/NoFoundFinancialPeriodException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotAllowedLabel.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotBeginNextDayOfLastFiscalPeriodException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotLockedClosedPeriodicEntryBooksException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedEntriesException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedFinancialTransactionsException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnfilledEntriesException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/UsedAccountException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/UsedEntryBookException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/WithoutEntryBookFinancialTransactionsException.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportService.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/NewImportService.java
trunk/lima-business/src/main/java/org/chorem/lima/LimaServer.java
trunk/lima-business/src/main/java/org/chorem/lima/LimaXAResource.java
trunk/lima-business/src/main/java/org/chorem/lima/business/AccountingRules.java
trunk/lima-business/src/main/java/org/chorem/lima/business/LimaConfig.java
trunk/lima-business/src/main/java/org/chorem/lima/business/LimaInterceptor.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceListener.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java
trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/DefaultAccountingRules.java
trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/FranceAccountingRules.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AbstractLimaService.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AccountServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ClosedPeriodicEntryBookServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/DocumentServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryBookServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ExportServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialPeriodServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FiscalPeriodServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/IdentityServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewExportServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/OptionsServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatementServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AccountModel.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/EntryBookModel.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/EntryModel.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FinancialStatementModel.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FinancialTransactionModel.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FiscalPeriodModel.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/VatStatementModel.java
trunk/lima-business/src/main/java/org/chorem/lima/business/migration/DatabaseMigrationClass.java
trunk/lima-business/src/main/java/org/chorem/lima/business/migration/MigrationV0V0_5.java
trunk/lima-business/src/main/java/org/chorem/lima/business/migration/MigrationV0_6.java
trunk/lima-business/src/main/java/org/chorem/lima/business/migration/MigrationV0_8.java
trunk/lima-business/src/main/java/org/chorem/lima/business/utils/AccountComparator.java
trunk/lima-business/src/main/java/org/chorem/lima/business/utils/AccountEBPComparator.java
trunk/lima-business/src/main/java/org/chorem/lima/business/utils/DocumentsEnum.java
trunk/lima-business/src/main/java/org/chorem/lima/business/utils/EntryComparator.java
trunk/lima-business/src/main/java/org/chorem/lima/business/utils/EntryEBPComparator.java
trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FinancialPeriodComparator.java
trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FinancialTransactionComparator.java
trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FiscalPeriodComparator.java
trunk/lima-business/src/main/java/org/chorem/lima/business/utils/LetteringComparator.java
trunk/lima-business/src/main/java/org/chorem/lima/service/LimaServiceFactory.java
trunk/lima-business/src/main/java/org/chorem/lima/service/ServiceMonitorableHandler.java
trunk/lima-business/src/main/java/org/chorem/lima/service/package-info.java
trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/AccountServiceImplTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/EntryBookServiceImplTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialPeriodServiceImplTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceImplTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/FiscalPeriodServiceImplTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/ImportServiceImplTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/LetteringComparatorTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/LimaMiscTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/LimaTestsConfig.java
trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/ReportServiceImplTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/AccountServiceRuleFrTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ImportServiceRuleFrTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ReportServiceRuleFrTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/TestAccountingRules.java
trunk/lima-business/src/test/java/org/chorem/lima/entity/FinancialTransactionDAOTest.java
trunk/lima-business/src/test/resources/import/bcr_developed.csv
trunk/lima-business/src/test/resources/import/vat_shortened.csv
trunk/lima-callao/src/main/java/org/chorem/lima/DefaultServiceContext.java
trunk/lima-callao/src/main/java/org/chorem/lima/ServiceContext.java
trunk/lima-callao/src/main/java/org/chorem/lima/entity/AccountTopiaDao.java
trunk/lima-callao/src/main/java/org/chorem/lima/entity/ClosedPeriodicEntryBookTopiaDao.java
trunk/lima-callao/src/main/java/org/chorem/lima/entity/EntryTopiaDao.java
trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialPeriodTopiaDao.java
trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialStatementTopiaDao.java
trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialTransactionTopiaDao.java
trunk/lima-callao/src/main/java/org/chorem/lima/entity/FiscalPeriodTopiaDao.java
trunk/lima-callao/src/main/java/org/chorem/lima/entity/LimaCallaoTopiaPersistenceContext.java
trunk/lima-callao/src/main/java/org/chorem/lima/entity/VatStatementTopiaDao.java
trunk/lima-callao/src/main/xmi/accounting-model.zargo
trunk/lima-swing/src/main/assembly/lima.bat
trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.css
trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainView.css
trunk/lima-swing/src/main/java/org/chorem/lima/ui/celleditor/AutoCompleteTableCellEditor.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/HomeView.css
trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java
Modified: trunk/lima-business/src/main/java/org/chorem/lima/LimaServer.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/LimaServer.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/LimaServer.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: LimaServer.java 3350 2012-04-04 09:03:41Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2011 Codelutin, Chatellier Eric
* %%
@@ -36,10 +36,10 @@
* Starts openejb server.
*
* @author chatellier
- * @version $Revision: 3350 $
+ * @version $Revision$
* <p/>
- * Last update : $Date: 2012-04-04 11:03:41 +0200 (mer. 04 avril 2012) $
- * By : $Author: echatellier $
+ * Last update : $Date$
+ * By : $Author$
*/
public class LimaServer {
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/LimaServer.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/LimaXAResource.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/LimaXAResource.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/LimaXAResource.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: LimaXAResource.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -23,23 +23,23 @@
package org.chorem.lima;
-import javax.transaction.xa.XAException;
-import javax.transaction.xa.XAResource;
-import javax.transaction.xa.Xid;
-
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.nuiton.topia.persistence.TopiaException;
import org.nuiton.topia.persistence.TopiaTransaction;
+import javax.transaction.xa.XAException;
+import javax.transaction.xa.XAResource;
+import javax.transaction.xa.Xid;
+
/**
* Topia XA ressource containing TopiaContext to commit or rollback.
*
* @author chatellier
- * @version $Revision: 3585 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-08 16:52:14 +0200 (mer. 08 août 2012) $
- * By : $Author: tchemit $
+ * Last update : $Date$
+ * By : $Author$
*/
public class LimaXAResource implements XAResource {
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/LimaXAResource.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/AccountingRules.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/AccountingRules.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/AccountingRules.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: AccountingRules.java 3519 2012-07-12 10:27:43Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/AccountingRules.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/LimaConfig.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/LimaConfig.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/LimaConfig.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: LimaConfig.java 3796 2014-05-13 14:52:18Z echatellier $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
@@ -31,17 +31,17 @@
import org.chorem.lima.business.accountingrules.FranceAccountingRules;
import org.chorem.lima.business.migration.DatabaseMigrationClass;
import org.chorem.lima.entity.LimaCallaoEntityEnum;
+import org.nuiton.config.ApplicationConfig;
+import org.nuiton.config.ArgumentsParserException;
+import org.nuiton.config.ConfigOptionDef;
import org.nuiton.topia.migration.TopiaMigrationEngine;
+import org.nuiton.topia.migration.TopiaMigrationService;
import org.nuiton.topia.persistence.TopiaConfigurationConstants;
-import org.nuiton.topia.migration.TopiaMigrationService;
-import org.nuiton.config.ApplicationConfig;
-import org.nuiton.config.ConfigOptionDef;
-import org.nuiton.config.ArgumentsParserException;
import java.io.File;
+import static org.nuiton.i18n.I18n.n;
import static org.nuiton.i18n.I18n.t;
-import static org.nuiton.i18n.I18n.n;
/**
* Configuration pour le business.
@@ -49,10 +49,10 @@
* A voir comment le lier avec celui de lima swing.
*
* @author chatellier
- * @version $Revision: 3796 $
+ * @version $Revision$
* <p/>
- * Last update : $Date: 2014-05-13 16:52:18 +0200 (mar. 13 mai 2014) $
- * By : $Author: echatellier $
+ * Last update : $Date$
+ * By : $Author$
*/
public class LimaConfig extends ApplicationConfig {
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/LimaConfig.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/LimaInterceptor.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/LimaInterceptor.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/LimaInterceptor.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: LimaInterceptor.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -23,16 +23,7 @@
package org.chorem.lima.business;
-import java.util.Properties;
-
-import javax.annotation.Resource;
-import javax.ejb.Stateless;
-import javax.ejb.TransactionAttribute;
-import javax.interceptor.AroundInvoke;
-import javax.interceptor.InvocationContext;
-import javax.transaction.Transaction;
-import javax.transaction.TransactionManager;
-
+import com.google.common.base.Function;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaXAResource;
@@ -42,21 +33,28 @@
import org.chorem.lima.entity.LimaCallaoTopiaPersistenceContext;
import org.nuiton.config.ApplicationConfig;
import org.nuiton.topia.persistence.TopiaApplicationContextCache;
-
-import com.google.common.base.Function;
import org.nuiton.topia.persistence.TopiaException;
import org.nuiton.topia.persistence.util.TopiaUtil;
+import javax.annotation.Resource;
+import javax.ejb.Stateless;
+import javax.ejb.TransactionAttribute;
+import javax.interceptor.AroundInvoke;
+import javax.interceptor.InvocationContext;
+import javax.transaction.Transaction;
+import javax.transaction.TransactionManager;
+import java.util.Properties;
+
/**
* Interceptor for topia context transaction.
*
* http://stackoverflow.com/questions/8608349
*
* @author chatellier
- * @version $Revision: 3585 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-08 16:52:14 +0200 (mer. 08 août 2012) $
- * By : $Author: tchemit $
+ * Last update : $Date$
+ * By : $Author$
*/
@Stateless
public class LimaInterceptor {
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/LimaInterceptor.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceListener.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceListener.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceListener.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: ServiceListener.java 3278 2011-08-16 14:09:44Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2010 CodeLutin
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceListener.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: ServiceMonitorable.java 3366 2012-04-13 13:46:24Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2010 CodeLutin
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ServiceMonitorable.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/DefaultAccountingRules.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/DefaultAccountingRules.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/DefaultAccountingRules.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: DefaultAccountingRules.java 3777 2014-04-14 07:29:08Z sbavencoff $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/DefaultAccountingRules.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/FranceAccountingRules.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/FranceAccountingRules.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/FranceAccountingRules.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: FranceAccountingRules.java 3777 2014-04-14 07:29:08Z sbavencoff $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/FranceAccountingRules.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AbstractLimaService.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AbstractLimaService.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AbstractLimaService.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: AbstractLimaService.java 3409 2012-05-11 10:19:53Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
@@ -34,7 +34,7 @@
* Abstract code for all ejb services (get context, catch, finally...).
*
* @author chatellier
- * @version $Revision: 3409 $
+ * @version $Revision$
*/
public abstract class AbstractLimaService {
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AbstractLimaService.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AccountServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AccountServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AccountServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: AccountServiceImpl.java 3777 2014-04-14 07:29:08Z sbavencoff $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2010 CodeLutin
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/AccountServiceImpl.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ClosedPeriodicEntryBookServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ClosedPeriodicEntryBookServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ClosedPeriodicEntryBookServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -3,8 +3,8 @@
/*
* #%L
* Lima :: business
- * $Id: ClosedPeriodicEntryBookServiceImpl.java 3768 2014-04-11 13:38:02Z dcosse $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2014 CodeLutin
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ClosedPeriodicEntryBookServiceImpl.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/DocumentServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/DocumentServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/DocumentServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: DocumentServiceImpl.java 3778 2014-04-15 16:09:41Z dcosse $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/DocumentServiceImpl.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryBookServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryBookServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryBookServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: EntryBookServiceImpl.java 3780 2014-05-05 16:28:39Z dcosse $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryBookServiceImpl.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -3,8 +3,8 @@
/*
* #%L
* Lima :: business
- * $Id: EntryServiceImpl.java 3768 2014-04-11 13:38:02Z dcosse $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2014 CodeLutin
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/EntryServiceImpl.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ExportServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ExportServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ExportServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: ExportServiceImpl.java 3781 2014-05-06 09:22:03Z dcosse $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
@@ -65,10 +65,10 @@
/**
* CSV import export service.
*
- * @version $Revision: 3781 $
+ * @version $Revision$
* <p/>
- * Last update : $Date: 2014-05-06 11:22:03 +0200 (mar. 06 mai 2014) $
- * By : $Author: dcosse $
+ * Last update : $Date$
+ * By : $Author$
*/
@Stateless
@Remote(ExportService.class)
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ExportServiceImpl.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialPeriodServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialPeriodServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialPeriodServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: FinancialPeriodServiceImpl.java 3740 2014-01-17 22:12:04Z dcosse $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2010 CodeLutin
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialPeriodServiceImpl.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: FinancialStatementServiceImpl.java 3777 2014-04-14 07:29:08Z sbavencoff $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
* *
- * $Id: FinancialTransactionServiceImpl.java 3783 2014-05-06 16:47:18Z dcosse $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FiscalPeriodServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FiscalPeriodServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FiscalPeriodServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
* *
- * $Id: FiscalPeriodServiceImpl.java 3777 2014-04-14 07:29:08Z sbavencoff $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FiscalPeriodServiceImpl.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: HttpServerServiceImpl.java 3777 2014-04-14 07:29:08Z sbavencoff $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/HttpServerServiceImpl.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/IdentityServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/IdentityServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/IdentityServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: IdentityServiceImpl.java 3410 2012-05-11 10:26:46Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/IdentityServiceImpl.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: ImportServiceImpl.java 3782 2014-05-06 15:41:32Z dcosse $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
@@ -26,8 +26,6 @@
package org.chorem.lima.business.ejb;
import au.com.bytecode.opencsv.CSVReader;
-import au.com.bytecode.opencsv.bean.ColumnPositionMappingStrategy;
-import au.com.bytecode.opencsv.bean.CsvToBean;
import com.google.common.base.Function;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
@@ -37,16 +35,12 @@
import org.apache.pdfbox.exceptions.COSVisitorException;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.interactive.form.PDField;
-import org.chorem.lima.beans.EntryEBP;
-import org.chorem.lima.beans.EntryEBPImpl;
import org.chorem.lima.beans.EntryImport;
import org.chorem.lima.beans.FinancialTransactionImport;
import org.chorem.lima.business.AlreadyExistAccountException;
import org.chorem.lima.business.ImportEbpException;
import org.chorem.lima.business.InvalidAccountNumberException;
import org.chorem.lima.business.LimaConfig;
-import org.chorem.lima.business.LockedEntryBookException;
-import org.chorem.lima.business.LockedFinancialPeriodException;
import org.chorem.lima.business.api.AccountService;
import org.chorem.lima.business.api.ClosedPeriodicEntryBookService;
import org.chorem.lima.business.api.EntryBookService;
@@ -57,18 +51,11 @@
import org.chorem.lima.business.api.IdentityService;
import org.chorem.lima.business.api.ImportService;
import org.chorem.lima.business.utils.DocumentsEnum;
-import org.chorem.lima.business.utils.EntryEBPComparator;
-import org.chorem.lima.business.utils.FiscalPeriodComparator;
import org.chorem.lima.business.utils.ImportExportEntityEnum;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.AccountImpl;
-import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.entity.EntryBookImpl;
-import org.chorem.lima.entity.EntryImpl;
-import org.chorem.lima.entity.FinancialTransaction;
-import org.chorem.lima.entity.FinancialTransactionImpl;
-import org.chorem.lima.entity.FiscalPeriod;
import org.chorem.lima.entity.Identity;
import org.chorem.lima.entity.IdentityImpl;
@@ -81,13 +68,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
-import java.math.BigDecimal;
-import java.text.ParseException;
import java.text.SimpleDateFormat;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.Date;
import java.util.List;
import java.util.Map;
@@ -149,215 +130,6 @@
// ################ IMPORT THIRD PART ACCOUNTING SOFTWARE ################
@Override
- public String importEntriesFromEbp(String datas) throws ImportEbpException{
-
- if (datas.isEmpty()) {
- throw new ImportEbpException(t("lima-business.import.ebpnoentry"));
- }
-
- // use for logs
- long before = System.currentTimeMillis();
-
- List<Account> accounts = accountService.getAllAccounts();
- if (accounts == null) {
- accounts = Lists.newArrayList();
- }
- Map<String, Account> indexedAccounts = Maps.newHashMap(Maps.uniqueIndex(accounts, GET_ACCOUNT_NUMBER));
-
- List<EntryBook> entryBooks = entryBookService.getAllEntryBooks();
- if (entryBooks == null) {
- entryBooks = Lists.newArrayList();
- }
- Map<String, EntryBook> indexedEntryBooks = Maps.newHashMap(Maps.uniqueIndex(entryBooks, GET_ENTRY_BOOK_CODE));
-
- SimpleDateFormat epbDateFormat = new SimpleDateFormat(DATE_PATTERN);
- StringBuilder result = new StringBuilder();
- CSVReader csvReader = null;
-
- try {
- csvReader = new CSVReader(new StringReader(datas));
- ColumnPositionMappingStrategy<EntryEBPImpl> strat = new ColumnPositionMappingStrategy<EntryEBPImpl>();
- strat.setType(EntryEBPImpl.class);
- // read header to set strategy mapping
- strat.setColumnMapping(csvReader.readNext());
-
- // check if file have a good header
- List<String> headEntry = new ArrayList<String>();
- headEntry.add(EntryEBP.PROPERTY_DAT_ECR);
- headEntry.add(EntryEBP.PROPERTY_JOURNAL);
- headEntry.add(EntryEBP.PROPERTY_COMPTE);
- headEntry.add(EntryEBP.PROPERTY_LIBELLE);
- headEntry.add(EntryEBP.PROPERTY_PIECE);
- headEntry.add(EntryEBP.PROPERTY_DEBIT);
- headEntry.add(EntryEBP.PROPERTY_CREDIT);
- headEntry.add(EntryEBP.PROPERTY_LETTRE);
- if (!Arrays.asList(strat.getColumnMapping()).containsAll(headEntry)) {
- throw new ImportEbpException(
- t("lima-business.import.ebpnoheader"));
- }
-
- // Sorts the list according to the entry date
- CsvToBean<EntryEBPImpl> csv = new CsvToBean<EntryEBPImpl>();
- List<EntryEBPImpl> list = csv.parse(strat, csvReader);
- Collections.sort(list, new EntryEBPComparator());
-
- // Get all the valid fiscalPeriods Ordered by date.
- List<FiscalPeriod> fiscalPeriods = fiscalPeriodService
- .getAllUnblockedFiscalPeriods();
- Collections.sort(fiscalPeriods, new FiscalPeriodComparator());
-
- // There are no valid fiscalPeriods -> exception
- int nbFiscalPeriods = fiscalPeriods.size();
- if (nbFiscalPeriods == 0) {
- throw new ImportEbpException(
- t("lima-business.import.nofiscalperiodopen"));
- }
-
- // attributes declaration
- FinancialTransaction financialTransaction = null;
- Date dateEcr;
- Account account;
- Entry entry;
- BigDecimal debit;
- String entryBookCode;
- EntryBook entryBook;
-
- // For all entries loaded from the file
- // the entry is validate (checking for valide FiscalPeriod and existing Account associated to it)
- // if valid entry
- // the entry entity is created and the association with it's dependant entites (Account are FinancialTransaction) are created
-
- for (EntryEBP entryEBP : list) {
- dateEcr = epbDateFormat.parse(entryEBP.getDatEcr());
-
- // account loading
- account = indexedAccounts.get(entryEBP.getCompte());
-
- // if entry date have fiscalperiod open
- if (dateEcr.compareTo(fiscalPeriods.get(0).getBeginDate()) < 0
- || dateEcr.compareTo(fiscalPeriods.get(nbFiscalPeriods - 1).getEndDate()) > 0) {
- result.append(t(
- "lima-business.import.entriesoutofdatesrange", dateEcr));
- }
-
- // if account not exist not export -> exception
- else if (account == null) {
- // TODO DCossé 28/05/14 this message is not displayed on user's error window.
- throw new ImportEbpException(t(
- "lima-business.import.ebpmissingaccount",
- entryEBP.getCompte()));
- }
-
- // create entry
- else {
-
- // creation of the entry
- // initialisation of this attributs
-
- entry = new EntryImpl();
-
- // the entry has one amount witch can be Debit or Credit
- // regarding the value of the boolean:debit
- debit = new BigDecimal(entryEBP.getDebit());
- if (BigDecimal.ZERO.compareTo(debit)==0) {
- entry.setDebit(false);
- entry.setAmount(new BigDecimal(entryEBP.getCredit()));
- } else {
- entry.setDebit(true);
- entry.setAmount(debit);
- }
- entry.setAccount(account);
- entry.setDescription(StringUtils.trimToNull(entryEBP.getLibelle()));
- entry.setVoucher(StringUtils.trimToNull(entryEBP.getPiece()));
- entry.setLettering(StringUtils.trimToNull(entryEBP.getLettre()));
-
- // Association of the entry with the financialTransaction
- // Each financialTransaction is associated with an entryBook
- // loading of the entryBook from the db according to the entryBookCode
- // if the entryBook doesn't exist it's entity is created
- // if any financialTransaction exist for the entry
- // a financialTransaction entity is created associated with the entryBook
- // creation of the entry entity
- // association between the entry and the financialTransaction is done.
-
- entryBookCode = entryEBP.getJournal();
- // entryBook loading
- entryBook = indexedEntryBooks.get(entryBookCode);
-
- // if entrybook not exist create it !
- if (entryBook == null) {
- entryBook = new EntryBookImpl();
- entryBook.setCode(entryBookCode);
- //financialTransaction = null;
- // create it
- entryBook = entryBookService.createEntryBook(entryBook);
- result.append(t(
- "lima-business.import.entrybooknotexist",
- entryBook));
- }
- try {
-
- // create transaction
- if (financialTransaction == null
- || !(dateEcr.equals(financialTransaction
- .getTransactionDate()) && entryBook
- .getCode().equals(
- financialTransaction.getEntryBook()
- .getCode()))) {
- // create financial transaction
- financialTransaction = new FinancialTransactionImpl();
- financialTransaction.setEntryBook(entryBook);
- financialTransaction.setTransactionDate(dateEcr);
- financialTransaction = financialTransactionService.createFinancialTransaction(financialTransaction);
- result.append(t(
- "lima-business.import.transactionadded", dateEcr,
- entryBook.getCode()));
- }
- financialTransaction.getEntry().add(entry);
- // Inside the db, the entries reference the financialTransaction
- entry.setFinancialTransaction(financialTransaction);
- entry = financialTransactionService.createEntry(entry);
- result.append(t("lima-business.import.entryadded",
- entry.getDescription(), entry.getAmount()));
-
- } catch (LockedFinancialPeriodException e) {
- result.append(t("lima-business.import.entries.error.lockedFinancialPeriod",
- e.getFinancialPeriod().getBeginDate(),
- e.getFinancialPeriod().getEndDate()));
- } catch (LockedEntryBookException e) {
- result.append(t("lima-business.import.entries.error.lockedEntryBook",
- e.getClosedPeriodicEntryBook().getEntryBook().getCode(),
- e.getClosedPeriodicEntryBook().getEntryBook().getLabel(),
- e.getClosedPeriodicEntryBook().getFinancialPeriod().getBeginDate(),
- e.getClosedPeriodicEntryBook().getFinancialPeriod().getEndDate()));
- }
-
- }
- }
-
- if (log.isInfoEnabled()) {
-
- long after = System.currentTimeMillis();
- log.info("Imported form EBP : " + list.size() + " entries in "
- + (after - before) + " ms");
- }
- } catch (ParseException e) {
- throw new ImportEbpException("Can't import ", e);
- } catch (IOException e) {
- throw new ImportEbpException("Can't import ", e);
- } finally {
- if (csvReader != null) {
- try {
- csvReader.close();
- } catch (IOException e) {
- // on fait rien
- }
- }
- }
- return result.toString();
- }
-
- @Override
public String importAccountsChartFromEbp(String datas) throws ImportEbpException{
long before = System.currentTimeMillis();
List<Account> accounts = accountService.getAllAccounts();
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewExportServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewExportServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewExportServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: ExportServiceImpl.java 3781 2014-05-06 09:22:03Z dcosse $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
@@ -74,10 +74,10 @@
/**
* CSV import export service.
*
- * @version $Revision: 3781 $
+ * @version $Revision$
* <p/>
- * Last update : $Date: 2014-05-06 11:22:03 +0200 (mar. 06 mai 2014) $
- * By : $Author: dcosse $
+ * Last update : $Date$
+ * By : $Author$
*/
@Stateless
@Remote(NewExportService.class)
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewExportServiceImpl.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -22,15 +22,19 @@
* #L%
*/
-import com.google.common.base.Predicate;
+import com.google.common.base.Function;
+import com.google.common.collect.Lists;
+import com.google.common.collect.Maps;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
+import org.chorem.lima.beans.EntryEBP;
import org.chorem.lima.beans.FinancialStatementImport;
import org.chorem.lima.beans.VatStatementImport;
import org.chorem.lima.business.AlreadyExistAccountException;
import org.chorem.lima.business.AlreadyExistFinancialStatement;
import org.chorem.lima.business.AlreadyExistVatStatement;
import org.chorem.lima.business.FiscalPeriodException;
+import org.chorem.lima.business.ImportEbpException;
import org.chorem.lima.business.ImportResult;
import org.chorem.lima.business.InvalidAccountNumberException;
import org.chorem.lima.business.LockedEntryBookException;
@@ -52,11 +56,17 @@
import org.chorem.lima.business.ejb.csv.FinancialTransactionModel;
import org.chorem.lima.business.ejb.csv.FiscalPeriodModel;
import org.chorem.lima.business.ejb.csv.VatStatementModel;
+import org.chorem.lima.business.ejb.ebp.EntryEBPModel;
+import org.chorem.lima.business.utils.EntryEBPComparator;
+import org.chorem.lima.business.utils.FiscalPeriodComparator;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
+import org.chorem.lima.entity.EntryBookImpl;
+import org.chorem.lima.entity.EntryImpl;
import org.chorem.lima.entity.FinancialStatement;
import org.chorem.lima.entity.FinancialTransaction;
+import org.chorem.lima.entity.FinancialTransactionImpl;
import org.chorem.lima.entity.FiscalPeriod;
import org.chorem.lima.entity.VatStatement;
import org.nuiton.csv.Import;
@@ -69,11 +79,17 @@
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import java.io.InputStream;
+import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collection;
+import java.util.Collections;
+import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+
+import static org.nuiton.i18n.I18n.t;
+
/**
* Created by davidcosse on 03/06/14.
*/
@@ -103,11 +119,17 @@
@EJB
protected VatStatementService vatStatementService;
- protected static final Predicate<FinancialStatement> IS_ROOT_FINANCIAL_STATEMENT = new Predicate<FinancialStatement>() {
+ protected static final Function<Account, String> GET_ACCOUNT_NUMBER = new Function<Account, String>() {
+ @Override
+ public String apply(Account input) {
+ return input.getAccountNumber();
+ }
+ };
+ protected static final Function<EntryBook, String> GET_ENTRY_BOOK_CODE = new Function<EntryBook, String>() {
@Override
- public boolean apply(FinancialStatement financialStatement) {
- return financialStatement.getMasterFinancialStatement()==null;
+ public String apply(EntryBook input) {
+ return input.getCode();
}
};
@@ -531,7 +553,7 @@
@Override
public List<ImportResult> importBackup(String entryBooks, String financialTransactions, String fiscalPeriods, String accounts, String entries) throws AlreadyExistAccountException, InvalidAccountNumberException {
- List<ImportResult> results = new ArrayList<ImportResult>();
+ List<ImportResult> results = new ArrayList<>();
importAccountAsCSV(accounts);
importEntryBooksAsCSV(entryBooks);
importFiscalPeriodsAsCSV(fiscalPeriods);
@@ -539,4 +561,178 @@
importEntriesAsCSV(entries);
return results;
}
+
+ @Override
+ public ImportResult importEntriesFromEbp(String datas) throws ImportEbpException {
+
+ ImportResult result = new ImportResult();
+ if (datas.isEmpty()) {
+ result.getException().addException(0, new ImportEbpException(t("lima-business.import.ebpnoentry")));
+ return result;
+ }
+
+ // use for logs
+ long before = System.currentTimeMillis();
+
+ List<Account> accounts = accountService.getAllAccounts();
+ if (accounts == null) {
+ accounts = Lists.newArrayList();
+ }
+ Map<String, Account> indexedAccounts = Maps.newHashMap(Maps.uniqueIndex(accounts, GET_ACCOUNT_NUMBER));
+
+ List<EntryBook> entryBooks = entryBookService.getAllEntryBooks();
+ if (entryBooks == null) {
+ entryBooks = Lists.newArrayList();
+ }
+ Map<String, EntryBook> indexedEntryBooks = Maps.newHashMap(Maps.uniqueIndex(entryBooks, GET_ENTRY_BOOK_CODE));
+
+ InputStream contentStream = null;
+ try {
+ contentStream = IOUtils.toInputStream(datas);
+
+ ImportModel<EntryEBP> model = new EntryEBPModel();
+
+ Import<EntryEBP> entryEBPs = Import.newImport(model, contentStream);
+ List<EntryEBP> list = new ArrayList<>();
+ for (EntryEBP entryEBP : entryEBPs) {
+ list.add(entryEBP);
+ }
+
+ Collections.sort(list, new EntryEBPComparator());
+
+ // Get all the valid fiscalPeriods Ordered by date.
+ List<FiscalPeriod> fiscalPeriods = fiscalPeriodService
+ .getAllUnblockedFiscalPeriods();
+ Collections.sort(fiscalPeriods, new FiscalPeriodComparator());
+
+ // There are no valid fiscalPeriods -> exception
+ int nbFiscalPeriods = fiscalPeriods.size();
+ if (nbFiscalPeriods == 0) {
+ result.getException().addException(0, new ImportEbpException(
+ t("lima-business.import.nofiscalperiodopen")));
+ // whe don't want to go further.
+ return result;
+ }
+
+ // attributes declaration
+ FinancialTransaction financialTransaction = null;
+ Date dateEcr;
+ Account account;
+ Entry entry;
+ BigDecimal debit;
+ String entryBookCode;
+ EntryBook entryBook;
+
+ // For all entries loaded from the file
+ // the entry is validate (checking for valide FiscalPeriod and existing Account associated to it)
+ // if valid entry
+ // the entry entity is created and the association with it's dependant entites (Account are FinancialTransaction) are created
+
+ int lineIndex = 0;
+ for (EntryEBP entryEBP : list) {
+ dateEcr = entryEBP.getDatEcr();
+
+ // account loading
+ account = indexedAccounts.get(entryEBP.getCompte());
+
+ // if entry date have fiscalperiod open
+ if (dateEcr.compareTo(fiscalPeriods.get(0).getBeginDate()) < 0
+ || dateEcr.compareTo(fiscalPeriods.get(nbFiscalPeriods - 1).getEndDate()) > 0) {
+ result.getException().addException(lineIndex, new ImportEbpException(t("lima-business.import.entriesoutofdatesrange", dateEcr)));
+ lineIndex++;
+ continue;
+ }
+
+ // if account not exist not export -> exception
+ else if (account == null) {
+ result.getException().addException(lineIndex, new ImportEbpException(t("lima-business.import.ebpmissingaccount", entryEBP.getCompte())));
+ lineIndex++;
+ continue;
+ }
+
+ // create entry
+ else {
+
+ // creation of the entry
+ // initialisation of this attributs
+
+ entry = new EntryImpl();
+
+ // the entry has one amount witch can be Debit or Credit
+ // regarding the value of the boolean:debit
+ debit = entryEBP.getDebit();
+ if (BigDecimal.ZERO.compareTo(debit)==0) {
+ entry.setDebit(false);
+ entry.setAmount(entryEBP.getCredit());
+ } else {
+ entry.setDebit(true);
+ entry.setAmount(debit);
+ }
+ entry.setAccount(account);
+ entry.setDescription(entryEBP.getLibelle());
+ entry.setVoucher(entryEBP.getPiece());
+ entry.setLettering(entryEBP.getLettre());
+
+ // Association of the entry with the financialTransaction
+ // Each financialTransaction is associated with an entryBook
+ // loading of the entryBook from the db according to the entryBookCode
+ // if the entryBook doesn't exist it's entity is created
+ // if any financialTransaction exist for the entry
+ // a financialTransaction entity is created associated with the entryBook
+ // creation of the entry entity
+ // association between the entry and the financialTransaction is done.
+
+ entryBookCode = entryEBP.getJournal();
+ // entryBook loading
+ entryBook = indexedEntryBooks.get(entryBookCode);
+
+ // if entrybook not exist create it !
+ if (entryBook == null) {
+ entryBook = new EntryBookImpl();
+ entryBook.setCode(entryBookCode);
+ //financialTransaction = null;
+ // create it
+ entryBook = entryBookService.createEntryBook(entryBook);
+ }
+ try {
+
+ // create transaction
+ if (financialTransaction == null
+ || !(dateEcr.equals(financialTransaction
+ .getTransactionDate()) && entryBook
+ .getCode().equals(
+ financialTransaction.getEntryBook()
+ .getCode()))) {
+ // create financial transaction
+ financialTransaction = new FinancialTransactionImpl();
+ financialTransaction.setEntryBook(entryBook);
+ financialTransaction.setTransactionDate(dateEcr);
+ financialTransaction = financialTransactionService.createFinancialTransaction(financialTransaction);
+ }
+ financialTransaction.getEntry().add(entry);
+ // Inside the db, the entries reference the financialTransaction
+ entry.setFinancialTransaction(financialTransaction);
+ financialTransactionService.createEntry(entry);
+
+ } catch (LockedFinancialPeriodException | LockedEntryBookException e) {
+ result.getException().addException(lineIndex, e);
+ lineIndex++;
+ continue;
+ }
+
+ }
+ result.increaseCreated();
+ lineIndex++;
+ }
+
+ if (log.isInfoEnabled()) {
+ long after = System.currentTimeMillis();
+ log.info("Imported form EBP : " + list.size() + " entries in "
+ + (after - before) + " ms");
+ }
+ } finally {
+ IOUtils.closeQuietly(contentStream);
+ }
+ return result;
+ }
}
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/OptionsServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/OptionsServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/OptionsServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima :: business
*
- * $Id: OptionsServiceImpl.java 3410 2012-05-11 10:26:46Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
@@ -24,12 +24,12 @@
*/
package org.chorem.lima.business.ejb;
+import org.chorem.lima.business.LimaConfig;
+import org.chorem.lima.business.api.OptionsService;
+
import javax.ejb.Remote;
import javax.ejb.Stateless;
-import org.chorem.lima.business.LimaConfig;
-import org.chorem.lima.business.api.OptionsService;
-
@Stateless
@Remote(OptionsService.class)
public class OptionsServiceImpl extends AbstractLimaService implements OptionsService {
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/OptionsServiceImpl.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: ReportServiceImpl.java 3742 2014-01-31 14:17:41Z sbavencoff $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ReportServiceImpl.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatementServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatementServiceImpl.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatementServiceImpl.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima :: business
*
- * $Id: VatStatementServiceImpl.java 3740 2014-01-17 22:12:04Z dcosse $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatementServiceImpl.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -139,21 +139,6 @@
};
/**
- * Date converter converter.
- */
- protected static final ValueParser<Date> DATE_PARSER = new ValueParser<Date>() {
- @Override
- public Date parse(String value) throws ParseException {
- Date result = null;
- if (!Strings.isNullOrEmpty(value)) {
- SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
- result = format.parse(value);
- }
- return result;
- }
- };
-
- /**
* O/N boolean parser.
*/
protected static final ValueParser<Boolean> O_N_PARSER = new ValueParser<Boolean>() {
@@ -217,6 +202,21 @@
}
};
+ /**
+ * Date converter converter.
+ */
+ protected static final ValueParser<Date> DATE_PARSER = new ValueParser<Date>() {
+ @Override
+ public Date parse(String value) throws ParseException {
+ Date result = null;
+ if (!Strings.isNullOrEmpty(value)) {
+ SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
+ result = format.parse(value);
+ }
+ return result;
+ }
+ };
+
protected static final ValueFormatter<EntryBook> ENTRY_BOOK_TO_ENTRY_BOOK_CODE_FORMATTER = new ValueFormatter<EntryBook>() {
@Override
public String format(EntryBook value) {
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AccountModel.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/EntryBookModel.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/EntryModel.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FinancialStatementModel.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FinancialStatementModel.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FinancialStatementModel.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business.ejb.csv;
+/*
+ * #%L
+ * Lima :: business
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.beans.FinancialStatementImport;
import org.chorem.lima.beans.FinancialStatementImportImpl;
import org.chorem.lima.entity.FinancialStatement;
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FinancialStatementModel.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FinancialTransactionModel.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FiscalPeriodModel.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/VatStatementModel.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/VatStatementModel.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/VatStatementModel.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business.ejb.csv;
+/*
+ * #%L
+ * Lima :: business
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.beans.VatStatementImport;
import org.chorem.lima.beans.VatStatementImportImpl;
import org.chorem.lima.entity.VatStatement;
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/VatStatementModel.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ebp/EntryEBPModel.java (from rev 3879, trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/EntryModel.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ebp/EntryEBPModel.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ebp/EntryEBPModel.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -0,0 +1,94 @@
+package org.chorem.lima.business.ejb.ebp;
+
+/*
+ * #%L
+ * Lima :: business
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+import org.chorem.lima.beans.EntryEBP;
+import org.chorem.lima.beans.EntryEBPImpl;
+import org.chorem.lima.business.ejb.csv.AbstractLimaModel;
+import org.nuiton.csv.ExportModel;
+import org.nuiton.csv.ExportableColumn;
+import org.nuiton.csv.ModelBuilder;
+
+/**
+ * Created by davidcosse on 03/06/14.
+ */
+public class EntryEBPModel extends AbstractLimaModel<EntryEBP> implements ExportModel<EntryEBP> {
+
+ public EntryEBPModel() {
+ super(',');
+ newMandatoryColumn("Journal", EntryEBP.PROPERTY_JOURNAL);
+ newMandatoryColumn("Compte", EntryEBP.PROPERTY_COMPTE);
+ newMandatoryColumn("DatEcr", EntryEBP.PROPERTY_DAT_ECR, DATE_PARSER);
+ newIgnoredColumn("DatVal");
+ newIgnoredColumn("DatSai");
+ newIgnoredColumn("DatEch");
+ newIgnoredColumn("Poste");
+ newMandatoryColumn("Piece", EntryEBP.PROPERTY_PIECE);
+ newIgnoredColumn("NumDoc");
+ newOptionalColumn("Libelle", EntryEBP.PROPERTY_LIBELLE);
+ newOptionalColumn("Debit", EntryEBP.PROPERTY_DEBIT, BIG_DECIMAL_WITH_NULL_PARSER);
+ newOptionalColumn("Credit", EntryEBP.PROPERTY_CREDIT, BIG_DECIMAL_WITH_NULL_PARSER);
+ newIgnoredColumn("Devise");
+ newIgnoredColumn("TauxDevise");
+ newIgnoredColumn("DevDebit");
+ newIgnoredColumn("DevCredit");
+ newIgnoredColumn("CDebit");
+ newIgnoredColumn("CCredit");
+ newOptionalColumn("Lettre", EntryEBP.PROPERTY_LETTRE);
+ newIgnoredColumn("Rapp");
+ newIgnoredColumn("CodReg");
+ newIgnoredColumn("Cheque");
+ newIgnoredColumn("CptTVA");
+ newIgnoredColumn("MoisTVA");
+ newIgnoredColumn("GTypEcr");
+ newIgnoredColumn("GNumEcr");
+ newIgnoredColumn("DateReleve");
+ newIgnoredColumn("DatLet");
+ newIgnoredColumn("SoftImport");
+ newIgnoredColumn("RefBVR");
+ newIgnoredColumn("NumAdhBVR");
+ newIgnoredColumn("DatderGen");
+ newIgnoredColumn("LetPart");
+ newIgnoredColumn("bSaisieKM");
+ }
+
+ @Override
+ public Iterable<ExportableColumn<EntryEBP, Object>> getColumnsForExport() {
+ ModelBuilder<EntryEBP> modelBuilder = new ModelBuilder<>();
+ modelBuilder.newColumnForExport("Journal", EntryEBP.PROPERTY_JOURNAL);
+ modelBuilder.newColumnForExport("Compte", EntryEBP.PROPERTY_COMPTE, ACCOUNT_TO_ACCOUNT_NUMBER_FORMATTER);
+ modelBuilder.newColumnForExport("DatEcr", EntryEBP.PROPERTY_DAT_ECR, DATE_FORMATTER);
+ modelBuilder.newColumnForExport("Piece", EntryEBP.PROPERTY_PIECE);
+ modelBuilder.newColumnForExport("Libelle", EntryEBP.PROPERTY_LIBELLE);
+ modelBuilder.newColumnForExport("Debit", EntryEBP.PROPERTY_DEBIT, BIG_DECIMAL_FORMATTER);
+ modelBuilder.newColumnForExport("Credit", EntryEBP.PROPERTY_CREDIT, BIG_DECIMAL_FORMATTER);
+ modelBuilder.newColumnForExport("Lettre", EntryEBP.PROPERTY_LETTRE);
+
+ return (Iterable) modelBuilder.getColumnsForExport();
+ }
+
+ @Override
+ public EntryEBP newEmptyInstance() {
+ return new EntryEBPImpl();
+ }
+}
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ebp/EntryEBPModel.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/migration/DatabaseMigrationClass.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/migration/DatabaseMigrationClass.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/migration/DatabaseMigrationClass.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima :: business
*
- * $Id: DatabaseMigrationClass.java 3322 2012-01-17 09:35:25Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2011 CodeLutin, Victor Salaun
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/migration/DatabaseMigrationClass.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/migration/MigrationV0V0_5.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/migration/MigrationV0V0_5.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/migration/MigrationV0V0_5.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima :: business
*
- * $Id: MigrationV0V0_5.java 3296 2011-09-20 17:49:06Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2011 CodeLutin, Victor Salaun
* %%
@@ -28,6 +28,7 @@
import org.nuiton.topia.persistence.TopiaException;
import org.nuiton.topia.persistence.support.TopiaSqlSupport;
import org.nuiton.util.Version;
+
import java.util.List;
public class MigrationV0V0_5 extends MigrationCallBackForVersion {
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/migration/MigrationV0V0_5.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/migration/MigrationV0_6.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/migration/MigrationV0_6.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/migration/MigrationV0_6.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima :: business
*
- * $Id: MigrationV0_6.java 3421 2012-05-15 09:53:13Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2011 - 2012 CodeLutin, Chatellier Eric
* %%
@@ -32,7 +32,6 @@
import org.nuiton.topia.persistence.support.TopiaSqlSupport;
import org.nuiton.util.Version;
-
import java.util.List;
/**
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/migration/MigrationV0_6.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/migration/MigrationV0_8.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/AccountComparator.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/utils/AccountComparator.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/utils/AccountComparator.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: AccountComparator.java 3290 2011-09-17 12:55:34Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2010 CodeLutin
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/AccountComparator.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/AccountEBPComparator.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/utils/AccountEBPComparator.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/utils/AccountEBPComparator.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: AccountEBPComparator.java 3290 2011-09-17 12:55:34Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2010 CodeLutin
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/AccountEBPComparator.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/DocumentsEnum.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/utils/DocumentsEnum.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/utils/DocumentsEnum.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: DocumentsEnum.java 3777 2014-04-14 07:29:08Z sbavencoff $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2010 CodeLutin
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/DocumentsEnum.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/EntryComparator.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/utils/EntryComparator.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/utils/EntryComparator.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: EntryComparator.java 3721 2013-12-31 15:03:48Z sbavencoff $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/EntryComparator.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/EntryEBPComparator.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/utils/EntryEBPComparator.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/utils/EntryEBPComparator.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: EntryEBPComparator.java 3290 2011-09-17 12:55:34Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2010 CodeLutin
* %%
@@ -30,8 +30,6 @@
import org.chorem.lima.beans.EntryEBP;
import java.io.Serializable;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
import java.util.Comparator;
import java.util.Date;
@@ -45,19 +43,12 @@
@Override
public int compare(EntryEBP o1, EntryEBP o2) {
int result = 0;
- SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
- try {
- Date date1 = sdf.parse(o1.getDatEcr());
- Date date2 = sdf.parse(o2.getDatEcr());
- result = date1.compareTo(date2);
- if (result == 0) {
- result = o1.getJournal().compareTo(o2.getJournal());
- }
- } catch (ParseException eee) {
- log.error("Can't parse date", eee);
+ Date date1 = o1.getDatEcr();
+ Date date2 = o2.getDatEcr();
+ result = date1.compareTo(date2);
+ if (result == 0) {
+ result = o1.getJournal().compareTo(o2.getJournal());
}
-
-
return result;
}
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/EntryEBPComparator.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FinancialPeriodComparator.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FinancialPeriodComparator.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FinancialPeriodComparator.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima :: business
*
- * $Id: FinancialPeriodComparator.java 3442 2012-06-05 14:51:55Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2011 CodeLutin, Victor Salaun
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FinancialPeriodComparator.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FinancialTransactionComparator.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FinancialTransactionComparator.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FinancialTransactionComparator.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -3,8 +3,8 @@
/*
* #%L
* Lima :: business
- * $Id: FinancialTransactionComparator.java 3695 2013-07-10 09:11:39Z athimel $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2013 CodeLutin
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FinancialTransactionComparator.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FiscalPeriodComparator.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FiscalPeriodComparator.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FiscalPeriodComparator.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: FiscalPeriodComparator.java 3290 2011-09-17 12:55:34Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2010 CodeLutin
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/FiscalPeriodComparator.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/LetteringComparator.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/utils/LetteringComparator.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/utils/LetteringComparator.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
/*
* #%L
* Lima :: business
- * $Id: LetteringComparator.java 3740 2014-01-17 22:12:04Z dcosse $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 CodeLutin
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/business/utils/LetteringComparator.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/main/java/org/chorem/lima/service/LimaServiceFactory.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/service/LimaServiceFactory.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/service/LimaServiceFactory.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: LimaServiceFactory.java 3797 2014-05-14 11:51:21Z echatellier $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/main/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/service/LimaServiceFactory.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/service/ServiceMonitorableHandler.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/service/ServiceMonitorableHandler.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/service/ServiceMonitorableHandler.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima Swing
*
- * $Id: ServiceMonitorableHandler.java 3322 2012-01-17 09:35:25Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
@@ -43,10 +43,10 @@
* All other call are forwarded on notified to registered listeners.
*
* @author chatellier
- * @version $Revision: 3322 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-01-17 10:35:25 +0100 (mar. 17 janv. 2012) $
- * By : $Author: echatellier $
+ * Last update : $Date$
+ * By : $Author$
*/
public class ServiceMonitorableHandler implements InvocationHandler {
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/service/ServiceMonitorableHandler.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/main/java/org/chorem/lima/service/package-info.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/service/package-info.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/main/java/org/chorem/lima/service/package-info.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima Business
*
- * $Id: package-info.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/main/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/main/java/org/chorem/lima/service/package-info.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: AbstractLimaTest.java 3408 2012-05-09 15:37:59Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2011 - 2012 Codelutin, Chatellier Eric
* %%
@@ -72,10 +72,10 @@
* Common initialization code for all lima tests.
*
* @author chatellier
- * @version $Revision: 3408 $
+ * @version $Revision$
* <p/>
- * Last update : $Date: 2012-05-09 17:37:59 +0200 (mer. 09 mai 2012) $
- * By : $Author: echatellier $
+ * Last update : $Date$
+ * By : $Author$
*/
public abstract class AbstractLimaTest {
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/AccountServiceImplTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/AccountServiceImplTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/AccountServiceImplTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: AccountServiceImplTest.java 3400 2012-05-04 09:43:18Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/AccountServiceImplTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/EntryBookServiceImplTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/EntryBookServiceImplTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/EntryBookServiceImplTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: EntryBookServiceImplTest.java 3391 2012-04-25 08:28:20Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/EntryBookServiceImplTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialPeriodServiceImplTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialPeriodServiceImplTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialPeriodServiceImplTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: FinancialPeriodServiceImplTest.java 3614 2012-08-20 11:59:56Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialPeriodServiceImplTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceImplTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceImplTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceImplTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: FinancialTransactionServiceImplTest.java 3710 2013-10-11 13:56:17Z Bavencoff $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -45,10 +45,10 @@
* Test on financial transaction service.
*
* @author chatellier
- * @version $Revision: 3710 $
+ * @version $Revision$
*
- * Last update : $Date: 2013-10-11 15:56:17 +0200 (ven. 11 oct. 2013) $
- * By : $Author: Bavencoff $
+ * Last update : $Date$
+ * By : $Author$
*/
public class FinancialTransactionServiceImplTest extends AbstractLimaTest {
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/FinancialTransactionServiceImplTest.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/FiscalPeriodServiceImplTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/FiscalPeriodServiceImplTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/FiscalPeriodServiceImplTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: FiscalPeriodServiceImplTest.java 3391 2012-04-25 08:28:20Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/FiscalPeriodServiceImplTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/ImportServiceImplTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/ImportServiceImplTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/ImportServiceImplTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: ImportServiceImplTest.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -38,10 +38,10 @@
* Test du service d'import en faisant des import/export EBP et xml.
*
* @author chatellier
- * @version $Revision: 3585 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-08 16:52:14 +0200 (mer. 08 août 2012) $
- * By : $Author: tchemit $
+ * Last update : $Date$
+ * By : $Author$
*/
public class ImportServiceImplTest extends AbstractLimaTest {
@@ -79,10 +79,10 @@
importService.importEntryBookFromEbp(entryBookData);
entryBookStream.close();
- entriesStream = ImportServiceImplTest.class.getResourceAsStream("/ebp/ecritures.txt");
- String entriesData = IOUtils.toString(entriesStream, "ISO-8859-1");
- importService.importEntriesFromEbp(entriesData);
- entriesStream.close();
+// entriesStream = ImportServiceImplTest.class.getResourceAsStream("/ebp/ecritures.txt");
+// String entriesData = IOUtils.toString(entriesStream, "ISO-8859-1");
+// importService.importEntriesFromEbp(entriesData);
+// entriesStream.close();
}
finally {
IOUtils.closeQuietly(accountStream);
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/ImportServiceImplTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/LetteringComparatorTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/LetteringComparatorTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/LetteringComparatorTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
/*
* #%L
* Lima :: business
- * $Id: LetteringComparatorTest.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 CodeLutin
* %%
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/LetteringComparatorTest.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/LimaMiscTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/LimaMiscTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/LimaMiscTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: LimaMiscTest.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -31,10 +31,10 @@
* Lima misc tests.
*
* @author chatellier
- * @version $Revision: 3585 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-08 16:52:14 +0200 (mer. 08 août 2012) $
- * By : $Author: tchemit $
+ * Last update : $Date$
+ * By : $Author$
*/
public class LimaMiscTest extends AbstractLimaTest {
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/LimaMiscTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/LimaTestsConfig.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import com.google.common.collect.Lists;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.io.IOUtils;
@@ -10,6 +32,7 @@
import org.chorem.lima.entity.FinancialStatement;
import org.chorem.lima.entity.FinancialTransaction;
import org.chorem.lima.entity.FiscalPeriod;
+import org.chorem.lima.entity.FiscalPeriodImpl;
import org.junit.Assert;
import org.junit.Test;
@@ -332,4 +355,18 @@
Assert.assertEquals(55, result.getNbCreated());
Assert.assertEquals(55, vatStatementService.getAllVatStatements().size());
}
+
+ @Test
+ public void testImportEntriesFromEBP() throws Exception {
+ // create fiscal period (mandatory for import)
+ FiscalPeriod fiscalPeriod = new FiscalPeriodImpl();
+ fiscalPeriod.setBeginDate(df.parse("January 1, 2012"));
+ fiscalPeriod.setEndDate(df.parse("December 31, 2012"));
+ fiscalPeriodService.createFiscalPeriod(fiscalPeriod);
+
+ InputStream entriesStream = NewImportExportServiceTest.class.getResourceAsStream("/ebp/ecritures.txt");
+ String entriesData = IOUtils.toString(entriesStream, "ISO-8859-1");
+ ImportResult result = newImportService.importEntriesFromEbp(entriesData);
+ entriesStream.close();
+ }
}
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/ReportServiceImplTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/ReportServiceImplTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/ReportServiceImplTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima business
*
- * $Id: ReportServiceImplTest.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 CodeLutin, Chatellier Eric
* %%
@@ -38,9 +38,7 @@
import org.junit.Test;
import java.math.BigDecimal;
-import java.util.ArrayList;
import java.util.Date;
-import java.util.List;
/**
* Test le service de génération des reports.
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/ReportServiceImplTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/AccountServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/AccountServiceRuleFrTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/AccountServiceRuleFrTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: AccountServiceRuleFrTest.java 3747 2014-02-17 08:41:35Z dcosse $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -25,13 +25,8 @@
import org.chorem.lima.business.AccountServiceImplTest;
import org.chorem.lima.business.LimaConfig;
-import org.chorem.lima.business.LimaException;
-import org.chorem.lima.entity.Account;
-import org.chorem.lima.entity.AccountImpl;
import org.junit.Assert;
import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Ignore;
import org.junit.Test;
/**
@@ -42,10 +37,10 @@
* Plus ajout de test specific à la locale FR.
*
* @author chatellier
- * @version $Revision: 3747 $
+ * @version $Revision$
*
- * Last update : $Date: 2014-02-17 09:41:35 +0100 (lun. 17 févr. 2014) $
- * By : $Author: dcosse $
+ * Last update : $Date$
+ * By : $Author$
*/
public class AccountServiceRuleFrTest extends AccountServiceImplTest {
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/AccountServiceRuleFrTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: EntryBookServiceRuleFrTest.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -27,7 +27,6 @@
import org.chorem.lima.business.LimaConfig;
import org.junit.Assert;
import org.junit.Before;
-import org.junit.BeforeClass;
import org.junit.Test;
/**
@@ -38,10 +37,10 @@
* Plus ajout de test specific à la locale FR.
*
* @author chatellier
- * @version $Revision: 3585 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-08 16:52:14 +0200 (mer. 08 août 2012) $
- * By : $Author: tchemit $
+ * Last update : $Date$
+ * By : $Author$
*/
public class EntryBookServiceRuleFrTest extends EntryBookServiceImplTest {
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/EntryBookServiceRuleFrTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: FinancialPeriodServiceRuleFrTest.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -27,7 +27,6 @@
import org.chorem.lima.business.LimaConfig;
import org.junit.Assert;
import org.junit.Before;
-import org.junit.BeforeClass;
import org.junit.Test;
/**
@@ -38,10 +37,10 @@
* Plus ajout de test specific à la locale FR.
*
* @author chatellier
- * @version $Revision: 3585 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-08 16:52:14 +0200 (mer. 08 août 2012) $
- * By : $Author: tchemit $
+ * Last update : $Date$
+ * By : $Author$
*/
public class FinancialPeriodServiceRuleFrTest extends EntryBookServiceImplTest {
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialPeriodServiceRuleFrTest.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: FinancialTransactionServiceRuleFrTest.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -27,7 +27,6 @@
import org.chorem.lima.business.LimaConfig;
import org.junit.Assert;
import org.junit.Before;
-import org.junit.BeforeClass;
import org.junit.Test;
/**
@@ -38,10 +37,10 @@
* Plus ajout de test specific à la locale FR.
*
* @author chatellier
- * @version $Revision: 3585 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-08 16:52:14 +0200 (mer. 08 août 2012) $
- * By : $Author: tchemit $
+ * Last update : $Date$
+ * By : $Author$
*/
public class FinancialTransactionServiceRuleFrTest extends FinancialTransactionServiceImplTest {
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FinancialTransactionServiceRuleFrTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: FiscalPeriodServiceRuleFrTest.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -27,7 +27,6 @@
import org.chorem.lima.business.LimaConfig;
import org.junit.Assert;
import org.junit.Before;
-import org.junit.BeforeClass;
import org.junit.Test;
/**
@@ -38,10 +37,10 @@
* Plus ajout de test specific à la locale FR.
*
* @author chatellier
- * @version $Revision: 3585 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-08 16:52:14 +0200 (mer. 08 août 2012) $
- * By : $Author: tchemit $
+ * Last update : $Date$
+ * By : $Author$
*/
public class FiscalPeriodServiceRuleFrTest extends FiscalPeriodServiceImplTest {
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/FiscalPeriodServiceRuleFrTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ImportServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ImportServiceRuleFrTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ImportServiceRuleFrTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: ImportServiceRuleFrTest.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -39,10 +39,10 @@
* Plus ajout de test specific à la locale FR.
*
* @author chatellier
- * @version $Revision: 3585 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-08 16:52:14 +0200 (mer. 08 août 2012) $
- * By : $Author: tchemit $
+ * Last update : $Date$
+ * By : $Author$
*/
public class ImportServiceRuleFrTest extends ImportServiceImplTest {
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ImportServiceRuleFrTest.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ReportServiceRuleFrTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ReportServiceRuleFrTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ReportServiceRuleFrTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: ReportServiceRuleFrTest.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -38,10 +38,10 @@
* Plus ajout de test specific à la locale FR.
*
* @author chatellier
- * @version $Revision: 3585 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-08 16:52:14 +0200 (mer. 08 août 2012) $
- * By : $Author: tchemit $
+ * Last update : $Date$
+ * By : $Author$
*
* FIXME echatellier 20120424 fix parent test first
*/
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/ReportServiceRuleFrTest.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/TestAccountingRules.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/TestAccountingRules.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/TestAccountingRules.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: TestAccountingRules.java 3777 2014-04-14 07:29:08Z sbavencoff $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-business/src/test/java/org/chorem/lim… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -49,10 +49,10 @@
* et FranceAccountingRules une autre fois.
*
* @author chatellier
- * @version $Revision: 3777 $
+ * @version $Revision$
*
- * Last update : $Date: 2014-04-14 09:29:08 +0200 (lun. 14 avril 2014) $
- * By : $Author: sbavencoff $
+ * Last update : $Date$
+ * By : $Author$
*/
@Ignore
public class TestAccountingRules extends DefaultAccountingRules {
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/business/accountingrules/TestAccountingRules.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business/src/test/java/org/chorem/lima/entity/FinancialTransactionDAOTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/entity/FinancialTransactionDAOTest.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business/src/test/java/org/chorem/lima/entity/FinancialTransactionDAOTest.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,7 +1,7 @@
/*
* #%L
- * $Id: FinancialTransactionDAOTest.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-business/src/test/java/org/chorem… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 Codelutin, Chatellier Eric
* %%
@@ -34,10 +34,10 @@
* Test for {@link FinancialTransactionTopiaDao}.
*
* @author chatellier
- * @version $Revision: 3585 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-08 16:52:14 +0200 (mer. 08 août 2012) $
- * By : $Author: tchemit $
+ * Last update : $Date$
+ * By : $Author$
*/
public class FinancialTransactionDAOTest extends AbstractLimaTest {
Property changes on: trunk/lima-business/src/test/java/org/chorem/lima/entity/FinancialTransactionDAOTest.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/lima-business/src/test/resources/import/bcr_developed.csv
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/lima-business/src/test/resources/import/vat_shortened.csv
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/LimaTechnicalException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/AccountException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/AfterLastFiscalPeriodException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/AfterLastFiscalPeriodException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/AfterLastFiscalPeriodException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import java.util.Date;
/**
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/AfterLastFiscalPeriodException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistAccountException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialStatement.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialStatement.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialStatement.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
/**
* Created by davidcosse on 28/07/14.
*/
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialStatement.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistVatStatement.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistVatStatement.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistVatStatement.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
/**
* Created by davidcosse on 28/07/14.
*/
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistVatStatement.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyLockedFiscalPeriodException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyLockedFiscalPeriodException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyLockedFiscalPeriodException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.FiscalPeriod;
/**
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyLockedFiscalPeriodException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/BeforeFirstFiscalPeriodException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/BeforeFirstFiscalPeriodException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/BeforeFirstFiscalPeriodException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import java.util.Date;
/**
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/BeforeFirstFiscalPeriodException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/BeginAfterEndFiscalPeriodException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/BeginAfterEndFiscalPeriodException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/BeginAfterEndFiscalPeriodException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.FiscalPeriod;
/**
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/BeginAfterEndFiscalPeriodException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/ClosedPeriodicEntryBookException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/ClosedPeriodicEntryBooksException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/ClosedPeriodicEntryBooksException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/ClosedPeriodicEntryBooksException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.ClosedPeriodicEntryBook;
import java.util.Collection;
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/ClosedPeriodicEntryBooksException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/DateException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/DateException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/DateException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import java.util.Date;
/**
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/DateException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/EntriesException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/EntriesException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/EntriesException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.Entry;
import java.util.Collection;
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/EntriesException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/EntryBookException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/FinancialPeriodException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/FinancialPeriodException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/FinancialPeriodException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.FinancialPeriod;
/**
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/FinancialPeriodException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/FinancialTransactionsException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/FinancialTransactionsException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/FinancialTransactionsException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.FinancialTransaction;
import java.util.Collection;
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/FinancialTransactionsException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/FiscalPeriodException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportEbpException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportEbpException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportEbpException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -25,7 +25,7 @@
/**
* @author Sylvain Bavencoff <bavencoff(a)codelutin.com>
*/
-public class ImportEbpException extends Exception {
+public class ImportEbpException extends LimaException {
public ImportEbpException(String message) {
super(message);
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportEbpException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import java.util.HashMap;
import java.util.Map;
/**
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportResult.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportResult.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportResult.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import java.io.Serializable;
/**
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/ImportResult.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/InvalidAccountNumberException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/LastUnlockedFiscalPeriodException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/LastUnlockedFiscalPeriodException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/LastUnlockedFiscalPeriodException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.FiscalPeriod;
/**
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/LastUnlockedFiscalPeriodException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/LimaException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/LimaException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/LimaException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -53,6 +53,23 @@
}
/**
+ * Constructs a new exception with specified message.
+ *
+ */
+ public LimaException(String message) {
+ super(message);
+ }
+
+ /**
+ * Constructs a new exception with specified message and cause.
+ * @param message
+ * @param cause
+ */
+ public LimaException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ /**
* Constructs a new exception with the specified cause.
*
* @param cause cause
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/LockedEntryBookException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/LockedEntryBookException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/LockedEntryBookException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.ClosedPeriodicEntryBook;
/**
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/LockedEntryBookException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/LockedFinancialPeriodException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/LockedFinancialPeriodException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/LockedFinancialPeriodException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.FinancialPeriod;
/**
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/LockedFinancialPeriodException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/MoreOneUnlockFiscalPeriodException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/MoreOneUnlockFiscalPeriodException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/MoreOneUnlockFiscalPeriodException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
/**
* @author Sylvain Bavencoff <bavencoff(a)codelutin.com>
*/
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/MoreOneUnlockFiscalPeriodException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/NoEmptyFiscalPeriodException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/NoEmptyFiscalPeriodException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/NoEmptyFiscalPeriodException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.FinancialTransaction;
import java.util.Collection;
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/NoEmptyFiscalPeriodException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/NoFoundFinancialPeriodException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/NoFoundFinancialPeriodException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/NoFoundFinancialPeriodException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import java.util.Date;
/**
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/NoFoundFinancialPeriodException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotAllowedLabel.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotAllowedLabel.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotAllowedLabel.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
/**
* Created by davidcosse on 31/07/14.
*/
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotAllowedLabel.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotBeginNextDayOfLastFiscalPeriodException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotBeginNextDayOfLastFiscalPeriodException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotBeginNextDayOfLastFiscalPeriodException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.FiscalPeriod;
/**
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotBeginNextDayOfLastFiscalPeriodException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotLockedClosedPeriodicEntryBooksException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotLockedClosedPeriodicEntryBooksException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotLockedClosedPeriodicEntryBooksException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.ClosedPeriodicEntryBook;
import java.util.Collection;
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotLockedClosedPeriodicEntryBooksException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedEntriesException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedEntriesException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedEntriesException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.Entry;
import java.util.Collection;
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedEntriesException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedFinancialTransactionsException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedFinancialTransactionsException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedFinancialTransactionsException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.FinancialTransaction;
import java.util.Collection;
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedFinancialTransactionsException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnfilledEntriesException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnfilledEntriesException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnfilledEntriesException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.Entry;
import java.util.Collection;
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnfilledEntriesException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/UsedAccountException.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/UsedEntryBookException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/WithoutEntryBookFinancialTransactionsException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/WithoutEntryBookFinancialTransactionsException.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/WithoutEntryBookFinancialTransactionsException.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.business;
+/*
+ * #%L
+ * Lima :: business API
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import org.chorem.lima.entity.FinancialTransaction;
import java.util.Collection;
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/WithoutEntryBookFinancialTransactionsException.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportService.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportService.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/ImportService.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -54,15 +54,6 @@
String importEntryBookFromEbp(String datas) throws ImportEbpException;
/**
- * Import entries as EBP import.
- *
- * @param data import file content as string (remote service can't take File)
- * @return result log
- * @throws LimaException
- */
- String importEntriesFromEbp(String data) throws ImportEbpException;
-
- /**
* Import content as CSV depending on import type.
*
* @param data import file content as string (remote service can't take File)
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/NewImportService.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/NewImportService.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/NewImportService.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -23,6 +23,7 @@
*/
import org.chorem.lima.business.AlreadyExistAccountException;
+import org.chorem.lima.business.ImportEbpException;
import org.chorem.lima.business.ImportResult;
import org.chorem.lima.business.InvalidAccountNumberException;
@@ -46,4 +47,6 @@
ImportResult importVATStatementsAsCSV(String contents);
List<ImportResult> importBackup(String entryBooks, String transactions, String fiscalPeriods, String accounts, String entries) throws AlreadyExistAccountException, InvalidAccountNumberException;
+
+ ImportResult importEntriesFromEbp(String datas) throws ImportEbpException;
}
Property changes on: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/NewImportService.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Property changes on: trunk/lima-callao/src/main/java/org/chorem/lima/DefaultServiceContext.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/lima-callao/src/main/java/org/chorem/lima/ServiceContext.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-callao/src/main/java/org/chorem/lima/entity/AccountTopiaDao.java
===================================================================
--- trunk/lima-callao/src/main/java/org/chorem/lima/entity/AccountTopiaDao.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-callao/src/main/java/org/chorem/lima/entity/AccountTopiaDao.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima callao
*
- * $Id: AccountDAOImpl.java 3613 2012-08-20 11:38:22Z mallon $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-callao/src/main/java/org/chorem/l… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-callao/src/main/java/org/chorem/lima/entity/AccountTopiaDao.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-callao/src/main/java/org/chorem/lima/entity/ClosedPeriodicEntryBookTopiaDao.java
===================================================================
--- trunk/lima-callao/src/main/java/org/chorem/lima/entity/ClosedPeriodicEntryBookTopiaDao.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-callao/src/main/java/org/chorem/lima/entity/ClosedPeriodicEntryBookTopiaDao.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima callao
*
- * $Id: ClosedPeriodicEntryBookDAOImpl.java 3476 2012-06-26 15:48:13Z echatellier $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-callao/src/main/java/org/chorem/lima/… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-callao/src/main/java/org/chorem/lima/entity/ClosedPeriodicEntryBookTopiaDao.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-callao/src/main/java/org/chorem/lima/entity/EntryTopiaDao.java
===================================================================
--- trunk/lima-callao/src/main/java/org/chorem/lima/entity/EntryTopiaDao.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-callao/src/main/java/org/chorem/lima/entity/EntryTopiaDao.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima callao
* *
- * $Id: EntryDAOImpl.java 3783 2014-05-06 16:47:18Z dcosse $
- * $HeadURL: http://svn.chorem.org/lima/trunk/lima-callao/src/main/java/org/chorem/lima/… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-callao/src/main/java/org/chorem/lima/entity/EntryTopiaDao.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialPeriodTopiaDao.java
===================================================================
--- trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialPeriodTopiaDao.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialPeriodTopiaDao.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima callao
*
- * $Id: FinancialPeriodDAOImpl.java 3476 2012-06-26 15:48:13Z echatellier $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-callao/src/main/java/org/chorem/l… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
* %%
Property changes on: trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialPeriodTopiaDao.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialStatementTopiaDao.java
===================================================================
--- trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialStatementTopiaDao.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialStatementTopiaDao.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima callao
*
- * $Id: FinancialStatementDAOImpl.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-callao/src/main/java/org/chorem/l… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 CodeLutin, Chatellier Eric
* %%
@@ -32,10 +32,10 @@
* Ajout de requetes specifiques aux {@link FinancialStatement} sur le DAO.
*
* @author chatellier
- * @version $Revision: 3585 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-08 16:52:14 +0200 (mer. 08 août 2012) $
- * By : $Author: tchemit $
+ * Last update : $Date$
+ * By : $Author$
*/
public class FinancialStatementTopiaDao extends AbstractFinancialStatementTopiaDao<FinancialStatement> {
Property changes on: trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialStatementTopiaDao.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialTransactionTopiaDao.java
===================================================================
--- trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialTransactionTopiaDao.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialTransactionTopiaDao.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima callao
*
- * $Id: FinancialTransactionDAOImpl.java 3688 2013-06-27 13:12:22Z Bavencoff $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-callao/src/main/java/org/chorem/l… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 CodeLutin, Chatellier Eric
* %%
@@ -40,10 +40,10 @@
* Ajout de requetes specifiques aux financial transaction sur le DAO.
*
* @author chatellier
- * @version $Revision: 3688 $
+ * @version $Revision$
*
- * Last update : $Date: 2013-06-27 15:12:22 +0200 (jeu. 27 juin 2013) $
- * By : $Author: Bavencoff $
+ * Last update : $Date$
+ * By : $Author$
*/
public class FinancialTransactionTopiaDao extends AbstractFinancialTransactionTopiaDao<FinancialTransaction> {
Property changes on: trunk/lima-callao/src/main/java/org/chorem/lima/entity/FinancialTransactionTopiaDao.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-callao/src/main/java/org/chorem/lima/entity/FiscalPeriodTopiaDao.java
===================================================================
--- trunk/lima-callao/src/main/java/org/chorem/lima/entity/FiscalPeriodTopiaDao.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-callao/src/main/java/org/chorem/lima/entity/FiscalPeriodTopiaDao.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima callao
*
- * $Id: FiscalPeriodDAOImpl.java 3598 2012-08-10 16:31:26Z mallon $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-callao/src/main/java/org/chorem/l… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 CodeLutin, Chatellier Eric
* %%
@@ -29,10 +29,10 @@
* Fiscal period entity DAO.
*
* @author chatellier
- * @version $Revision: 3598 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-10 18:31:26 +0200 (ven. 10 août 2012) $
- * By : $Author: mallon $
+ * Last update : $Date$
+ * By : $Author$
*/
public class FiscalPeriodTopiaDao extends AbstractFiscalPeriodTopiaDao<FiscalPeriod> {
Property changes on: trunk/lima-callao/src/main/java/org/chorem/lima/entity/FiscalPeriodTopiaDao.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/lima-callao/src/main/java/org/chorem/lima/entity/LimaCallaoTopiaPersistenceContext.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-callao/src/main/java/org/chorem/lima/entity/VatStatementTopiaDao.java
===================================================================
--- trunk/lima-callao/src/main/java/org/chorem/lima/entity/VatStatementTopiaDao.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-callao/src/main/java/org/chorem/lima/entity/VatStatementTopiaDao.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -2,8 +2,8 @@
* #%L
* Lima callao
*
- * $Id: VatStatementDAOImpl.java 3585 2012-08-08 14:52:14Z tchemit $
- * $HeadURL: http://svn.chorem.org/svn/lima/trunk/lima-callao/src/main/java/org/chorem/l… $
+ * $Id$
+ * $HeadURL$
* %%
* Copyright (C) 2012 CodeLutin, Chatellier Eric
* %%
@@ -34,10 +34,10 @@
* Ajout de requetes specifiques aux {@code VatStatement} sur le DAO.
*
* @author chatellier
- * @version $Revision: 3585 $
+ * @version $Revision$
*
- * Last update : $Date: 2012-08-08 16:52:14 +0200 (mer. 08 août 2012) $
- * By : $Author: tchemit $
+ * Last update : $Date$
+ * By : $Author$
*/
public class VatStatementTopiaDao extends AbstractVatStatementTopiaDao<VatStatement> {
Property changes on: trunk/lima-callao/src/main/java/org/chorem/lima/entity/VatStatementTopiaDao.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-callao/src/main/xmi/accounting-model.zargo
===================================================================
(Binary files differ)
Property changes on: trunk/lima-swing/src/main/assembly/lima.bat
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.css
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.css 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.css 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,3 +1,24 @@
+/*
+ * #%L
+ * Lima :: Swing
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
#tab {
opaque : false;
}
Property changes on: trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.css
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainView.css
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainView.css 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainView.css 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,3 +1,24 @@
+/*
+ * #%L
+ * Lima :: Swing
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
#mainView {
title : "lima.ui.mainview.title";
Property changes on: trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainView.css
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/celleditor/AutoCompleteTableCellEditor.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/celleditor/AutoCompleteTableCellEditor.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/celleditor/AutoCompleteTableCellEditor.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,5 +1,27 @@
package org.chorem.lima.ui.celleditor;
+/*
+ * #%L
+ * Lima :: Swing
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import org.jdesktop.swingx.autocomplete.AutoCompleteDecorator;
Property changes on: trunk/lima-swing/src/main/java/org/chorem/lima/ui/celleditor/AutoCompleteTableCellEditor.java
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/HomeView.css
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/HomeView.css 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/HomeView.css 2014-07-31 15:10:21 UTC (rev 3883)
@@ -1,3 +1,24 @@
+/*
+ * #%L
+ * Lima :: Swing
+ * %%
+ * Copyright (C) 2008 - 2014 CodeLutin
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
.infoPanel {
Property changes on: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/HomeView.css
___________________________________________________________________
Added: svn:eol-style
+ native
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java 2014-07-31 15:04:52 UTC (rev 3882)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java 2014-07-31 15:10:21 UTC (rev 3883)
@@ -230,11 +230,13 @@
//For windows ebp
datas = extractFile(filePath, EncodingEnum.ISOLATIN1.getEncoding());
result = importService.importAccountsChartFromEbp(datas);
+ // TODO DCossé 24/07/14 change result
+ result = "SUCCESS";
break;
case EBP_ENTRIES_IMPORT:
//For windows ebp
datas = extractFile(filePath, EncodingEnum.ISOLATIN1.getEncoding());
- result = importService.importEntriesFromEbp(datas);
+ importResult = newImportService.importEntriesFromEbp(datas);
break;
case EBP_ENTRYBOOKS_IMPORT:
datas = extractFile(filePath, EncodingEnum.ISOLATIN1.getEncoding());
1
0
r3882 - in trunk/lima-swing/src/main: java/org/chorem/lima/ui/account java/org/chorem/lima/ui/financialstatementchart java/org/chorem/lima/ui/fiscalperiod java/org/chorem/lima/ui/identity java/org/chorem/lima/ui/opening java/org/chorem/lima/ui/vatchart java/org/chorem/lima/util resources/i18n
by sbavencoff@users.chorem.org 31 Jul '14
by sbavencoff@users.chorem.org 31 Jul '14
31 Jul '14
Author: sbavencoff
Date: 2014-07-31 17:04:52 +0200 (Thu, 31 Jul 2014)
New Revision: 3882
Url: http://forge.chorem.org/projects/lima/repository/revisions/3882
Log:
refs #875 #1043 : identity
Added:
trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/CreateIdentityPanel.css
trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/CreateIdentityPanelHandler.java
Modified:
trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountForm.jaxx
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementHeaderForm.jaxx
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementImportForm.jaxx
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementMovementForm.jaxx
trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/AddPeriod.jaxx
trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/RetainedEarningsEntryBookForm.jaxx
trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityForm.css
trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/CreateIdentityPanel.jaxx
trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartImportForm.jaxx
trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartMovementForm.jaxx
trunk/lima-swing/src/main/java/org/chorem/lima/util/ReportDialogView.jaxx
trunk/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties
trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountForm.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountForm.jaxx 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/account/AccountForm.jaxx 2014-07-31 15:04:52 UTC (rev 3882)
@@ -69,8 +69,8 @@
<row>
<cell columns="2">
<JPanel layout='{new GridLayout(1,0)}'>
- <JButton text="lima.common.cancel" onActionPerformed="dispose()"/>
- <JButton id="ok" text="lima.common.ok"
+ <JButton text="lima.cancel" onActionPerformed="dispose()"/>
+ <JButton id="ok" text="lima.ok"
onActionPerformed="handler.addAccount(this)"/>
</JPanel>
</cell>
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementHeaderForm.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementHeaderForm.jaxx 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementHeaderForm.jaxx 2014-07-31 15:04:52 UTC (rev 3882)
@@ -97,10 +97,10 @@
</row>
<row>
<cell fill="none">
- <JButton text="lima.common.cancel" onActionPerformed="performCancel()"/>
+ <JButton text="lima.cancel" onActionPerformed="performCancel()"/>
</cell>
<cell fill="none">
- <JButton id="ok" text="lima.common.ok" onActionPerformed="dispose()"/>
+ <JButton id="ok" text="lima.ok" onActionPerformed="dispose()"/>
</cell>
</row>
</Table>
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementImportForm.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementImportForm.jaxx 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementImportForm.jaxx 2014-07-31 15:04:52 UTC (rev 3882)
@@ -95,11 +95,11 @@
<Table>
<row>
<cell fill="none">
- <JButton text="lima.common.cancel"
+ <JButton text="lima.cancel"
onActionPerformed="performCancel()"/>
</cell>
<cell fill="none">
- <JButton id="ok" text="lima.common.ok"
+ <JButton id="ok" text="lima.ok"
onActionPerformed="dispose()"/>
</cell>
</row>
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementMovementForm.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementMovementForm.jaxx 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementMovementForm.jaxx 2014-07-31 15:04:52 UTC (rev 3882)
@@ -110,10 +110,10 @@
</row>
<row>
<cell fill="none">
- <JButton text="lima.common.cancel" onActionPerformed="performCancel()"/>
+ <JButton text="lima.cancel" onActionPerformed="performCancel()"/>
</cell>
<cell fill="none">
- <JButton id="ok" text="lima.common.ok" onActionPerformed="dispose()"/>
+ <JButton id="ok" text="lima.ok" onActionPerformed="dispose()"/>
</cell>
</row>
</Table>
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/AddPeriod.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/AddPeriod.jaxx 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/AddPeriod.jaxx 2014-07-31 15:04:52 UTC (rev 3882)
@@ -68,11 +68,11 @@
<Table fill="none" anchor="center" weighty="1">
<row>
<cell>
- <JButton id="cancelButton" text="lima.common.cancel"
+ <JButton id="cancelButton" text="lima.cancel"
onActionPerformed="performCancel()"/>
</cell>
<cell>
- <JButton id="okButton" text="lima.common.ok"
+ <JButton id="okButton" text="lima.ok"
onActionPerformed="performOk()"/>
</cell>
</row>
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/RetainedEarningsEntryBookForm.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/RetainedEarningsEntryBookForm.jaxx 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/fiscalperiod/RetainedEarningsEntryBookForm.jaxx 2014-07-31 15:04:52 UTC (rev 3882)
@@ -135,11 +135,11 @@
</row>
<row>
<cell>
- <JButton id="cancelButton" text="lima.common.cancel"
+ <JButton id="cancelButton" text="lima.cancel"
onActionPerformed="performCancel()"/>
</cell>
<cell>
- <JButton id="okButton" text="lima.common.ok"
+ <JButton id="okButton" text="lima.ok"
onActionPerformed="dispose()"/>
</cell>
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityForm.css
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityForm.css 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityForm.css 2014-07-31 15:04:52 UTC (rev 3882)
@@ -92,9 +92,9 @@
}
#cancel {
- text : "lima.common.cancel";
+ text : "lima.cancel";
}
#ok {
- text : "lima.common.ok";
+ text : "lima.ok";
}
\ No newline at end of file
Added: trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/CreateIdentityPanel.css
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/CreateIdentityPanel.css (rev 0)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/CreateIdentityPanel.css 2014-07-31 15:04:52 UTC (rev 3882)
@@ -0,0 +1,87 @@
+#nameLabel {
+ text : "lima.identity.name";
+}
+
+#nameTextField {
+ text : {handler.getIdentity().getName()};
+}
+
+#descriptionLabel {
+ text : "lima.identity.description";
+}
+
+#descriptionTextField {
+ text : {handler.getIdentity().getDescription()};
+}
+
+#addressLabel {
+ text : "lima.identity.address";
+}
+
+#addressTextField {
+ text : {handler.getIdentity().getAddress()};
+}
+
+#address2Label {
+ text : "lima.identity.address2";
+}
+
+#address2TextField {
+ text : {handler.getIdentity().getAddress2()};
+}
+
+#zipCodeLabel {
+ text : "lima.identity.zipCode";
+}
+
+#zipCodeTextField {
+ text : {handler.getIdentity().getZipCode()};
+}
+
+#cityLabel {
+ text : "lima.identity.city";
+}
+
+#cityTextField {
+ text : {handler.getIdentity().getCity()};
+}
+
+#businessNumberLabel {
+ text : "lima.identity.businessNumber";
+}
+
+#businessNumberTextField {
+ text : {handler.getIdentity().getBusinessNumber()};
+}
+
+#vatNumberLabel {
+ text : "lima.identity.vatNumber";
+}
+
+#vatNumberTextField {
+ text : {handler.getIdentity().getVatNumber()};
+}
+
+#classificationCodeLabel {
+ text : "lima.identity.classificationCode";
+}
+
+#classificationCodeTextField {
+ text : {handler.getIdentity().getClassificationCode()};
+}
+
+#phoneNumberLabel {
+ text : "lima.identity.phoneNumber";
+}
+
+#phoneNumberTextField {
+ text : {handler.getIdentity().getPhoneNumber()};
+}
+
+#emailLabel {
+ text : "lima.identity.email";
+}
+
+#emailTextField {
+ text : {handler.getIdentity().getEmail()};
+}
\ No newline at end of file
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/CreateIdentityPanel.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/CreateIdentityPanel.jaxx 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/CreateIdentityPanel.jaxx 2014-07-31 15:04:52 UTC (rev 3882)
@@ -24,130 +24,98 @@
-->
<JPanel>
<import>
- javax.swing.text.Document
- org.chorem.lima.entity.Identity
- org.chorem.lima.ui.identity.IdentityHandler
+ org.chorem.lima.ui.opening.CreateIdentityPanelHandler
</import>
- <IdentityHandler id="handler" javaBean="new IdentityHandler()"/>
- <Identity id="identity" javaBean='handler.getIdentity()'/>
+ <CreateIdentityPanelHandler id="handler" javaBean="new CreateIdentityPanelHandler(this)"/>
<Table>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.name"/>
+ <JLabel id="nameLabel" />
</cell>
<cell fill="horizontal">
- <JTextField id="nameTextField" text="{getIdentity().getName()}"/>
- <Document javaBean="getNameTextField().getDocument()"
- onInsertUpdate='getIdentity().setName(getNameTextField().getText())'
- onRemoveUpdate='getIdentity().setName(getNameTextField().getText())'/>
+ <JTextField id="nameTextField" />
</cell>
+ </row>
+ <row>
<cell fill="horizontal">
- <JLabel text="lima.identity.description"/>
+ <JLabel id="descriptionLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="descriptionTextField"
- text="{getIdentity().getDescription()}"/>
- <Document javaBean="getDescriptionTextField().getDocument()"
- onInsertUpdate='getIdentity().setDescription(getDescriptionTextField().getText())'
- onRemoveUpdate='getIdentity().setDescription(getDescriptionTextField().getText())'/>
+ <JTextField id="descriptionTextField"/>
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.address"/>
+ <JLabel id="addressLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="addressTextField" text="{getIdentity().getAddress()}"/>
- <Document javaBean="getAddressTextField().getDocument()"
- onInsertUpdate='getIdentity().setAddress(getAddressTextField().getText())'
- onRemoveUpdate='getIdentity().setAddress(getAddressTextField().getText())'/>
+ <JTextField id="addressTextField" />
</cell>
+ </row>
+ <row>
<cell fill="horizontal">
- <JLabel text="lima.identity.address2"/>
+ <JLabel id="address2Label"/>
</cell>
<cell fill="horizontal">
- <JTextField id="address2TextField"
- text="{getIdentity().getAddress2()}"/>
- <Document javaBean="getAddress2TextField().getDocument()"
- onInsertUpdate='getIdentity().setAddress2(getAddress2TextField().getText())'
- onRemoveUpdate='getIdentity().setAddress2(getAddress2TextField().getText())'/>
+ <JTextField id="address2TextField"/>
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.zipCode"/>
+ <JLabel id="zipCodeLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="zipCodeTextField" text="{getIdentity().getZipCode()}"/>
- <Document javaBean="getZipCodeTextField().getDocument()"
- onInsertUpdate='getIdentity().setZipCode(getZipCodeTextField().getText())'
- onRemoveUpdate='getIdentity().setZipCode(getZipCodeTextField().getText())'/>
+ <JTextField id="zipCodeTextField"/>
</cell>
+ </row>
+ <row>
<cell fill="horizontal">
<JLabel text="lima.identity.city"/>
</cell>
<cell fill="horizontal">
- <JTextField id="cityTextField" text="{getIdentity().getCity()}"/>
- <Document javaBean="getCityTextField().getDocument()"
- onInsertUpdate='getIdentity().setCity(getCityTextField().getText())'
- onRemoveUpdate='getIdentity().setCity(getCityTextField().getText())'/>
+ <JTextField id="cityTextField" />
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.businessNumber"/>
+ <JLabel id="businessNumberLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="businessNumberTextField"
- text="{getIdentity().getBusinessNumber()}"/>
- <Document javaBean="getBusinessNumberTextField().getDocument()"
- onInsertUpdate='getIdentity().setBusinessNumber(getBusinessNumberTextField().getText())'
- onRemoveUpdate='getIdentity().setBusinessNumber(getBusinessNumberTextField().getText())'/>
+ <JTextField id="businessNumberTextField"/>
</cell>
+ </row>
+ <row>
<cell fill="horizontal">
- <JLabel text="lima.identity.vatNumber"/>
+ <JLabel id="vatNumberLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="vatNumberTextField"
- text="{getIdentity().getVatNumber()}"/>
- <Document javaBean="getVatNumberTextField().getDocument()"
- onInsertUpdate='getIdentity().setVatNumber(getVatNumberTextField().getText())'
- onRemoveUpdate='getIdentity().setVatNumber(getVatNumberTextField().getText())'/>
+ <JTextField id="vatNumberTextField"/>
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.classificationCode"/>
+ <JLabel id="classificationCodeLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="classificationCodeTextField"
- text="{getIdentity().getClassificationCode()}"/>
- <Document javaBean="getClassificationCodeTextField().getDocument()"
- onInsertUpdate='getIdentity().setClassificationCode(getClassificationCodeTextField().getText())'
- onRemoveUpdate='getIdentity().setClassificationCode(getClassificationCodeTextField().getText())'/>
+ <JTextField id="classificationCodeTextField"/>
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.phoneNumber"/>
+ <JLabel id="phoneNumberLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="phoneNumberTextField"
- text="{getIdentity().getPhoneNumber()}"/>
- <Document javaBean="getPhoneNumberTextField().getDocument()"
- onInsertUpdate='getIdentity().setPhoneNumber(getPhoneNumberTextField().getText())'
- onRemoveUpdate='getIdentity().setPhoneNumber(getPhoneNumberTextField().getText())'/>
+ <JTextField id="phoneNumberTextField"/>
</cell>
+ </row>
+ <row>
<cell fill="horizontal">
- <JLabel text="lima.identity.email"/>
+ <JLabel id="emailLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="emailTextField" text="{getIdentity().getEmail()}"/>
- <Document javaBean="getEmailTextField().getDocument()"
- onInsertUpdate='getIdentity().setEmail(getEmailTextField().getText())'
- onRemoveUpdate='getIdentity().setEmail(getEmailTextField().getText())'/>
+ <JTextField id="emailTextField" />
</cell>
</row>
</Table>
Added: trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/CreateIdentityPanelHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/CreateIdentityPanelHandler.java (rev 0)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/CreateIdentityPanelHandler.java 2014-07-31 15:04:52 UTC (rev 3882)
@@ -0,0 +1,56 @@
+package org.chorem.lima.ui.opening;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.business.api.IdentityService;
+import org.chorem.lima.entity.Identity;
+import org.chorem.lima.entity.IdentityImpl;
+import org.chorem.lima.service.LimaServiceFactory;
+import org.chorem.lima.ui.identity.IdentityHandler;
+
+/**
+ * @author Sylvain Bavencoff <bavencoff(a)codelutin.com>
+ */
+public class CreateIdentityPanelHandler {
+
+ protected IdentityService identityService;
+
+ protected CreateIdentityPanel view;
+
+ private static final Log log = LogFactory.getLog(IdentityHandler.class);
+
+
+ public CreateIdentityPanelHandler(CreateIdentityPanel view) {
+ this.view = view;
+ identityService =
+ LimaServiceFactory.getService(
+ IdentityService.class);
+ }
+
+ public Identity getIdentity() {
+ Identity identity = identityService.getIdentity();
+ if (identity == null) {
+ identity = new IdentityImpl();
+ }
+ return identity;
+ }
+
+ public void updateIdentity(){
+ Identity identity = getIdentity();
+
+ identity.setName(view.getNameTextField().getText());
+ identity.setDescription(view.getDescriptionTextField().getText());
+ identity.setAddress(view.getAddressTextField().getText());
+ identity.setAddress2(view.getAddress2TextField().getText());
+ identity.setZipCode(view.getZipCodeTextField().getText());
+ identity.setCity(view.getCityTextField().getText());
+ identity.setBusinessNumber(view.getBusinessNumberTextField().getText());
+ identity.setVatNumber(view.getVatNumberTextField().getText());
+ identity.setClassificationCode(view.getClassificationCodeTextField().getText());
+ identity.setPhoneNumber(view.getPhoneNumberTextField().getText());
+ identity.setEmail(view.getEmailTextField().getText());
+
+ identityService.updateIdentity(identity);
+ }
+
+}
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningViewHandler.java 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningViewHandler.java 2014-07-31 15:04:52 UTC (rev 3882)
@@ -37,13 +37,13 @@
import org.chorem.lima.enums.ImportExportEnum;
import org.chorem.lima.enums.VatStatementsChartEnum;
import org.chorem.lima.service.LimaServiceFactory;
-import org.chorem.lima.ui.identity.IdentityHandler;
import org.chorem.lima.ui.importexport.ImportExport;
-import javax.swing.*;
+import javax.swing.BorderFactory;
+import javax.swing.JPanel;
import javax.swing.border.Border;
import javax.swing.border.EmptyBorder;
-import java.awt.*;
+import java.awt.Color;
import static org.nuiton.i18n.I18n.t;
@@ -98,8 +98,7 @@
step++;
break;
case 1:
- IdentityHandler identityHandler = new IdentityHandler();
- identityHandler.updateIdentity(idPanel.getIdentity());
+ idPanel.getHandler().updateIdentity();
//refresh UI
view.getIdentityIcon().setBorder(noBorder);
view.getAccountsIcon().setBorder(BorderFactory.createLineBorder(green, 2));
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartImportForm.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartImportForm.jaxx 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartImportForm.jaxx 2014-07-31 15:04:52 UTC (rev 3882)
@@ -94,11 +94,11 @@
<Table>
<row>
<cell fill="none">
- <JButton text="lima.common.cancel"
+ <JButton text="lima.cancel"
onActionPerformed="performCancel()"/>
</cell>
<cell fill="none">
- <JButton id="ok" text="lima.common.ok"
+ <JButton id="ok" text="lima.ok"
onActionPerformed="dispose()"/>
</cell>
</row>
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartMovementForm.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartMovementForm.jaxx 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartMovementForm.jaxx 2014-07-31 15:04:52 UTC (rev 3882)
@@ -96,10 +96,10 @@
</row>
<row>
<cell fill="none">
- <JButton text="lima.common.cancel" onActionPerformed="performCancel()"/>
+ <JButton text="lima.cancel" onActionPerformed="performCancel()"/>
</cell>
<cell fill="none">
- <JButton id="ok" text="lima.common.ok" onActionPerformed="dispose()"/>
+ <JButton id="ok" text="lima.ok" onActionPerformed="dispose()"/>
</cell>
</row>
</Table>
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/util/ReportDialogView.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/util/ReportDialogView.jaxx 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/util/ReportDialogView.jaxx 2014-07-31 15:04:52 UTC (rev 3882)
@@ -42,7 +42,7 @@
</row>
<row anchor="east">
<cell>
- <JButton id="okButton" text="lima.common.ok"
+ <JButton id="okButton" text="lima.ok"
onActionPerformed="performOk()"/>
</cell>
</row>
Modified: trunk/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties
===================================================================
--- trunk/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties 2014-07-31 15:04:52 UTC (rev 3882)
@@ -20,6 +20,7 @@
lima.balance.documentcreationerror=Enable to create document
lima.balance.documentcreationfiscalerror=Can't create document on an open fiscal year
lima.balance.listerror=Can't get entries list
+lima.cancel=Cancel
lima.charts.account=Accounts chart
lima.charts.account.base=Base accountchart
lima.charts.account.developed=Developped accountchart
@@ -57,7 +58,6 @@
lima.common.begindate=Begin
lima.common.buttonback=←
lima.common.buttonnext=→
-lima.common.cancel=Cancel
lima.common.closed=Closed
lima.common.code=Code
lima.common.confirmation=Confirmation
@@ -74,7 +74,6 @@
lima.common.label=Label
lima.common.movmentedfilter=Accounts filtered
lima.common.new=New
-lima.common.ok=OK
lima.common.open=Open
lima.common.paste=Paste
lima.common.quit=Exit
@@ -369,6 +368,7 @@
lima.message.help.usage=Options (set with --option <key> <value>\:
lima.misc.supportemail.description=Support email
lima.misc.supportemail.label=
+lima.ok=OK
lima.openejb.remotemode.description=
lima.openejb.remotemode.label=
lima.opening.accounts=Import accounts from\:
Modified: trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties
===================================================================
--- trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties 2014-07-31 13:05:12 UTC (rev 3881)
+++ trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties 2014-07-31 15:04:52 UTC (rev 3882)
@@ -9,6 +9,7 @@
lima.balance.documentcreationerror=Erreur lors de la création du document
lima.balance.documentcreationfiscalerror=Impossible de créer le document quand la période fiscale est ouverte
lima.balance.listerror=Erreur lors de la récupération des données de la liste
+lima.cancel=Annuler
lima.charts.account=Plan comptable
lima.charts.account.base=Plan comptable de base
lima.charts.account.developed=Plan comptable développé
@@ -46,7 +47,6 @@
lima.common.begindate=Début
lima.common.buttonback=←
lima.common.buttonnext=→
-lima.common.cancel=Annuler
lima.common.closed=Fermé
lima.common.code=Code
lima.common.confirmation=Confirmation
@@ -62,7 +62,6 @@
lima.common.label=Libellé
lima.common.movmentedfilter=Comptes mouvementés
lima.common.new=Nouveau
-lima.common.ok=OK
lima.common.open=Ouvert
lima.common.paste=Coller
lima.common.quit=Quitter
@@ -320,6 +319,7 @@
lima.message.help.usage=Options (set with --option <key> <value>\:
lima.misc.supportemail.description=Adresse email de support
lima.misc.supportemail.label=support
+lima.ok=OK
lima.openejb.remotemode.description=
lima.openejb.remotemode.label=
lima.opening.accounts=Importer le plan de comptes depuis \:
1
0
r3881 - trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity
by sbavencoff@users.chorem.org 31 Jul '14
by sbavencoff@users.chorem.org 31 Jul '14
31 Jul '14
Author: sbavencoff
Date: 2014-07-31 15:05:12 +0200 (Thu, 31 Jul 2014)
New Revision: 3881
Url: http://forge.chorem.org/projects/lima/repository/revisions/3881
Log:
refs #875 #1043 : identity
Added:
trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityForm.css
Modified:
trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityForm.jaxx
trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandler.java
Added: trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityForm.css
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityForm.css (rev 0)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityForm.css 2014-07-31 13:05:12 UTC (rev 3881)
@@ -0,0 +1,100 @@
+#dialog {
+ modal : true;
+ defaultCloseOperation : {JDialog.DO_NOTHING_ON_CLOSE};
+}
+
+#nameLabel {
+ text : "lima.identity.name";
+}
+
+#nameTextField {
+ text : {handler.getIdentity().getName()};
+}
+
+#descriptionLabel {
+ text : "lima.identity.description";
+}
+
+#descriptionTextField {
+ text : {handler.getIdentity().getDescription()};
+}
+
+#addressLabel {
+ text : "lima.identity.address";
+}
+
+#addressTextField {
+ text : {handler.getIdentity().getAddress()};
+}
+
+#address2Label {
+ text : "lima.identity.address2";
+}
+
+#address2TextField {
+ text : {handler.getIdentity().getAddress2()};
+}
+
+#zipCodeLabel {
+ text : "lima.identity.zipCode";
+}
+
+#zipCodeTextField {
+ text : {handler.getIdentity().getZipCode()};
+}
+
+#cityLabel {
+ text : "lima.identity.city";
+}
+
+#cityTextField {
+ text : {handler.getIdentity().getCity()};
+}
+
+#businessNumberLabel {
+ text : "lima.identity.businessNumber";
+}
+
+#businessNumberTextField {
+ text : {handler.getIdentity().getBusinessNumber()};
+}
+
+#vatNumberLabel {
+ text : "lima.identity.vatNumber";
+}
+
+#vatNumberTextField {
+ text : {handler.getIdentity().getVatNumber()};
+}
+
+#classificationCodeLabel {
+ text : "lima.identity.classificationCode";
+}
+
+#classificationCodeTextField {
+ text : {handler.getIdentity().getClassificationCode()};
+}
+
+#phoneNumberLabel {
+ text : "lima.identity.phoneNumber";
+}
+
+#phoneNumberTextField {
+ text : {handler.getIdentity().getPhoneNumber()};
+}
+
+#emailLabel {
+ text : "lima.identity.email";
+}
+
+#emailTextField {
+ text : {handler.getIdentity().getEmail()};
+}
+
+#cancel {
+ text : "lima.common.cancel";
+}
+
+#ok {
+ text : "lima.common.ok";
+}
\ No newline at end of file
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityForm.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityForm.jaxx 2014-07-31 12:01:23 UTC (rev 3880)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityForm.jaxx 2014-07-31 13:05:12 UTC (rev 3881)
@@ -23,84 +23,58 @@
#L%
-->
-<JDialog modal="true"
- defaultCloseOperation="{JDialog.DO_NOTHING_ON_CLOSE}"
- onWindowClosing="performCancel();">
+<JDialog id="dialog"
+ onWindowClosing="dispose();">
- <IdentityHandler id="handler" javaBean="new IdentityHandler()"/>
+ <IdentityHandler id="handler" javaBean="new IdentityHandler(this)"/>
<org.chorem.lima.entity.Identity id="identity"
javaBean='handler.getIdentity()'/>
<script>
<![CDATA[
getRootPane().setDefaultButton(ok);
- protected void performCancel() {
- setIdentity(null);
- dispose();
- }
]]>
</script>
<Table>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.name"/>
+ <JLabel id="nameLabel" />
</cell>
<cell fill="horizontal">
- <JTextField id="nameTextField" text="{getIdentity().getName()}"/>
- <javax.swing.text.Document javaBean="getNameTextField().getDocument()"
- onInsertUpdate='getIdentity().setName(getNameTextField().getText())'
- onRemoveUpdate='getIdentity().setName(getNameTextField().getText())'/>
+ <JTextField id="nameTextField" />
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.description"/>
+ <JLabel id="descriptionLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="descriptionTextField"
- text="{getIdentity().getDescription()}"/>
- <javax.swing.text.Document
- javaBean="getDescriptionTextField().getDocument()"
- onInsertUpdate='getIdentity().setDescription(getDescriptionTextField().getText())'
- onRemoveUpdate='getIdentity().setDescription(getDescriptionTextField().getText())'/>
+ <JTextField id="descriptionTextField"/>
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.address"/>
+ <JLabel id="addressLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="addressTextField" text="{getIdentity().getAddress()}"/>
- <javax.swing.text.Document
- javaBean="getAddressTextField().getDocument()"
- onInsertUpdate='getIdentity().setAddress(getAddressTextField().getText())'
- onRemoveUpdate='getIdentity().setAddress(getAddressTextField().getText())'/>
+ <JTextField id="addressTextField" />
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.address2"/>
+ <JLabel id="address2Label"/>
</cell>
<cell fill="horizontal">
- <JTextField id="address2TextField"
- text="{getIdentity().getAddress2()}"/>
- <javax.swing.text.Document
- javaBean="getAddress2TextField().getDocument()"
- onInsertUpdate='getIdentity().setAddress2(getAddress2TextField().getText())'
- onRemoveUpdate='getIdentity().setAddress2(getAddress2TextField().getText())'/>
+ <JTextField id="address2TextField"/>
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.zipCode"/>
+ <JLabel id="zipCodeLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="zipCodeTextField" text="{getIdentity().getZipCode()}"/>
- <javax.swing.text.Document
- javaBean="getZipCodeTextField().getDocument()"
- onInsertUpdate='getIdentity().setZipCode(getZipCodeTextField().getText())'
- onRemoveUpdate='getIdentity().setZipCode(getZipCodeTextField().getText())'/>
+ <JTextField id="zipCodeTextField"/>
</cell>
</row>
<row>
@@ -108,82 +82,57 @@
<JLabel text="lima.identity.city"/>
</cell>
<cell fill="horizontal">
- <JTextField id="cityTextField" text="{getIdentity().getCity()}"/>
- <javax.swing.text.Document javaBean="getCityTextField().getDocument()"
- onInsertUpdate='getIdentity().setCity(getCityTextField().getText())'
- onRemoveUpdate='getIdentity().setCity(getCityTextField().getText())'/>
+ <JTextField id="cityTextField" />
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.businessNumber"/>
+ <JLabel id="businessNumberLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="businessNumberTextField"
- text="{getIdentity().getBusinessNumber()}"/>
- <javax.swing.text.Document
- javaBean="getBusinessNumberTextField().getDocument()"
- onInsertUpdate='getIdentity().setBusinessNumber(getBusinessNumberTextField().getText())'
- onRemoveUpdate='getIdentity().setBusinessNumber(getBusinessNumberTextField().getText())'/>
+ <JTextField id="businessNumberTextField"/>
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.vatNumber"/>
+ <JLabel id="vatNumberLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="vatNumberTextField"
- text="{getIdentity().getVatNumber()}"/>
- <javax.swing.text.Document
- javaBean="getVatNumberTextField().getDocument()"
- onInsertUpdate='getIdentity().setVatNumber(getVatNumberTextField().getText())'
- onRemoveUpdate='getIdentity().setVatNumber(getVatNumberTextField().getText())'/>
+ <JTextField id="vatNumberTextField"/>
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.classificationCode"/>
+ <JLabel id="classificationCodeLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="classificationCodeTextField"
- text="{getIdentity().getClassificationCode()}"/>
- <javax.swing.text.Document
- javaBean="getClassificationCodeTextField().getDocument()"
- onInsertUpdate='getIdentity().setClassificationCode(getClassificationCodeTextField().getText())'
- onRemoveUpdate='getIdentity().setClassificationCode(getClassificationCodeTextField().getText())'/>
+ <JTextField id="classificationCodeTextField"/>
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.phoneNumber"/>
+ <JLabel id="phoneNumberLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="phoneNumberTextField"
- text="{getIdentity().getPhoneNumber()}"/>
- <javax.swing.text.Document
- javaBean="getPhoneNumberTextField().getDocument()"
- onInsertUpdate='getIdentity().setPhoneNumber(getPhoneNumberTextField().getText())'
- onRemoveUpdate='getIdentity().setPhoneNumber(getPhoneNumberTextField().getText())'/>
+ <JTextField id="phoneNumberTextField"/>
</cell>
</row>
<row>
<cell fill="horizontal">
- <JLabel text="lima.identity.email"/>
+ <JLabel id="emailLabel"/>
</cell>
<cell fill="horizontal">
- <JTextField id="emailTextField" text="{getIdentity().getEmail()}"/>
- <javax.swing.text.Document javaBean="getEmailTextField().getDocument()"
- onInsertUpdate='getIdentity().setEmail(getEmailTextField().getText())'
- onRemoveUpdate='getIdentity().setEmail(getEmailTextField().getText())'/>
+ <JTextField id="emailTextField" />
</cell>
</row>
<row>
<cell fill="none">
- <JButton text="lima.common.cancel" onActionPerformed="performCancel()"/>
+ <JButton id="cancel"
+ onActionPerformed="dispose();"/>
</cell>
<cell fill="none">
- <JButton id="ok" text="lima.common.ok" onActionPerformed="handler.updateIdentity(getIdentity());
- dispose()"/>
+ <JButton id="ok"
+ onActionPerformed="handler.updateIdentity(); dispose();" />
</cell>
</row>
</Table>
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandler.java 2014-07-31 12:01:23 UTC (rev 3880)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/identity/IdentityHandler.java 2014-07-31 13:05:12 UTC (rev 3881)
@@ -36,10 +36,13 @@
protected IdentityService identityService;
+ protected IdentityForm view;
+
private static final Log log = LogFactory.getLog(IdentityHandler.class);
- public IdentityHandler() {
+ public IdentityHandler(IdentityForm view) {
+ this.view = view;
identityService =
LimaServiceFactory.getService(
IdentityService.class);
@@ -53,7 +56,21 @@
return identity;
}
- public void updateIdentity(Identity identity) {
+ public void updateIdentity(){
+ Identity identity = getIdentity();
+
+ identity.setName(view.getNameTextField().getText());
+ identity.setDescription(view.getDescriptionTextField().getText());
+ identity.setAddress(view.getAddressTextField().getText());
+ identity.setAddress2(view.getAddress2TextField().getText());
+ identity.setZipCode(view.getZipCodeTextField().getText());
+ identity.setCity(view.getCityTextField().getText());
+ identity.setBusinessNumber(view.getBusinessNumberTextField().getText());
+ identity.setVatNumber(view.getVatNumberTextField().getText());
+ identity.setClassificationCode(view.getClassificationCodeTextField().getText());
+ identity.setPhoneNumber(view.getPhoneNumberTextField().getText());
+ identity.setEmail(view.getEmailTextField().getText());
+
identityService.updateIdentity(identity);
}
}
1
0
Author: dcosse
Date: 2014-07-31 14:01:23 +0200 (Thu, 31 Jul 2014)
New Revision: 3880
Url: http://forge.chorem.org/projects/lima/repository/revisions/3880
Log:
refs #1032 import export des VATStatements
Added:
trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialStatement.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistVatStatement.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/VatStatementModel.java
trunk/lima-business/src/test/resources/import/vat_shortened.csv
Removed:
trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialTransaction.java
Modified:
trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/NewExportService.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/NewImportService.java
trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStatementService.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewExportServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatementServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FinancialStatementModel.java
trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/ImportServiceImplTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java
trunk/lima-callao/src/main/xmi/accounting-model.zargo
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartTreeTableModel.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartTreeTableModel.java
trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties
trunk/lima-swing/src/main/resources/import/vat_base.csv
trunk/lima-swing/src/main/resources/import/vat_default.csv
trunk/lima-swing/src/main/resources/import/vat_developed.csv
trunk/lima-swing/src/main/resources/import/vat_shortened.csv
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -39,7 +39,7 @@
import org.chorem.lima.beans.FinancialStatementDatas;
import org.chorem.lima.beans.FinancialStatementDatasImpl;
import org.chorem.lima.beans.ReportsDatas;
-import org.chorem.lima.business.AlreadyExistFinancialTransaction;
+import org.chorem.lima.business.AlreadyExistFinancialStatement;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.NotAllowedLabel;
import org.chorem.lima.business.api.AccountService;
@@ -84,7 +84,7 @@
}
};
- protected void validateNewFinancialStatement(FinancialStatement masterFinancialStatement, FinancialStatement financialStatement) throws AlreadyExistFinancialTransaction, NotAllowedLabel {
+ protected void validateNewFinancialStatement(FinancialStatement masterFinancialStatement, FinancialStatement financialStatement) throws AlreadyExistFinancialStatement, NotAllowedLabel {
if (financialStatement.getLabel().contains("/")) {
throw new NotAllowedLabel(financialStatement.getLabel());
}
@@ -95,7 +95,7 @@
}
Map indexedSubFinancialStatements = Maps.uniqueIndex(masterSubFinancialStatements, GET_LABEL);
if (indexedSubFinancialStatements.get(financialStatement.getLabel()) != null){
- throw new AlreadyExistFinancialTransaction(financialStatement.getLabel(), masterFinancialStatement.getLabel());
+ throw new AlreadyExistFinancialStatement(financialStatement.getLabel(), masterFinancialStatement.getLabel());
}
}
}
@@ -134,7 +134,7 @@
@Override
public FinancialStatement createFinancialStatement(FinancialStatement masterFinancialStatement,
- FinancialStatement financialStatement) throws AlreadyExistFinancialTransaction, NotAllowedLabel {
+ FinancialStatement financialStatement) throws AlreadyExistFinancialStatement, NotAllowedLabel {
validateNewFinancialStatement(masterFinancialStatement, financialStatement);
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -37,62 +37,40 @@
import org.apache.pdfbox.exceptions.COSVisitorException;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.interactive.form.PDField;
-import org.chorem.lima.beans.ClosedPeriodicEntryBookImport;
-import org.chorem.lima.beans.ClosedPeriodicEntryBookImportImpl;
import org.chorem.lima.beans.EntryEBP;
import org.chorem.lima.beans.EntryEBPImpl;
import org.chorem.lima.beans.EntryImport;
-import org.chorem.lima.beans.EntryImportImpl;
-import org.chorem.lima.beans.FinancialStatementImport;
import org.chorem.lima.beans.FinancialTransactionImport;
-import org.chorem.lima.beans.FinancialTransactionImportImpl;
-import org.chorem.lima.beans.VatStatementImport;
-import org.chorem.lima.beans.VatStatementImportImpl;
import org.chorem.lima.business.AlreadyExistAccountException;
-import org.chorem.lima.business.BeginAfterEndFiscalPeriodException;
import org.chorem.lima.business.ImportEbpException;
import org.chorem.lima.business.InvalidAccountNumberException;
import org.chorem.lima.business.LimaConfig;
import org.chorem.lima.business.LockedEntryBookException;
import org.chorem.lima.business.LockedFinancialPeriodException;
-import org.chorem.lima.business.MoreOneUnlockFiscalPeriodException;
-import org.chorem.lima.business.NotBeginNextDayOfLastFiscalPeriodException;
-import org.chorem.lima.business.NotLockedClosedPeriodicEntryBooksException;
-import org.chorem.lima.business.UnbalancedFinancialTransactionsException;
-import org.chorem.lima.business.UnfilledEntriesException;
-import org.chorem.lima.business.WithoutEntryBookFinancialTransactionsException;
import org.chorem.lima.business.api.AccountService;
import org.chorem.lima.business.api.ClosedPeriodicEntryBookService;
import org.chorem.lima.business.api.EntryBookService;
import org.chorem.lima.business.api.EntryService;
import org.chorem.lima.business.api.FinancialPeriodService;
-import org.chorem.lima.business.api.FinancialStatementService;
import org.chorem.lima.business.api.FinancialTransactionService;
import org.chorem.lima.business.api.FiscalPeriodService;
import org.chorem.lima.business.api.IdentityService;
import org.chorem.lima.business.api.ImportService;
-import org.chorem.lima.business.api.VatStatementService;
import org.chorem.lima.business.utils.DocumentsEnum;
import org.chorem.lima.business.utils.EntryEBPComparator;
import org.chorem.lima.business.utils.FiscalPeriodComparator;
import org.chorem.lima.business.utils.ImportExportEntityEnum;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.AccountImpl;
-import org.chorem.lima.entity.ClosedPeriodicEntryBook;
import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.entity.EntryBookImpl;
import org.chorem.lima.entity.EntryImpl;
-import org.chorem.lima.entity.FinancialPeriod;
import org.chorem.lima.entity.FinancialTransaction;
import org.chorem.lima.entity.FinancialTransactionImpl;
import org.chorem.lima.entity.FiscalPeriod;
-import org.chorem.lima.entity.FiscalPeriodImpl;
import org.chorem.lima.entity.Identity;
import org.chorem.lima.entity.IdentityImpl;
-import org.chorem.lima.entity.VatStatement;
-import org.chorem.lima.entity.VatStatementImpl;
-import org.nuiton.topia.persistence.TopiaException;
import javax.ejb.EJB;
import javax.ejb.Remote;
@@ -110,9 +88,6 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@@ -157,12 +132,6 @@
private FinancialTransactionService financialTransactionService;
@EJB
- private FinancialStatementService financialStatementService;
-
- @EJB
- private VatStatementService vatStatementService;
-
- @EJB
private EntryBookService entryBookService;
@EJB
@@ -555,24 +524,13 @@
ImportExportEntityEnum importExportEntityEnum) throws ImportEbpException {
StringBuilder result = new StringBuilder();
- // FinancialStatements
- Map<String, List<FinancialStatementImport>> financialStatements = null;
- // VatStatement
- Map<String, List<VatStatementImport>> vatStatements = null;
// Transactions and entries
Map<Integer, FinancialTransactionImport> financialTransactions = null;
Map<Integer, List<EntryImport>> entries = null;
switch (importExportEntityEnum) {
- case VATSTATEMENT:
- vatStatements = new LinkedHashMap<String, List<VatStatementImport>>();
- break;
case FINANCIALTRANSACTION:
- case ENTRY:
- financialTransactions = new HashMap<Integer, FinancialTransactionImport>();
- entries = new HashMap<Integer, List<EntryImport>>();
- break;
}
CSVReader csvReader = null;
try {
@@ -585,47 +543,14 @@
|| importExportEntityEnum == ImportExportEntityEnum.FINANCIALTRANSACTION
|| importExportEntityEnum == ImportExportEntityEnum.ENTRY) {
switch (importExportEntityEnum) {
- case ENTRYBOOK:
- result.append(importEntryBooksChartCSV(nextLine));
- break;
- case ACCOUNT:
- result.append(importAccountsChartsCSV(nextLine));
- break;
- case VATSTATEMENT:
- result.append(importVatStatementChartCSV(nextLine,
- vatStatements));
- break;
case FINANCIALTRANSACTION:
- case ENTRY:
- // Entries and transactions always go along
- ImportExportEntityEnum type =
- ImportExportEntityEnum.valueOfLabel(nextLine[0]);
- if (type != null) {
- switch (type) {
- case FINANCIALTRANSACTION:
- importFinancialTransactionsCSV(nextLine,
- financialTransactions);
- break;
- case ENTRY:
- importEntriesCSV(nextLine, entries);
- break;
- }
- }
- break;
}
}
}
//create entity
switch (importExportEntityEnum) {
- case VATSTATEMENT:
- result.append(createVatStatements(vatStatements));
- break;
case FINANCIALTRANSACTION:
- case ENTRY:
- result.append(createFinancialTransactionsAndEntries(
- financialTransactions, entries));
- break;
}
} catch (IOException e) {
@@ -701,418 +626,6 @@
return result.toString();
}
- /**
- * Import and create accounts Structure : TYPE | accountNumber | label
- * | [thirdparty]
- *
- * @param nextLine The line to import
- * @return Success or error message
- * @throws ImportEbpException If the line format is invalid
- */
- protected String importAccountsChartsCSV(String[] nextLine) throws ImportEbpException{
- // Check line format
- if (nextLine.length < 3
- || ! nextLine[0].equals(ImportExportEntityEnum.ACCOUNT.getLabel())) {
- throw new ImportEbpException(t("lima-business.import.lineformatmismatch"));
- }
-
- StringBuilder result = new StringBuilder();
-
- String accountNumber = nextLine[1];
- // if not exists, create it
- if (accountService.getAccountByNumber(accountNumber) == null) {
-
- Account account = new AccountImpl();
- account.setAccountNumber(accountNumber);
- String label = nextLine[2];
- account.setLabel(label);
- if (nextLine.length > 3) {
- String thirdParty = nextLine[3];
- account.setThirdParty(thirdParty);
- }
-
- try {
- accountService.createAccount(account);
- } catch (AlreadyExistAccountException e) {
- result.append(t("lima-business.import.account.alreadyexist", accountNumber));
- } catch (InvalidAccountNumberException e) {
- result.append(t("lima-business.import.account.InvalidAccountNumber", accountNumber));
- }
- result.append(t("lima-business.import.accountadded",
- account.getAccountNumber(),
- account.getLabel()));
- } else {
- result.append(t("lima-business.import.accountalreadyexist", accountNumber));
- }
-
- return result.toString();
- }
-
- /**
- * Import and create fiscal period Structure : TYPE | BeginDate | EndDate
- * | Locked
- *
- * @param nextLine
- * @param fiscalPeriods
- * @return
- * @throws ParseException
- */
- protected String importFiscalPeriodCSV(String[] nextLine,
- List<FiscalPeriod> fiscalPeriods) {
- StringBuilder result = new StringBuilder();
-
- try {
- FiscalPeriod fiscalPeriod = new FiscalPeriodImpl();
- Date beginDate = SDATEFORMAT.parse(nextLine[1]);
- fiscalPeriod.setBeginDate(beginDate);
- Date endDate = SDATEFORMAT.parse(nextLine[2]);
- fiscalPeriod.setEndDate(endDate);
- fiscalPeriod.setLocked(Boolean.parseBoolean(nextLine[3]));
-
- // if not exist, skip
- if (financialPeriodService.getFinancialPeriods(beginDate, endDate) == null) {
- fiscalPeriods.add(fiscalPeriod);
- } else {
- result.append(t("lima-business.import.fiscalperiodalreadyexist", beginDate, endDate));
- }
- } catch (ParseException e) {
- result.append(t("lima-business.common.failed", e.getMessage()));
- }
-
- return result.toString();
- }
-
- /**
- * Import and create entrybooks Structure : TYPE | Code | Label | Type
- *
- * @param nextLine
- * @return
- */
- protected String importEntryBooksChartCSV(String[] nextLine) {
- StringBuilder result = new StringBuilder();
-
- EntryBook entryBook = new EntryBookImpl();
- entryBook.setCode(StringUtils.trimToNull(nextLine[1]));
- entryBook.setLabel(StringUtils.trimToNull(nextLine[2]));
-
- // if exist, skip
- if (entryBookService.getEntryBookByCode(entryBook.getCode()) != null) {
- result.append(t("lima-business.import.entrybookalreadyexist", entryBook.getLabel()));
- } else {
- // create it
- entryBookService.createEntryBook(entryBook);
- result.append(t("lima-business.import.financialstatementadded", entryBook.getLabel()));
- }
-
- return result.toString();
- }
-
- /**
- * Import and create closedperiodicentrybook import Structure : TYPE |
- * BeginDate | EndDate | Locked
- *
- * @param nextLine
- * @param closedPeriodicEntryBooks
- */
- protected void importClosedPeriodicEntryBookCSV(String[] nextLine,
- List<ClosedPeriodicEntryBookImport> closedPeriodicEntryBooks) {
- String locked = nextLine[1];
- String beginDate = nextLine[2];
- String endDate = nextLine[3];
- String entryBookCode = nextLine[4];
-
- if (Boolean.parseBoolean(locked)) {
- ClosedPeriodicEntryBookImport closedPeriodicEntryBookImport = new ClosedPeriodicEntryBookImportImpl();
- closedPeriodicEntryBookImport.setLocked(locked);
- closedPeriodicEntryBookImport
- .setBeginDateFinancialPeriod(beginDate);
- closedPeriodicEntryBookImport.setEndDateFinancialPeriod(endDate);
- closedPeriodicEntryBookImport.setCodeEntryBook(entryBookCode);
-
- closedPeriodicEntryBooks.add(closedPeriodicEntryBookImport);
- }
- }
-
- /**
- * Import and create vatstatement Structure : TYPE | boxName | label
- * | header | accounts | masterVatStatement
- *
- * @param nextLine
- * @param vatStatements
- * @return
- */
- protected String importVatStatementChartCSV(String[] nextLine,
- Map<String, List<VatStatementImport>> vatStatements) {
-
- StringBuilder result = new StringBuilder();
-
- String boxName = nextLine[1];
- String label = StringUtils.trimToNull(nextLine[2]);
- String header = nextLine[3];
- String accounts = StringUtils.trimToNull(nextLine[4]);
- String masterVatStatement = nextLine[5];
-
- // if exist, skip
- if (!vatStatementService.checkVatStatementExist(label)) {
- // create it
- VatStatementImport vatStatementImport = new VatStatementImportImpl();
- vatStatementImport.setLabel(label);
- vatStatementImport.setBoxName(boxName);
- vatStatementImport.setHeader(header);
- vatStatementImport.setAccounts(accounts);
- vatStatementImport.setMasterVatStatement(masterVatStatement);
-
- // put it in hashlinkedlist
- if (vatStatements.containsKey(label)) {
- vatStatements.get(label).add(vatStatementImport);
- } else {
- List<VatStatementImport> list = new ArrayList<VatStatementImport>();
- list.add(vatStatementImport);
- vatStatements.put(label, list);
- }
- } else {
- result.append(t("lima-business.import.vatstatementalreadyexist", label));
- }
-
- return result.toString();
- }
-
-
- /**
- * Import and create financialtransactions Structure : TYPE | NumTransac |
- * TransactionDate | AmountDebit | AmountCredit | EntryBook Code
- *
- * @param nextLine
- * @param financialTransactions
- */
- protected void importFinancialTransactionsCSV(String[] nextLine,
- Map<Integer, FinancialTransactionImport> financialTransactions) {
- int num = new Integer(nextLine[1]);
- FinancialTransactionImport financialTransactionImport = new FinancialTransactionImportImpl();
- financialTransactionImport.setDate(nextLine[2]);
- financialTransactionImport.setAmountDebit(nextLine[3]);
- financialTransactionImport.setAmountCredit(nextLine[4]);
- financialTransactionImport.setCodeEntryBook(nextLine[5]);
-
- financialTransactions.put(num, financialTransactionImport);
- }
-
- /**
- * Import and create entries Structure : TYPE | NumTransac | Description |
- * Amount | Debit | Lettering | Detail | Voucher | Position | Account
- *
- * @param nextLine
- * @param entries
- */
- protected void importEntriesCSV(String[] nextLine,
- Map<Integer, List<EntryImport>> entries) {
- int num = new Integer(nextLine[1]);
-
- EntryImport entryImport = new EntryImportImpl();
- entryImport.setDescription(StringUtils.trimToNull(nextLine[2]));
- entryImport.setAmount(nextLine[3]);
- entryImport.setDebit(nextLine[4]);
- entryImport.setLettering(StringUtils.trimToNull(nextLine[5]));
- entryImport.setDetail(StringUtils.trimToNull(nextLine[6]));
- entryImport.setVoucher(StringUtils.trimToNull(nextLine[7]));
- entryImport.setPosition(StringUtils.trimToNull(nextLine[8]));
- entryImport.setAccount(nextLine[9]);
-
- if (entries.containsKey(num)) {
- List<EntryImport> entryImports = entries.get(num);
- entryImports.add(entryImport);
- } else {
- List<EntryImport> entryImports = new ArrayList<EntryImport>();
- entryImports.add(entryImport);
- entries.put(num, entryImports);
- }
- }
-
- /**
- * @throws TopiaException
- * @deprecated do only one method import without bean use (and remove beans)
- */
- @Deprecated
- protected String createVatStatements(Map<String, List<VatStatementImport>> vatStatements) {
-
- StringBuilder result = new StringBuilder();
-
- while (vatStatements.size() > 0) {
- for (Iterator<List<VatStatementImport>> itr = vatStatements
- .values().iterator(); itr.hasNext(); ) {
- List<VatStatementImport> vatStatementImports =
- itr.next();
-
- for (Iterator<VatStatementImport> itr2 = vatStatementImports.iterator(); itr2.hasNext(); ) {
- VatStatementImport vatStatementImport =
- itr2.next();
- String masterVatStatementLabel = vatStatementImport
- .getMasterVatStatement();
- VatStatement masterVatStatement = vatStatementService.findVatStatementByLabel(masterVatStatementLabel);
-
- if (masterVatStatementLabel.equals("")
- || masterVatStatement != null) {
- // create it
- VatStatement vatStatement = new VatStatementImpl();
- vatStatement.setBoxName(vatStatementImport
- .getBoxName());
- vatStatement.setLabel(vatStatementImport
- .getLabel());
- vatStatement.setAccounts(vatStatementImport
- .getAccounts());
- vatStatement.setHeader(Boolean
- .parseBoolean(vatStatementImport
- .getHeader()));
-
- vatStatementService
- .createVatStatement(
- masterVatStatement,
- vatStatement);
-
- result.append(t("lima-business.import.vatstatementadded",
- vatStatementImport.getLabel()));
-
- itr2.remove();
- } else if (!vatStatements
- .containsKey(masterVatStatementLabel)) {
- result.append(t("lima-business.import.vatstatementalnomaster",
- vatStatementImport.getLabel(),
- masterVatStatementLabel));
- itr2.remove();
- }
- }
- if (vatStatementImports.isEmpty()) {
- itr.remove();
- }
- }
- }
-
- return result.toString();
- }
-
- protected String createFiscalPeriod(List<FiscalPeriod> fiscalPeriods) {
- StringBuilder result = new StringBuilder();
- for (FiscalPeriod fiscalPeriod : fiscalPeriods) {
- // create fiscalPeriod
- try {
- fiscalPeriodService.createFiscalPeriod(fiscalPeriod);
- result.append(t("lima-business.import.fiscalperiodadded",
- fiscalPeriod.getBeginDate(),
- fiscalPeriod.getEndDate()));
- } catch (BeginAfterEndFiscalPeriodException e) {
- result.append("Can't import " + t("lima-business.import.FiscalPeriod.error.beginAfterEndFiscalPeriod"));
- } catch (MoreOneUnlockFiscalPeriodException e) {
- result.append("Can't import " + t("lima-business.import.FiscalPeriod.error.moreOneUnlockFiscalPeriod"));
- } catch (NotBeginNextDayOfLastFiscalPeriodException e) {
- result.append("Can't import " + t("lima-business.import.FiscalPeriod.error.notBeginNextDayOfLastFiscalPeriod"));
- }
- }
- return result.toString();
- }
-
- /**
- * @throws ParseException
- * @throws TopiaException
- * @deprecated do only one method import without bean use (and remove beans)
- */
- @Deprecated
- protected String updateClosedPeriodicEntryBooks(
- List<ClosedPeriodicEntryBookImport> closedPeriodicEntryBooks) {
- StringBuilder result = new StringBuilder();
-
- for (ClosedPeriodicEntryBookImport closedPeriodicEntryBookImport : closedPeriodicEntryBooks) {
- // update closedPeriodicEntryBook
- try {
- Date beginDateFinancialPeriod = SDATEFORMAT
- .parse(closedPeriodicEntryBookImport
- .getBeginDateFinancialPeriod());
- Date endDateFinancialPeriod = SDATEFORMAT
- .parse(closedPeriodicEntryBookImport
- .getEndDateFinancialPeriod());
- FinancialPeriod financialPeriod = financialPeriodService.getFinancialPeriodByNaturalIds(beginDateFinancialPeriod, endDateFinancialPeriod);
-
- String codeEntryBook = closedPeriodicEntryBookImport
- .getCodeEntryBook();
- EntryBook entryBook = entryBookService.getEntryBookByCode(codeEntryBook);
- ClosedPeriodicEntryBook closedPeriodicEntryBook = closedPeriodicEntryBookService.getByEntryBookAndFinancialPeriod(entryBook,
- financialPeriod);
-
- financialPeriodService
- .blockClosedPeriodicEntryBook(closedPeriodicEntryBook);
- result.append(t("lima-business.import.closedperiodicentrybookupdated",
- beginDateFinancialPeriod, endDateFinancialPeriod, codeEntryBook));
- } catch (ParseException e) {
- result.append(t("lima-business.common.failed", e.getMessage()));
- } catch (UnbalancedFinancialTransactionsException e) {
- result.append(t("lima-business.common.failed", t("lima-business.import.closedPeriodicEntryBook.error.unbalanced")));
- } catch (UnfilledEntriesException e) {
- result.append(t("lima-business.common.failed", t("lima-business.import.closedPeriodicEntryBook.error.unfilled")));
- } catch (WithoutEntryBookFinancialTransactionsException e) {
- result.append(t("lima-business.common.failed", t("lima-business.import.closedPeriodicEntryBook.error.withoutEntryBook")));
- } catch (NotLockedClosedPeriodicEntryBooksException e) {
- result.append(t("lima-business.common.failed", t("lima-business.import.closedPeriodicEntryBook.error.NotLockedPreviousEntryBook")));
- }
- }
-
- return result.toString();
- }
-
- /**
- * @deprecated do only one method import without bean use (and remove beans)
- */
- @Deprecated
- protected String createFinancialTransactionsAndEntries(
- Map<Integer, FinancialTransactionImport> financialTransactions,
- Map<Integer, List<EntryImport>> entries) {
-
- StringBuilder result = new StringBuilder();
-
- for (Map.Entry<Integer, FinancialTransactionImport> map : financialTransactions
- .entrySet()) {
- try {
- FinancialTransactionImport financialTransactionImport = map
- .getValue();
- FinancialTransaction financialTransaction = new FinancialTransactionImpl();
- Date dateFinancialTransaction = null;
-
- dateFinancialTransaction = SDATEFORMAT
- .parse(financialTransactionImport.getDate());
- financialTransaction
- .setTransactionDate(dateFinancialTransaction);
-
- EntryBook entryBook = entryBookService.getEntryBookByCode(financialTransactionImport
- .getCodeEntryBook());
- financialTransaction.setEntryBook(entryBook);
-
- financialTransactionService.createFinancialTransaction(financialTransaction);
-
- List<EntryImport> entryImports = entries.get(map.getKey());
- for (EntryImport entryImport : entryImports) {
- Entry entry = new EntryImpl();
- Account account = accountService.getAccountByNumber(entryImport.getAccount());
- entry.setAccount(account);
- entry.setDescription(StringUtils.trimToNull(entryImport.getDescription()));
- entry.setAmount(new BigDecimal(entryImport.getAmount()));
- entry.setDebit(Boolean.parseBoolean(entryImport.getDebit()));
- entry.setLettering(StringUtils.trimToNull(entryImport.getLettering()));
- entry.setDetail(StringUtils.trimToNull(entryImport.getDetail()));
- entry.setVoucher(StringUtils.trimToNull(entryImport.getVoucher()));
- entry.setPosition(StringUtils.trimToNull(entryImport.getPosition()));
- entryService.createEntry(entry);
- financialTransaction.addEntry(entry);
- }
- } catch (ParseException e) {
- result.append(t("lima-business.common.failed", e.getMessage()));
- } catch (LockedFinancialPeriodException e) {
- result.append(t("lima-business.common.failed", t("lima-business.import.FinancialTransaction.error.LockedFinancialPeriod")));
- } catch (LockedEntryBookException e) {
- result.append(t("lima-business.common.failed", t("lima-business.import.FinancialTransaction.error.LockedEntryBook")));
- }
-
- }
- return result.toString();
- }
-
protected String importIdentity(String[] nextLine) {
StringBuilder result = new StringBuilder();
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewExportServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewExportServiceImpl.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewExportServiceImpl.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -35,12 +35,14 @@
import org.chorem.lima.business.api.FinancialStatementService;
import org.chorem.lima.business.api.FinancialTransactionService;
import org.chorem.lima.business.api.NewExportService;
+import org.chorem.lima.business.api.VatStatementService;
import org.chorem.lima.business.ejb.csv.AccountModel;
import org.chorem.lima.business.ejb.csv.EntryBookModel;
import org.chorem.lima.business.ejb.csv.EntryModel;
import org.chorem.lima.business.ejb.csv.FinancialStatementModel;
import org.chorem.lima.business.ejb.csv.FinancialTransactionModel;
import org.chorem.lima.business.ejb.csv.FiscalPeriodModel;
+import org.chorem.lima.business.ejb.csv.VatStatementModel;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.AccountTopiaDao;
import org.chorem.lima.entity.Entry;
@@ -52,6 +54,7 @@
import org.chorem.lima.entity.FinancialTransactionTopiaDao;
import org.chorem.lima.entity.FiscalPeriod;
import org.chorem.lima.entity.FiscalPeriodTopiaDao;
+import org.chorem.lima.entity.VatStatement;
import org.nuiton.csv.Export;
import javax.ejb.EJB;
@@ -93,6 +96,9 @@
@EJB
protected FinancialStatementService financialStatementService;
+ @EJB
+ protected VatStatementService vatStatementService;
+
public static final String JAVA_IO_TMPDIR = "java.io.tmpdir";
@Override
@@ -249,10 +255,10 @@
}
@Override
- public String exportFinancialStatement(String charset) throws Exception {
+ public String exportFinancialStatements(String charset) throws Exception {
String stResult = null;
String tmpDir = System.getProperty(JAVA_IO_TMPDIR)+"/";
- File fileResult = new File(tmpDir + "masterFinancialStatements.csv");
+ File fileResult = new File(tmpDir + "financialStatements.csv");
List<FinancialStatement> rootFinancialStatements = financialStatementService.getRootFinancialStatements();
if (rootFinancialStatements != null) {
@@ -277,4 +283,32 @@
return result;
}
+ @Override
+ public String exportVatStatements(String charset) throws Exception {
+ String stResult = null;
+ String tmpDir = System.getProperty(JAVA_IO_TMPDIR)+"/";
+ File fileResult = new File(tmpDir + "vatStatements.csv");
+
+ List<VatStatement> rootVatStatements = vatStatementService.getRootVatStatements();
+ if (rootVatStatements != null) {
+ VatStatementModel model = new VatStatementModel();
+ List<VatStatement> vatStatements = new ArrayList<>();
+ getAllSubVATStatements(vatStatements, rootVatStatements);
+ Export.exportToFile(model, vatStatements, fileResult, Charset.forName(charset));
+ FileInputStream inputStream = new FileInputStream(fileResult);
+ stResult = IOUtils.toString(inputStream);
+
+ }
+ return stResult;
+ }
+
+ public List<VatStatement> getAllSubVATStatements(List<VatStatement> result, Collection<VatStatement> subVATStatements) {
+ if (subVATStatements != null) {
+ for (VatStatement subVATStatement : subVATStatements) {
+ result.add(subVATStatement);
+ getAllSubVATStatements(result, subVATStatement.getSubVatStatements());
+ }
+ }
+ return result;
+ }
}
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -26,8 +26,10 @@
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.chorem.lima.beans.FinancialStatementImport;
+import org.chorem.lima.beans.VatStatementImport;
import org.chorem.lima.business.AlreadyExistAccountException;
-import org.chorem.lima.business.AlreadyExistFinancialTransaction;
+import org.chorem.lima.business.AlreadyExistFinancialStatement;
+import org.chorem.lima.business.AlreadyExistVatStatement;
import org.chorem.lima.business.FiscalPeriodException;
import org.chorem.lima.business.ImportResult;
import org.chorem.lima.business.InvalidAccountNumberException;
@@ -42,18 +44,21 @@
import org.chorem.lima.business.api.FinancialTransactionService;
import org.chorem.lima.business.api.FiscalPeriodService;
import org.chorem.lima.business.api.NewImportService;
+import org.chorem.lima.business.api.VatStatementService;
import org.chorem.lima.business.ejb.csv.AccountModel;
import org.chorem.lima.business.ejb.csv.EntryBookModel;
import org.chorem.lima.business.ejb.csv.EntryModel;
import org.chorem.lima.business.ejb.csv.FinancialStatementModel;
import org.chorem.lima.business.ejb.csv.FinancialTransactionModel;
import org.chorem.lima.business.ejb.csv.FiscalPeriodModel;
+import org.chorem.lima.business.ejb.csv.VatStatementModel;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.entity.FinancialStatement;
import org.chorem.lima.entity.FinancialTransaction;
import org.chorem.lima.entity.FiscalPeriod;
+import org.chorem.lima.entity.VatStatement;
import org.nuiton.csv.Import;
import org.nuiton.csv.ImportModel;
import org.nuiton.util.beans.Binder;
@@ -95,6 +100,9 @@
@EJB
protected FinancialStatementService financialStatementService;
+ @EJB
+ protected VatStatementService vatStatementService;
+
protected static final Predicate<FinancialStatement> IS_ROOT_FINANCIAL_STATEMENT = new Predicate<FinancialStatement>() {
@Override
@@ -229,7 +237,7 @@
return result;
}
- protected FinancialStatement returnFinancialStatement (FinancialStatement rootFinancialStatement, String subFinancialStatementLabel) throws AlreadyExistFinancialTransaction, NotAllowedLabel {
+ protected FinancialStatement returnFinancialStatement (FinancialStatement rootFinancialStatement, String subFinancialStatementLabel) throws AlreadyExistFinancialStatement, NotAllowedLabel {
Collection<FinancialStatement> subFinancialStatements = rootFinancialStatement.getSubFinancialStatements();
FinancialStatement targetedFinancialStatement = null;
@@ -342,6 +350,7 @@
Binder<FinancialStatement, FinancialStatement> rootBinder = BinderFactory.newBinder(FinancialStatement.class, FinancialStatement.class);
rootBinder.copyExcluding(bfs, financialStatement, FinancialStatement.PROPERTY_SUB_FINANCIAL_STATEMENTS);
alreadyCreated = true;
+ break;
}
}
}
@@ -361,7 +370,7 @@
}
result.increaseCreated();
lineIndex++;
- } catch (AlreadyExistFinancialTransaction e) {
+ } catch (AlreadyExistFinancialStatement e) {
result.getException().addException(lineIndex, e);
} catch (NotAllowedLabel e) {
result.getException().addException(lineIndex, e);
@@ -374,7 +383,153 @@
return result;
}
+ protected VatStatement returnVATStatement (VatStatement rootVATStatement, String subVATStatementLabel) throws AlreadyExistVatStatement, NotAllowedLabel {
+ Collection<VatStatement> subVatStatements = rootVATStatement.getSubVatStatements();
+ VatStatement targetedVATStatement = null;
+
+ // look for vatStatement from tree range
+ if (subVatStatements != null) {
+ for (VatStatement subVatStatement : subVatStatements) {
+ if(subVatStatement.getLabel().equals(subVATStatementLabel)){
+ targetedVATStatement = subVatStatement;
+ break;
+ }
+ }
+ }
+
+ //
+ if (targetedVATStatement == null) {
+ // not found, we need to create it
+ targetedVATStatement = vatStatementService.newVatStatement();
+ targetedVATStatement.setLabel(subVATStatementLabel);
+ // create targetedVATStatement and rootVATStatement if needed
+ targetedVATStatement = vatStatementService.createVatStatement(rootVATStatement, targetedVATStatement);
+ targetedVATStatement.getMasterVatStatement();
+ }
+ return targetedVATStatement;
+ }
+
+ protected VatStatement returnRootVATStatement(VatStatement vatStatement) {
+ VatStatement rootVatStatement = null;
+ while (rootVatStatement == null) {
+ if (vatStatement.getMasterVatStatement() == null){
+ rootVatStatement = vatStatement;
+ } else {
+ vatStatement = vatStatement.getMasterVatStatement();
+ }
+ }
+ return rootVatStatement;
+ }
+
@Override
+ public ImportResult importVATStatementsAsCSV(String contents) {
+ ImportResult result = new ImportResult();
+
+ // import and save VATStatements
+ InputStream contentStream = IOUtils.toInputStream(contents);
+ try {
+ ImportModel<VatStatementImport> model = new VatStatementModel();
+
+ Import<VatStatementImport> vatStatementImports = Import.newImport(model, contentStream);
+
+ // path, vatStatement
+ Map<String, VatStatement> orderedVATStatements = new HashMap<>();
+
+ List<VatStatement> rootVatStatements = vatStatementService.getRootVatStatements();
+ for (VatStatement vatStatement : rootVatStatements) {
+ orderedVATStatements.put(vatStatement.getLabel(), vatStatement);
+ }
+
+ int lineIndex = 0;
+ for (VatStatementImport vatStatementBean : vatStatementImports) {
+ Binder<VatStatementImport, VatStatement> binder = BinderFactory.newBinder(VatStatementImport.class, VatStatement.class);
+ VatStatement vatStatement = vatStatementService.newVatStatement();
+ binder.copyExcluding(vatStatementBean, vatStatement, VatStatement.PROPERTY_MASTER_VAT_STATEMENT);
+
+ try{
+ // full path to master
+ String masterPath = vatStatementBean.getMasterVatStatement();
+
+ if (StringUtils.isBlank(masterPath)) {
+ // case of vatStatement is root
+ // look if root exists
+ // It can not have several vatStatement with the same from same path
+ VatStatement rootVATStatement = orderedVATStatements.get(vatStatementBean.getLabel());
+
+ if (rootVATStatement == null) {
+ rootVATStatement = vatStatement;
+ rootVATStatement = vatStatementService.createVatStatement(null, rootVATStatement);
+ } else {
+ // in case it exist (not ordered import and previously created) values are bind to the previously created one excepted
+ // the sub vatStatements
+ Binder<VatStatement, VatStatement> rootBinder = BinderFactory.newBinder(VatStatement.class, VatStatement.class);
+ rootBinder.copyExcluding(vatStatement, rootVATStatement, VatStatement.PROPERTY_SUB_VAT_STATEMENTS);
+ }
+ orderedVATStatements.put(rootVATStatement.getLabel(), rootVATStatement);
+ } else {
+ String[] masterNames = masterPath.split("/");
+ String rootMasterName = masterNames[0];
+
+ VatStatement rootVATStatement = orderedVATStatements.get(rootMasterName);
+
+ // case of not ordered import and subVATStatement is looking for it's master that has not been created yet
+ if (rootVATStatement == null) {
+ rootVATStatement = vatStatementService.newVatStatement();
+ rootVATStatement.setLabel(rootMasterName);
+ rootVATStatement = vatStatementService.createVatStatement(null, rootVATStatement);
+ orderedVATStatements.put(rootMasterName, rootVATStatement);
+ }
+
+ // explore branches to find the vatStatement's master one
+ VatStatement branchesVATStatement = rootVATStatement;
+ for (int i = 1; i < masterNames.length; i++) {// 0 is root
+ String masterName = masterNames[i];
+ branchesVATStatement = returnVATStatement(branchesVATStatement, masterName);
+ }
+
+ // in case it exist (not ordered import and previously created) values are bind to the previously created one excepted
+ // the sub vatStatements
+ boolean alreadyCreated = false;
+ if (branchesVATStatement != null && branchesVATStatement.getSubVatStatements() != null) {
+ for (VatStatement bfs : branchesVATStatement.getSubVatStatements()) {
+ if (bfs.getLabel().equals(vatStatement.getLabel())){
+ Binder<VatStatement, VatStatement> rootBinder = BinderFactory.newBinder(VatStatement.class, VatStatement.class);
+ rootBinder.copyExcluding(bfs, vatStatement, VatStatement.PROPERTY_SUB_VAT_STATEMENTS);
+ alreadyCreated = true;
+ break;
+ }
+ }
+ }
+
+ // if necessary vatStatement is created
+ if (!alreadyCreated) {
+ // if the master vatStatement has been modified then the current one is replace by the new one.
+ vatStatement = vatStatementService.createVatStatement(branchesVATStatement, vatStatement);
+ VatStatement targetedRootVATStatement = returnRootVATStatement(vatStatement);
+
+ // replace modified root vatStatement with new one
+ if (orderedVATStatements.get(targetedRootVATStatement.getLabel()) != null) {
+ orderedVATStatements.put(targetedRootVATStatement.getLabel(), targetedRootVATStatement);
+ }
+ }
+
+ }
+ result.increaseCreated();
+ lineIndex++;
+ } catch (AlreadyExistVatStatement e) {
+ result.getException().addException(lineIndex, e);
+ } catch (NotAllowedLabel e) {
+ result.getException().addException(lineIndex, e);
+ }
+ }
+
+ } finally {
+ IOUtils.closeQuietly(contentStream);
+ }
+ return result;
+ }
+
+ @Override
public List<ImportResult> importBackup(String entryBooks, String financialTransactions, String fiscalPeriods, String accounts, String entries) throws AlreadyExistAccountException, InvalidAccountNumberException {
List<ImportResult> results = new ArrayList<ImportResult>();
importAccountAsCSV(accounts);
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatementServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatementServiceImpl.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/VatStatementServiceImpl.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -24,18 +24,25 @@
*/
package org.chorem.lima.business.ejb;
+import com.google.common.base.Function;
+import com.google.common.collect.Lists;
+import com.google.common.collect.Maps;
import org.chorem.lima.beans.ReportsDatas;
import org.chorem.lima.beans.VatStatementAmounts;
import org.chorem.lima.beans.VatStatementAmountsImpl;
import org.chorem.lima.beans.VatStatementDatas;
import org.chorem.lima.beans.VatStatementDatasImpl;
+import org.chorem.lima.business.AlreadyExistVatStatement;
import org.chorem.lima.business.LimaException;
+import org.chorem.lima.business.NotAllowedLabel;
import org.chorem.lima.business.api.AccountService;
import org.chorem.lima.business.api.ReportService;
import org.chorem.lima.business.api.VatStatementService;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.VatStatement;
import org.chorem.lima.entity.VatStatementTopiaDao;
+import org.nuiton.util.beans.Binder;
+import org.nuiton.util.beans.BinderFactory;
import javax.ejb.EJB;
import javax.ejb.Remote;
@@ -43,8 +50,10 @@
import javax.ejb.TransactionAttribute;
import java.math.BigDecimal;
import java.util.ArrayList;
+import java.util.Collection;
import java.util.Date;
import java.util.List;
+import java.util.Map;
/**
* Permet d'implémenter le plan de la déclaration de TVA
@@ -62,25 +71,68 @@
@EJB
private AccountService accountService;
- @Override
- public void createVatStatement(VatStatement masterVatStatement,
- VatStatement vatStatement) {
+ protected static final Function<VatStatement, String> GET_LABEL = new Function<VatStatement, String>() {
+ @Override
+ public String apply(VatStatement input) {
+ return input == null ? null : input.getLabel();
+ }
+ };
- VatStatementTopiaDao vatStatementTopiaDao = getDaoHelper().getVatStatementDao();
+ protected void validateNewVATStatement(VatStatement masterVatStatement, VatStatement vatStatement) throws AlreadyExistVatStatement, NotAllowedLabel {
+ if (vatStatement.getLabel().contains("/")) {
+ throw new NotAllowedLabel(vatStatement.getLabel());
+ }
+ if (masterVatStatement != null) {
+ Collection<VatStatement> masterSubVatStatements = masterVatStatement.getSubVatStatements();
+ if (masterSubVatStatements == null) {
+ masterSubVatStatements = Lists.newArrayList();
+ }
+ Map indexedSubVatStatements = Maps.uniqueIndex(masterSubVatStatements, GET_LABEL);
+ if (indexedSubVatStatements.get(vatStatement.getLabel()) != null){
+ throw new AlreadyExistVatStatement(vatStatement.getLabel(), masterVatStatement.getLabel());
+ }
+ }
+ }
- vatStatementTopiaDao.create(vatStatement);
- VatStatement mastervatStatementUpdate = null;
+ protected void addVatStatementToMaster(VatStatement masterVatStatement,
+ VatStatement vatStatement) {
if (masterVatStatement != null) {
- mastervatStatementUpdate = vatStatementTopiaDao.forLabelEquals(masterVatStatement.getLabel()).findUniqueOrNull();
+ VatStatementTopiaDao vatStatementTopiaDao = getDaoHelper().getVatStatementDao();
+
+ masterVatStatement.addSubVatStatements(vatStatement);
+
+ if (masterVatStatement.isPersisted()) {
+ // update the persisted entity to avoid NonUniqueObjectException: A different object with the same identifier value was already associated with the session
+ VatStatement vatStatementToUpdate = vatStatementTopiaDao.forTopiaIdEquals(masterVatStatement.getTopiaId()).findUnique();
+ Binder<VatStatement, VatStatement> binder = BinderFactory.newBinder(VatStatement.class, VatStatement.class);
+ binder.copy(masterVatStatement, vatStatementToUpdate);
+ vatStatementTopiaDao.update(vatStatementToUpdate);
+ } else {
+ vatStatementTopiaDao.create(masterVatStatement);
+ }
}
+ }
- // check if parent account exist;
- if (mastervatStatementUpdate != null) {
- mastervatStatementUpdate.addSubVatStatements(vatStatement);
- vatStatementTopiaDao.update(mastervatStatementUpdate);
+
+ @Override
+ public VatStatement createVatStatement(VatStatement masterVatStatement,
+ VatStatement vatStatement) throws AlreadyExistVatStatement, NotAllowedLabel {
+
+ validateNewVATStatement(masterVatStatement, vatStatement);
+
+ VatStatementTopiaDao vatStatementTopiaDao = getDaoHelper().getVatStatementDao();
+
+ VatStatement result;
+ if (!vatStatement.isPersisted()) {
+ result = vatStatementTopiaDao.create(vatStatement);
+ } else {
+ result = vatStatement;
}
+ addVatStatementToMaster(masterVatStatement, result);
+
+ return result;
}
@Override
@@ -271,8 +323,8 @@
// remove vatstatement
VatStatement vatStatementToDelete =
- vatStatementTopiaDao.findByTopiaId(
- vatStatement.getTopiaId());
+ vatStatementTopiaDao.forTopiaIdEquals(
+ vatStatement.getTopiaId()).findUnique();
vatStatementTopiaDao.delete(vatStatementToDelete);
//get all subVatStatement
@@ -284,8 +336,8 @@
if (vatStatements.size() > 0) {
for (VatStatement subVatStatement : vatStatements) {
VatStatement subVatStatementToDelete =
- vatStatementTopiaDao.findByTopiaId(
- subVatStatement.getTopiaId());
+ vatStatementTopiaDao.forTopiaIdEquals(
+ subVatStatement.getTopiaId()).findUnique();
vatStatementTopiaDao.delete(subVatStatementToDelete);
}
}
@@ -306,4 +358,22 @@
removeVatStatement(vatStatement);
}
}
+
+ @Override
+ public List<VatStatement> getRootVatStatements() {
+ VatStatementTopiaDao vatStatementTopiaDao = getDaoHelper().getVatStatementDao();
+
+ List<VatStatement> result = vatStatementTopiaDao
+ .forMasterVatStatementEquals(null)
+ .setOrderByArguments(VatStatement.PROPERTY_TOPIA_CREATE_DATE)
+ .findAll();
+ return result;
+ }
+
+ @Override
+ public VatStatement newVatStatement() {
+ VatStatementTopiaDao vatStatementTopiaDao = getDaoHelper().getVatStatementDao();
+ VatStatement result = vatStatementTopiaDao.newInstance();
+ return result;
+ }
}
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -33,6 +33,7 @@
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.entity.FinancialStatement;
import org.chorem.lima.entity.FinancialTransaction;
+import org.chorem.lima.entity.VatStatement;
import org.nuiton.csv.ValueFormatter;
import org.nuiton.csv.ValueParser;
import org.nuiton.csv.ext.AbstractImportModel;
@@ -355,17 +356,31 @@
}
};
- protected static final ValueFormatter<FinancialStatement> MASTER_FINANCIAL_STATEMENT_TO_MASTER_FINANCIAL_STATEMENT_LABEL_FORMATTER = new ValueFormatter<FinancialStatement>() {
+ protected static final ValueFormatter<FinancialStatement> MASTER_FINANCIAL_STATEMENT_PATH_FORMATTER = new ValueFormatter<FinancialStatement>() {
@Override
public String format(FinancialStatement value) {
- String result = value == null ? "" : getFullPath(value);
+ String result = value == null ? "" : getFinancialStatementFullPath(value);
return result;
}
};
- protected static final String getFullPath(FinancialStatement value) {
- String result = value.getMasterFinancialStatement() != null ? getFullPath(value.getMasterFinancialStatement()) + "/" + value.getLabel() : value.getLabel();
+ protected static final String getFinancialStatementFullPath(FinancialStatement value) {
+ String result = value.getMasterFinancialStatement() != null ? getFinancialStatementFullPath(value.getMasterFinancialStatement()) + "/" + value.getLabel() : value.getLabel();
return result;
}
+
+ protected static final String getVatFullPath(VatStatement value) {
+ String result = value.getMasterVatStatement() != null ? getVatFullPath(value.getMasterVatStatement()) + "/" + value.getLabel() : value.getLabel();
+ return result;
+ }
+
+ protected static final ValueFormatter<VatStatement> MASTER_VAT_PATH_FORMATTER = new ValueFormatter<VatStatement>() {
+
+ @Override
+ public String format(VatStatement value) {
+ String result = value == null ? "" : getVatFullPath(value);
+ return result;
+ }
+ };
}
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FinancialStatementModel.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FinancialStatementModel.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FinancialStatementModel.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -3,7 +3,6 @@
import org.chorem.lima.beans.FinancialStatementImport;
import org.chorem.lima.beans.FinancialStatementImportImpl;
import org.chorem.lima.entity.FinancialStatement;
-import org.chorem.lima.entity.FinancialStatementImpl;
import org.nuiton.csv.ExportModel;
import org.nuiton.csv.ExportableColumn;
import org.nuiton.csv.ModelBuilder;
@@ -39,15 +38,13 @@
modelBuilder.newColumnForExport("provisionDeprecationAccounts", FinancialStatement.PROPERTY_PROVISION_DEPRECATION_ACCOUNTS);
modelBuilder.newColumnForExport("subAmount", FinancialStatement.PROPERTY_SUB_AMOUNT, O_N_FORMATTER);
modelBuilder.newColumnForExport("headerAmount", FinancialStatement.PROPERTY_HEADER_AMOUNT,O_N_FORMATTER);
- modelBuilder.newColumnForExport("masterFinancialStatement", FinancialStatement.PROPERTY_MASTER_FINANCIAL_STATEMENT, MASTER_FINANCIAL_STATEMENT_TO_MASTER_FINANCIAL_STATEMENT_LABEL_FORMATTER);
+ modelBuilder.newColumnForExport("masterFinancialStatement", FinancialStatement.PROPERTY_MASTER_FINANCIAL_STATEMENT, MASTER_FINANCIAL_STATEMENT_PATH_FORMATTER);
modelBuilder.newColumnForExport("financialStatementWay", FinancialStatement.PROPERTY_WAY, FINANCIAL_STATEMENT_WAY_ENUM_VALUE_FORMATTER);
return (Iterable) modelBuilder.getColumnsForExport();
}
@Override
public FinancialStatementImport newEmptyInstance() {
- FinancialStatementImpl financialStatement = new FinancialStatementImpl();
-// allFinancialStatements.add(financialStatement);
return new FinancialStatementImportImpl();
}
}
Copied: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/VatStatementModel.java (from rev 3875, trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/FinancialStatementModel.java)
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/VatStatementModel.java (rev 0)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/VatStatementModel.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -0,0 +1,41 @@
+package org.chorem.lima.business.ejb.csv;
+
+import org.chorem.lima.beans.VatStatementImport;
+import org.chorem.lima.beans.VatStatementImportImpl;
+import org.chorem.lima.entity.VatStatement;
+import org.nuiton.csv.ExportModel;
+import org.nuiton.csv.ExportableColumn;
+import org.nuiton.csv.ModelBuilder;
+
+/**
+ * Created by davidcosse on 28/07/14.
+ */
+public class VatStatementModel extends AbstractLimaModel<VatStatementImport> implements ExportModel<VatStatement> {
+
+ public VatStatementModel() {
+ super(';');
+ newMandatoryColumn("label", VatStatement.PROPERTY_LABEL);
+ newOptionalColumn("header", VatStatement.PROPERTY_HEADER, O_N_PARSER);
+ newOptionalColumn("accounts", VatStatement.PROPERTY_ACCOUNTS);
+ newOptionalColumn("boxName", VatStatement.PROPERTY_BOX_NAME);
+ newOptionalColumn("masterVATStatement", VatStatement.PROPERTY_MASTER_VAT_STATEMENT);
+ }
+
+ @Override
+ public Iterable<ExportableColumn<VatStatement, Object>> getColumnsForExport() {
+ ModelBuilder<VatStatement> modelBuilder = new ModelBuilder<>();
+
+ modelBuilder.newColumnForExport("label", VatStatement.PROPERTY_LABEL);
+ modelBuilder.newColumnForExport("header", VatStatement.PROPERTY_HEADER, O_N_FORMATTER);
+ modelBuilder.newColumnForExport("accounts", VatStatement.PROPERTY_ACCOUNTS);
+ modelBuilder.newColumnForExport("boxName", VatStatement.PROPERTY_BOX_NAME);
+ modelBuilder.newColumnForExport("masterVATStatement", VatStatement.PROPERTY_MASTER_VAT_STATEMENT, MASTER_VAT_PATH_FORMATTER);
+ return (Iterable) modelBuilder.getColumnsForExport();
+ }
+
+ @Override
+ public VatStatementImport newEmptyInstance() {
+ VatStatementImport vatStatementImport = new VatStatementImportImpl();
+ return vatStatementImport;
+ }
+}
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -39,6 +39,7 @@
import org.chorem.lima.business.api.NewExportService;
import org.chorem.lima.business.api.NewImportService;
import org.chorem.lima.business.api.ReportService;
+import org.chorem.lima.business.api.VatStatementService;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.AccountImpl;
import org.chorem.lima.entity.Entry;
@@ -99,6 +100,7 @@
protected NewImportService newImportService;
protected NewExportService newExportService;
protected FinancialStatementService financialStatementService;
+ protected VatStatementService vatStatementService;
protected LimaCallaoTopiaApplicationContext context;
@@ -137,6 +139,7 @@
importService = LimaServiceFactory.getService(ImportService.class);
entryService = LimaServiceFactory.getService(EntryService.class);
financialStatementService = LimaServiceFactory.getService(FinancialStatementService.class);
+ vatStatementService = LimaServiceFactory.getService(VatStatementService.class);
newImportService = LimaServiceFactory.getService(NewImportService.class);
newExportService = LimaServiceFactory.getService(NewExportService.class);
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/ImportServiceImplTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/ImportServiceImplTest.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/ImportServiceImplTest.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -24,7 +24,6 @@
package org.chorem.lima.business;
import org.apache.commons.io.IOUtils;
-import org.chorem.lima.business.utils.ImportExportEntityEnum;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.FiscalPeriod;
import org.chorem.lima.entity.FiscalPeriodImpl;
@@ -125,42 +124,4 @@
Assert.assertNotNull(employeAccount);
}
- /**
- * Do some test on imported accounts.
- *
- * @throws Exception
- */
- @Test
- public void testImportEntryBookEBP() throws Exception {
- importEBPData();
-
- Assert.assertNotNull(entryBookService.getEntryBookByCode("AN"));
- Assert.assertNotNull(entryBookService.getEntryBookByCode("BQ"));
- }
-
- /**
- * Test que les import csv fourni avec lima s'import bien.
- * @throws Exception
- */
- @Test
- public void testImportCSVPCG() throws Exception {
- createNewTestContext().createSchema();
-
- String pcg = IOUtils.toString(ImportServiceImplTest.class.getResourceAsStream("/import/pcg_base.csv"));
- importService.importAsCSV(pcg, ImportExportEntityEnum.ACCOUNT);
- Assert.assertEquals(461, accountService.getAccountCount());
- }
-
- /**
- * Test que les import csv fourni avec lima s'import bien.
- * @throws Exception
- */
- @Test
- public void testImportCSVEb() throws Exception {
- createNewTestContext().createSchema();
-
- String pcg = IOUtils.toString(ImportServiceImplTest.class.getResourceAsStream("/import/eb_default.csv"));
- importService.importAsCSV(pcg, ImportExportEntityEnum.ENTRYBOOK);
- Assert.assertEquals(5, entryBookService.getAllEntryBooks().size());
- }
}
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -317,4 +317,19 @@
subFinancialStatements = bilanActifStatement.getSubFinancialStatements();
Assert.assertEquals(6, subFinancialStatements.size());
}
+
+ //vat_shortened.csv
+ @Test
+ public void testImportVATStatementsAsCSV() throws Exception {
+ // not ordered csv import file
+ String bcr_developed = IOUtils.toString(ImportServiceImplTest.class.getResourceAsStream("/import/vat_shortened.csv"));
+
+ ImportResult result;
+
+ result = newImportService.importVATStatementsAsCSV(bcr_developed);
+
+ Assert.assertTrue(result.getException().getAllExceptionsByLine().isEmpty());
+ Assert.assertEquals(55, result.getNbCreated());
+ Assert.assertEquals(55, vatStatementService.getAllVatStatements().size());
+ }
}
Added: trunk/lima-business/src/test/resources/import/vat_shortened.csv
===================================================================
--- trunk/lima-business/src/test/resources/import/vat_shortened.csv (rev 0)
+++ trunk/lima-business/src/test/resources/import/vat_shortened.csv 2014-07-31 12:01:23 UTC (rev 3880)
@@ -0,0 +1,56 @@
+label;header;accounts;boxName;masterVATStatement
+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
+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
+A. MONTANT DES OPERATIONS REALISEES;O;;;
Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialStatement.java (from rev 3879, trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialTransaction.java)
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialStatement.java (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialStatement.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -0,0 +1,24 @@
+package org.chorem.lima.business;
+
+/**
+ * Created by davidcosse on 28/07/14.
+ */
+public class AlreadyExistFinancialStatement extends LimaException {
+ private static final long serialVersionUID = 4816249386192290272L;
+
+ protected String financialStatementLabel;
+ protected String masterLabel;
+
+ public AlreadyExistFinancialStatement(String label, String masterLabel) {
+ this.financialStatementLabel = label;
+ this.masterLabel = masterLabel;
+ }
+
+ public String getFinancialStatementLabel() {
+ return financialStatementLabel;
+ }
+
+ public String getMasterLabel() {
+ return masterLabel;
+ }
+}
Deleted: trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialTransaction.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialTransaction.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialTransaction.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -1,24 +0,0 @@
-package org.chorem.lima.business;
-
-/**
- * Created by davidcosse on 28/07/14.
- */
-public class AlreadyExistFinancialTransaction extends LimaException {
- private static final long serialVersionUID = 4816249386192290272L;
-
- protected String financialTransactionLabel;
- protected String masterLabel;
-
- public AlreadyExistFinancialTransaction(String label, String masterLabel) {
- this.financialTransactionLabel = label;
- this.masterLabel = masterLabel;
- }
-
- public String getFinancialTransactionLabel() {
- return financialTransactionLabel;
- }
-
- public String getMasterLabel() {
- return masterLabel;
- }
-}
Copied: trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistVatStatement.java (from rev 3879, trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistFinancialTransaction.java)
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistVatStatement.java (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/AlreadyExistVatStatement.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -0,0 +1,24 @@
+package org.chorem.lima.business;
+
+/**
+ * Created by davidcosse on 28/07/14.
+ */
+public class AlreadyExistVatStatement extends LimaException {
+ private static final long serialVersionUID = 4816249386192290272L;
+
+ protected String vatStatementLabel;
+ protected String masterLabel;
+
+ public AlreadyExistVatStatement(String label, String masterLabel) {
+ this.vatStatementLabel = label;
+ this.masterLabel = masterLabel;
+ }
+
+ public String getVatStatementLabel() {
+ return vatStatementLabel;
+ }
+
+ public String getMasterLabel() {
+ return masterLabel;
+ }
+}
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -26,7 +26,7 @@
package org.chorem.lima.business.api;
import org.chorem.lima.beans.FinancialStatementAmounts;
-import org.chorem.lima.business.AlreadyExistFinancialTransaction;
+import org.chorem.lima.business.AlreadyExistFinancialStatement;
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.NotAllowedLabel;
import org.chorem.lima.entity.Account;
@@ -46,7 +46,7 @@
void createMasterFinacialStatements(FinancialStatement masterFinancialStatements);
FinancialStatement createFinancialStatement(FinancialStatement masterFinancialStatement,
- FinancialStatement financialStatement) throws AlreadyExistFinancialTransaction, NotAllowedLabel;
+ FinancialStatement financialStatement) throws AlreadyExistFinancialStatement, NotAllowedLabel;
void updateFinancialStatement(FinancialStatement financialStatement);
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/NewExportService.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/NewExportService.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/NewExportService.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -48,5 +48,7 @@
String exportEntriesAsCSV(String charset, Boolean humanReadable);
- String exportFinancialStatement(String charset) throws Exception;
+ String exportFinancialStatements(String charset) throws Exception;
+
+ String exportVatStatements(String charset) throws Exception;
}
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/NewImportService.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/NewImportService.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/NewImportService.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -43,5 +43,7 @@
ImportResult importFinancialStatementsAsCSV(String contents);
+ ImportResult importVATStatementsAsCSV(String contents);
+
List<ImportResult> importBackup(String entryBooks, String transactions, String fiscalPeriods, String accounts, String entries) throws AlreadyExistAccountException, InvalidAccountNumberException;
}
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStatementService.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStatementService.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/VatStatementService.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -25,7 +25,9 @@
package org.chorem.lima.business.api;
import org.chorem.lima.beans.VatStatementAmounts;
+import org.chorem.lima.business.AlreadyExistVatStatement;
import org.chorem.lima.business.LimaException;
+import org.chorem.lima.business.NotAllowedLabel;
import org.chorem.lima.entity.VatStatement;
import java.util.Date;
@@ -33,8 +35,8 @@
public interface VatStatementService {
- void createVatStatement(VatStatement masterVatStatement,
- VatStatement vatStatement);
+ VatStatement createVatStatement(VatStatement masterVatStatement,
+ VatStatement vatStatement) throws AlreadyExistVatStatement, NotAllowedLabel;
List<VatStatement> getAllVatStatements();
@@ -66,5 +68,7 @@
*/
boolean checkVatStatementExist(String label);
+ List<VatStatement> getRootVatStatements();
+ VatStatement newVatStatement();
}
\ No newline at end of file
Modified: trunk/lima-callao/src/main/xmi/accounting-model.zargo
===================================================================
(Binary files differ)
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartTreeTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartTreeTableModel.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartTreeTableModel.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -29,7 +29,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaConfig;
-import org.chorem.lima.business.AlreadyExistFinancialTransaction;
+import org.chorem.lima.business.AlreadyExistFinancialStatement;
import org.chorem.lima.business.NotAllowedLabel;
import org.chorem.lima.business.api.FinancialStatementService;
import org.chorem.lima.entity.FinancialStatement;
@@ -213,11 +213,11 @@
try {
financialStatementService.createFinancialStatement(
parentFinancialStatementHeader, financialStatement);
- } catch (AlreadyExistFinancialTransaction alreadyExistFinancialTransaction) {
+ } catch (AlreadyExistFinancialStatement alreadyExistFinancialStatement) {
errorHelper.showErrorMessage(t("lima.importexport.import.alreadyExistFinancialStatement",
- alreadyExistFinancialTransaction.getFinancialTransactionLabel(), alreadyExistFinancialTransaction.getMasterLabel()));
+ alreadyExistFinancialStatement.getFinancialStatementLabel(), alreadyExistFinancialStatement.getMasterLabel()));
} catch (NotAllowedLabel notAllowedLabel) {
- errorHelper.showErrorMessage(t("lima.importexport.import.alreadyExistFinancialStatement",
+ errorHelper.showErrorMessage(t("lima.financialstatement.notAllowedLabel",
notAllowedLabel.getLabel()));
}
modelSupport.fireTreeStructureChanged(path);
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/importexport/ImportExport.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -46,16 +46,8 @@
import org.chorem.lima.util.ErrorHelper;
import org.jdesktop.swingx.painter.BusyPainter;
-import javax.swing.JComboBox;
-import javax.swing.JFileChooser;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.SwingWorker;
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Container;
+import javax.swing.*;
+import java.awt.*;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.File;
@@ -169,15 +161,19 @@
break;
case CSV_FINANCIALSTATEMENTS_EXPORT:
try {
- datas = newExportService.exportFinancialStatement(charset.name());
+ datas = newExportService.exportFinancialStatements(charset.name());
createFile(filePath, charset.name(), datas);
} catch (Exception e) {
e.printStackTrace();
}
break;
case CSV_VAT_EXPORT:
- datas = exportService.exportVatStatementChartAsCSV();
- createFile(filePath, charset.name(), datas);
+ try {
+ datas = newExportService.exportVatStatements(charset.name());
+ createFile(filePath, charset.name(), datas);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
break;
case EBP_ACCOUNTCHARTS_EXPORT:
//For windows ebp
@@ -219,7 +215,9 @@
break;
case CSV_VAT_IMPORT:
datas = extractFile(filePath, charset.name());
- result = importService.importAsCSV(datas, ImportExportEntityEnum.VATSTATEMENT);
+ importResult = newImportService.importVATStatementsAsCSV(datas);
+ // TODO DCossé 24/07/14 change result
+ result = "SUCCESS";
break;
case PDF_VAT_IMPORT:
int response = JOptionPane.showConfirmDialog(waitView,
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningViewHandler.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningViewHandler.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -25,15 +25,6 @@
package org.chorem.lima.ui.opening;
-import static org.nuiton.i18n.I18n.t;
-
-import java.awt.Color;
-
-import javax.swing.BorderFactory;
-import javax.swing.JPanel;
-import javax.swing.border.Border;
-import javax.swing.border.EmptyBorder;
-
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.business.LimaException;
@@ -49,6 +40,13 @@
import org.chorem.lima.ui.identity.IdentityHandler;
import org.chorem.lima.ui.importexport.ImportExport;
+import javax.swing.*;
+import javax.swing.border.Border;
+import javax.swing.border.EmptyBorder;
+import java.awt.*;
+
+import static org.nuiton.i18n.I18n.t;
+
public class OpeningViewHandler {
private static final Log log = LogFactory.getLog(OpeningViewHandler.class);
@@ -147,6 +145,7 @@
//Import vatstatement
switch (defaultAccountsChartEnum) {
case SHORTENED:
+ // TODO DCossé 31/07/14 why vat_base, default developped and shortened file have got same contents ?
importExport.importExport(ImportExportEnum.CSV_VAT_IMPORT,
VatStatementsChartEnum.SHORTENED.getFilePath(), false);
break;
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartTreeTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartTreeTableModel.java 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/vatchart/VatChartTreeTableModel.java 2014-07-31 12:01:23 UTC (rev 3880)
@@ -26,10 +26,13 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.business.AlreadyExistVatStatement;
+import org.chorem.lima.business.NotAllowedLabel;
import org.chorem.lima.business.api.VatStatementService;
import org.chorem.lima.entity.VatStatement;
import org.chorem.lima.entity.VatStatementImpl;
import org.chorem.lima.service.LimaServiceFactory;
+import org.chorem.lima.util.ErrorHelper;
import org.jdesktop.swingx.treetable.AbstractTreeTableModel;
import javax.swing.tree.TreePath;
@@ -45,6 +48,8 @@
/** Services. */
protected final VatStatementService vatStatementService;
+ protected ErrorHelper errorHelper;
+
/** Model constructor. Initiate account service used here. */
public VatChartTreeTableModel() {
//create root for the tree
@@ -172,8 +177,16 @@
parentVatStatementHeader =
(VatStatement) path.getLastPathComponent();
}
- vatStatementService.createVatStatement(
- parentVatStatementHeader, vatStatement);
+ try {
+ vatStatementService.createVatStatement(
+ parentVatStatementHeader, vatStatement);
+ } catch (AlreadyExistVatStatement alreadyExistVatStatement) {
+ errorHelper.showErrorMessage(t("lima.importexport.import.alreadyExistFinancialStatement",
+ alreadyExistVatStatement.getVatStatementLabel(), alreadyExistVatStatement.getMasterLabel()));
+ } catch (NotAllowedLabel notAllowedLabel) {
+ errorHelper.showErrorMessage(t("lima.importexport.import.alreadyExistFinancialStatement",
+ notAllowedLabel.getLabel()));
+ }
modelSupport.fireTreeStructureChanged(path);
}
Modified: trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties
===================================================================
--- trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties 2014-07-31 12:01:23 UTC (rev 3880)
@@ -311,6 +311,7 @@
lima.importexport.export=
lima.importexport.export.terminated=
lima.importexport.import.alreadyExistFinancialStatement=
+lima.importexport.import.alreadyExistVatStatement=
lima.importexport.usevatpdf=Êtes-vous sûr de vouloir utiliser ce pdf pour la déclaration de TVA ?
lima.init.closed=Lima fermé à %1$s
lima.init.errorclosing=Erreur lors de la fermeture
Modified: trunk/lima-swing/src/main/resources/import/vat_base.csv
===================================================================
--- trunk/lima-swing/src/main/resources/import/vat_base.csv 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-swing/src/main/resources/import/vat_base.csv 2014-07-31 12:01:23 UTC (rev 3880)
@@ -1,71 +1,56 @@
-/**
- * vatstatement Structure : TYPE | boxName | label | header | accounts | masterVatStatement
- *
- * boxName: name used to identify the box inside a pdf (String, can be empty)
- * label: description (String)
- * header: (true if it is a masterVatStatement, false otherwise)
- * accounts: list of accounts amounts to find the amount (account numbers separate by a comma, can be empty)
- * masterVatStatement: copy of the master label (String, can be empty)
- *
- * boxName : identifiant de la cellule dans un pdf (chaîne de caractères, vide si inexistant)
- * label : libellé descriptif (chaîne de caractères)
- * header : indique si la ligne contient des sous-ensembles (vrai si c'est un compte de TVA parent --> true, sinon faux --> false)
- * accounts : liste des comptes utilisés pour calculer la somme (numéro des comptes séparés par des virgules, peut être vide)
- * masterVatStatement : copie du label de la ligne parent (chaîne de caractères, peut être vide)
- *
- **/
-"VAT";"";"A. MONTANT DES OPERATIONS REALISEES";"true";"";""
-"VAT";"";"OPERATIONS IMPOSABLES (H.T.)";"true";"";"A. MONTANT DES OPERATIONS REALISEES"
-"VAT";"b1.b1";"Ventes, prestations de services";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b2.b2";"Autres opérations imposables";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b3.b3";"Achats de prestations de services intracommunautaires";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b4.b4";"Acquisitions intracommunautaires";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b5.b5";"Livraisons de gaz naturel ou d'électricité imposables en France";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b6.b6";"Achats de biens ou de prestations de services réalisées auprès d'un assujetti non établi en France";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b7.b7";"Régularisations (imposables)";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"";"OPERATIONS NON IMPOSABLES";"true";"";"A. MONTANT DES OPERATIONS REALISEES"
-"VAT";"b8.b8";"Exportations hors CE";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b9.b9";"Autres opérations non imposables";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b10.b10";"Livraisons intracommunautaires";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b11.b11";"Livraisons de gaz naturel ou d'électricité non imposables en France";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b12.b12";"Achats de franchise";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b13.b13";"Ventes de biens ou prestations de services réalisées aurpès d'un assujetti non établi en France";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b14.b14";"Régularisations (non imposables)";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"";"B. DECOMPTE DE LA TVA A PAYER";"true";"";""
-"VAT";"";"TVA BRUTE";"true";"";"B. DECOMPTE DE LA TVA A PAYER"
-"VAT";"";"Opérations réalisées en France métropolitaine";"true";"";"TVA BRUTE"
-"VAT";"b15.b15";"Taux normal 19,6% (Base hors taxe)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"b23.b23";"Taux normal 19,6% (Taxe due)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"b16.b16";"Taux réduit 5,5% (Base hors taxe)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"b24.b24";"Taux réduit 5,5% (Taxe due)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"";"Opérations réalisées dans les DOM";"true";"";"TVA BRUTE"
-"VAT";"b18.b18";"Taux normal 8,5% (Base hors taxe)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"b26.b26";"Taux normal 8,5% (Taxe due)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"b19.b19";"Taux réduit 2,1% (Base hors taxe)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"b27.b27";"Taux réduit 2,1% (Taxe due)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)";"true";"";"TVA BRUTE"
-"VAT";"b21.b21";"Ancien taux (Base hors taxe)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b29.b29";"Ancien taux (Taxe due)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b22.b22";"Opérations imposables à un taux particulier (Base hors taxe)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b30.b30";"Opérations imposables à un taux particulier (Taxe due)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b31.b31";"TVA antérieurement déduite à reverser";"false";"";"TVA BRUTE"
-"VAT";"b32.b32";"Total de le TVA brute due";"false";"";"TVA BRUTE"
-"VAT";"b33.b33";"Dont TVA sur acquisitions intracommunautaires";"false";"";"TVA BRUTE"
-"VAT";"b34.b34";"Dont TVA sur opérations à destination de Monaco";"false";"";"TVA BRUTE"
-"VAT";"";"TVA DEDUCTIBLE";"true";"";"B. DECOMPTE DE LA TVA A PAYER"
-"VAT";"b35.b35";"Biens constituant des immobilisations";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b36.b36";"Autres biens et services";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b37.b37";"Autre TVA à déduire";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b38.b38";"Report du crédit apparaissant ligne 27 de la précédente déclaration";"false";"";"TVA DEDUCTIBLE"
-"VAT";"total1.total1";"Total TVA déductible";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b39.b39";"Dont TVA non perçue récupérable par les assujettis disposant d'un établissement stable dans les DOM";"false";"";"TVA DEDUCTIBLE"
-"VAT";"";"CREDIT";"true";"";""
-"VAT";"b40.b40";"Crédit de TVA";"false";"";"CREDIT"
-"VAT";"b41.b41";"Remboursement demandé sur formulaire n°3519";"false";"";"CREDIT"
-"VAT";"b42.b42";"Crédit à reporter";"false";"";"CREDIT"
-"VAT";"";"TAXE A PAYER";"true";"";""
-"VAT";"b43.b43";"TVA nette due";"false";"";"TAXE A PAYER"
-"VAT";"b44.b44";"Taxes assimilées calculées sur annexe n°3310 A";"false";"";"TAXE A PAYER"
-"VAT";"b45.b45";"Sommes à imputer, exprimées en euros, y compris acompte congés";"false";"";"TAXE A PAYER"
-"VAT";"b46.b46";"Sommes à ajouter, exprimées en euros, y compris acompte congés";"false";"";"TAXE A PAYER"
-"VAT";"b47.b47";"Total à payer";"false";"";"TAXE A PAYER"
+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
+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
Modified: trunk/lima-swing/src/main/resources/import/vat_default.csv
===================================================================
--- trunk/lima-swing/src/main/resources/import/vat_default.csv 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-swing/src/main/resources/import/vat_default.csv 2014-07-31 12:01:23 UTC (rev 3880)
@@ -1,71 +1,56 @@
-/**
- * vatstatement Structure : TYPE | boxName | label | header | accounts | masterVatStatement
- *
- * boxName: name used to identify the box inside a pdf (String, can be empty)
- * label: description (String)
- * header: (true if it is a masterVatStatement, false otherwise)
- * accounts: list of accounts amounts to find the amount (account numbers separate by a comma, can be empty)
- * masterVatStatement: copy of the master label (String, can be empty)
- *
- * boxName : identifiant de la cellule dans un pdf (chaîne de caractères, vide si inexistant)
- * label : libellé descriptif (chaîne de caractères)
- * header : indique si la ligne contient des sous-ensembles (vrai si c'est un compte de TVA parent --> true, sinon faux --> false)
- * accounts : liste des comptes utilisés pour calculer la somme (numéro des comptes séparés par des virgules, peut être vide)
- * masterVatStatement : copie du label de la ligne parent (chaîne de caractères, peut être vide)
- *
- **/
-"VAT";"";"A. MONTANT DES OPERATIONS REALISEES";"true";"";""
-"VAT";"";"OPERATIONS IMPOSABLES (H.T.)";"true";"";"A. MONTANT DES OPERATIONS REALISEES"
-"VAT";"b1.b1";"Ventes, prestations de services";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b2.b2";"Autres opérations imposables";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b3.b3";"Achats de prestations de services intracommunautaires";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b4.b4";"Acquisitions intracommunautaires";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b5.b5";"Livraisons de gaz naturel ou d'électricité imposables en France";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b6.b6";"Achats de biens ou de prestations de services réalisées auprès d'un assujetti non établi en France";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b7.b7";"Régularisations (imposables)";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"";"OPERATIONS NON IMPOSABLES";"true";"";"A. MONTANT DES OPERATIONS REALISEES"
-"VAT";"b8.b8";"Exportations hors CE";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b9.b9";"Autres opérations non imposables";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b10.b10";"Livraisons intracommunautaires";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b11.b11";"Livraisons de gaz naturel ou d'électricité non imposables en France";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b12.b12";"Achats de franchise";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b13.b13";"Ventes de biens ou prestations de services réalisées aurpès d'un assujetti non établi en France";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b14.b14";"Régularisations (non imposables)";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"";"B. DECOMPTE DE LA TVA A PAYER";"true";"";""
-"VAT";"";"TVA BRUTE";"true";"";"B. DECOMPTE DE LA TVA A PAYER"
-"VAT";"";"Opérations réalisées en France métropolitaine";"true";"";"TVA BRUTE"
-"VAT";"b15.b15";"Taux normal 19,6% (Base hors taxe)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"b23.b23";"Taux normal 19,6% (Taxe due)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"b16.b16";"Taux réduit 5,5% (Base hors taxe)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"b24.b24";"Taux réduit 5,5% (Taxe due)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"";"Opérations réalisées dans les DOM";"true";"";"TVA BRUTE"
-"VAT";"b18.b18";"Taux normal 8,5% (Base hors taxe)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"b26.b26";"Taux normal 8,5% (Taxe due)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"b19.b19";"Taux réduit 2,1% (Base hors taxe)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"b27.b27";"Taux réduit 2,1% (Taxe due)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)";"true";"";"TVA BRUTE"
-"VAT";"b21.b21";"Ancien taux (Base hors taxe)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b29.b29";"Ancien taux (Taxe due)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b22.b22";"Opérations imposables à un taux particulier (Base hors taxe)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b30.b30";"Opérations imposables à un taux particulier (Taxe due)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b31.b31";"TVA antérieurement déduite à reverser";"false";"";"TVA BRUTE"
-"VAT";"b32.b32";"Total de le TVA brute due";"false";"";"TVA BRUTE"
-"VAT";"b33.b33";"Dont TVA sur acquisitions intracommunautaires";"false";"";"TVA BRUTE"
-"VAT";"b34.b34";"Dont TVA sur opérations à destination de Monaco";"false";"";"TVA BRUTE"
-"VAT";"";"TVA DEDUCTIBLE";"true";"";"B. DECOMPTE DE LA TVA A PAYER"
-"VAT";"b35.b35";"Biens constituant des immobilisations";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b36.b36";"Autres biens et services";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b37.b37";"Autre TVA à déduire";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b38.b38";"Report du crédit apparaissant ligne 27 de la précédente déclaration";"false";"";"TVA DEDUCTIBLE"
-"VAT";"total1.total1";"Total TVA déductible";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b39.b39";"Dont TVA non perçue récupérable par les assujettis disposant d'un établissement stable dans les DOM";"false";"";"TVA DEDUCTIBLE"
-"VAT";"";"CREDIT";"true";"";""
-"VAT";"b40.b40";"Crédit de TVA";"false";"";"CREDIT"
-"VAT";"b41.b41";"Remboursement demandé sur formulaire n°3519";"false";"";"CREDIT"
-"VAT";"b42.b42";"Crédit à reporter";"false";"";"CREDIT"
-"VAT";"";"TAXE A PAYER";"true";"";""
-"VAT";"b43.b43";"TVA nette due";"false";"";"TAXE A PAYER"
-"VAT";"b44.b44";"Taxes assimilées calculées sur annexe n°3310 A";"false";"";"TAXE A PAYER"
-"VAT";"b45.b45";"Sommes à imputer, exprimées en euros, y compris acompte congés";"false";"";"TAXE A PAYER"
-"VAT";"b46.b46";"Sommes à ajouter, exprimées en euros, y compris acompte congés";"false";"";"TAXE A PAYER"
-"VAT";"b47.b47";"Total à payer";"false";"";"TAXE A PAYER"
+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
+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
Modified: trunk/lima-swing/src/main/resources/import/vat_developed.csv
===================================================================
--- trunk/lima-swing/src/main/resources/import/vat_developed.csv 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-swing/src/main/resources/import/vat_developed.csv 2014-07-31 12:01:23 UTC (rev 3880)
@@ -1,71 +1,56 @@
-/**
- * vatstatement Structure : TYPE | boxName | label | header | accounts | masterVatStatement
- *
- * boxName: name used to identify the box inside a pdf (String, can be empty)
- * label: description (String)
- * header: (true if it is a masterVatStatement, false otherwise)
- * accounts: list of accounts amounts to find the amount (account numbers separate by a comma, can be empty)
- * masterVatStatement: copy of the master label (String, can be empty)
- *
- * boxName : identifiant de la cellule dans un pdf (chaîne de caractères, vide si inexistant)
- * label : libellé descriptif (chaîne de caractères)
- * header : indique si la ligne contient des sous-ensembles (vrai si c'est un compte de TVA parent --> true, sinon faux --> false)
- * accounts : liste des comptes utilisés pour calculer la somme (numéro des comptes séparés par des virgules, peut être vide)
- * masterVatStatement : copie du label de la ligne parent (chaîne de caractères, peut être vide)
- *
- **/
-"VAT";"";"A. MONTANT DES OPERATIONS REALISEES";"true";"";""
-"VAT";"";"OPERATIONS IMPOSABLES (H.T.)";"true";"";"A. MONTANT DES OPERATIONS REALISEES"
-"VAT";"b1.b1";"Ventes, prestations de services";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b2.b2";"Autres opérations imposables";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b3.b3";"Achats de prestations de services intracommunautaires";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b4.b4";"Acquisitions intracommunautaires";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b5.b5";"Livraisons de gaz naturel ou d'électricité imposables en France";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b6.b6";"Achats de biens ou de prestations de services réalisées auprès d'un assujetti non établi en France";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b7.b7";"Régularisations (imposables)";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"";"OPERATIONS NON IMPOSABLES";"true";"";"A. MONTANT DES OPERATIONS REALISEES"
-"VAT";"b8.b8";"Exportations hors CE";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b9.b9";"Autres opérations non imposables";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b10.b10";"Livraisons intracommunautaires";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b11.b11";"Livraisons de gaz naturel ou d'électricité non imposables en France";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b12.b12";"Achats de franchise";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b13.b13";"Ventes de biens ou prestations de services réalisées aurpès d'un assujetti non établi en France";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b14.b14";"Régularisations (non imposables)";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"";"B. DECOMPTE DE LA TVA A PAYER";"true";"";""
-"VAT";"";"TVA BRUTE";"true";"";"B. DECOMPTE DE LA TVA A PAYER"
-"VAT";"";"Opérations réalisées en France métropolitaine";"true";"";"TVA BRUTE"
-"VAT";"b15.b15";"Taux normal 19,6% (Base hors taxe)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"b23.b23";"Taux normal 19,6% (Taxe due)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"b16.b16";"Taux réduit 5,5% (Base hors taxe)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"b24.b24";"Taux réduit 5,5% (Taxe due)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"";"Opérations réalisées dans les DOM";"true";"";"TVA BRUTE"
-"VAT";"b18.b18";"Taux normal 8,5% (Base hors taxe)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"b26.b26";"Taux normal 8,5% (Taxe due)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"b19.b19";"Taux réduit 2,1% (Base hors taxe)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"b27.b27";"Taux réduit 2,1% (Taxe due)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)";"true";"";"TVA BRUTE"
-"VAT";"b21.b21";"Ancien taux (Base hors taxe)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b29.b29";"Ancien taux (Taxe due)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b22.b22";"Opérations imposables à un taux particulier (Base hors taxe)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b30.b30";"Opérations imposables à un taux particulier (Taxe due)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b31.b31";"TVA antérieurement déduite à reverser";"false";"";"TVA BRUTE"
-"VAT";"b32.b32";"Total de le TVA brute due";"false";"";"TVA BRUTE"
-"VAT";"b33.b33";"Dont TVA sur acquisitions intracommunautaires";"false";"";"TVA BRUTE"
-"VAT";"b34.b34";"Dont TVA sur opérations à destination de Monaco";"false";"";"TVA BRUTE"
-"VAT";"";"TVA DEDUCTIBLE";"true";"";"B. DECOMPTE DE LA TVA A PAYER"
-"VAT";"b35.b35";"Biens constituant des immobilisations";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b36.b36";"Autres biens et services";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b37.b37";"Autre TVA à déduire";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b38.b38";"Report du crédit apparaissant ligne 27 de la précédente déclaration";"false";"";"TVA DEDUCTIBLE"
-"VAT";"total1.total1";"Total TVA déductible";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b39.b39";"Dont TVA non perçue récupérable par les assujettis disposant d'un établissement stable dans les DOM";"false";"";"TVA DEDUCTIBLE"
-"VAT";"";"CREDIT";"true";"";""
-"VAT";"b40.b40";"Crédit de TVA";"false";"";"CREDIT"
-"VAT";"b41.b41";"Remboursement demandé sur formulaire n°3519";"false";"";"CREDIT"
-"VAT";"b42.b42";"Crédit à reporter";"false";"";"CREDIT"
-"VAT";"";"TAXE A PAYER";"true";"";""
-"VAT";"b43.b43";"TVA nette due";"false";"";"TAXE A PAYER"
-"VAT";"b44.b44";"Taxes assimilées calculées sur annexe n°3310 A";"false";"";"TAXE A PAYER"
-"VAT";"b45.b45";"Sommes à imputer, exprimées en euros, y compris acompte congés";"false";"";"TAXE A PAYER"
-"VAT";"b46.b46";"Sommes à ajouter, exprimées en euros, y compris acompte congés";"false";"";"TAXE A PAYER"
-"VAT";"b47.b47";"Total à payer";"false";"";"TAXE A PAYER"
+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
+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
Modified: trunk/lima-swing/src/main/resources/import/vat_shortened.csv
===================================================================
--- trunk/lima-swing/src/main/resources/import/vat_shortened.csv 2014-07-31 08:38:23 UTC (rev 3879)
+++ trunk/lima-swing/src/main/resources/import/vat_shortened.csv 2014-07-31 12:01:23 UTC (rev 3880)
@@ -1,71 +1,56 @@
-/**
- * vatstatement Structure : TYPE | boxName | label | header | accounts | masterVatStatement
- *
- * boxName: name used to identify the box inside a pdf (String, can be empty)
- * label: description (String)
- * header: (true if it is a masterVatStatement, false otherwise)
- * accounts: list of accounts amounts to find the amount (account numbers separate by a comma, can be empty)
- * masterVatStatement: copy of the master label (String, can be empty)
- *
- * boxName : identifiant de la cellule dans un pdf (chaîne de caractères, vide si inexistant)
- * label : libellé descriptif (chaîne de caractères)
- * header : indique si la ligne contient des sous-ensembles (vrai si c'est un compte de TVA parent --> true, sinon faux --> false)
- * accounts : liste des comptes utilisés pour calculer la somme (numéro des comptes séparés par des virgules, peut être vide)
- * masterVatStatement : copie du label de la ligne parent (chaîne de caractères, peut être vide)
- *
- **/
-"VAT";"";"A. MONTANT DES OPERATIONS REALISEES";"true";"";""
-"VAT";"";"OPERATIONS IMPOSABLES (H.T.)";"true";"";"A. MONTANT DES OPERATIONS REALISEES"
-"VAT";"b1.b1";"Ventes, prestations de services";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b2.b2";"Autres opérations imposables";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b3.b3";"Achats de prestations de services intracommunautaires";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b4.b4";"Acquisitions intracommunautaires";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b5.b5";"Livraisons de gaz naturel ou d'électricité imposables en France";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b6.b6";"Achats de biens ou de prestations de services réalisées auprès d'un assujetti non établi en France";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"b7.b7";"Régularisations (imposables)";"false";"";"OPERATIONS IMPOSABLES (H.T.)"
-"VAT";"";"OPERATIONS NON IMPOSABLES";"true";"";"A. MONTANT DES OPERATIONS REALISEES"
-"VAT";"b8.b8";"Exportations hors CE";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b9.b9";"Autres opérations non imposables";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b10.b10";"Livraisons intracommunautaires";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b11.b11";"Livraisons de gaz naturel ou d'électricité non imposables en France";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b12.b12";"Achats de franchise";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b13.b13";"Ventes de biens ou prestations de services réalisées aurpès d'un assujetti non établi en France";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"b14.b14";"Régularisations (non imposables)";"false";"";"OPERATIONS NON IMPOSABLES"
-"VAT";"";"B. DECOMPTE DE LA TVA A PAYER";"true";"";""
-"VAT";"";"TVA BRUTE";"true";"";"B. DECOMPTE DE LA TVA A PAYER"
-"VAT";"";"Opérations réalisées en France métropolitaine";"true";"";"TVA BRUTE"
-"VAT";"b15.b15";"Taux normal 19,6% (Base hors taxe)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"b23.b23";"Taux normal 19,6% (Taxe due)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"b16.b16";"Taux réduit 5,5% (Base hors taxe)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"b24.b24";"Taux réduit 5,5% (Taxe due)";"false";"";"Opérations réalisées en France métropolitaine"
-"VAT";"";"Opérations réalisées dans les DOM";"true";"";"TVA BRUTE"
-"VAT";"b18.b18";"Taux normal 8,5% (Base hors taxe)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"b26.b26";"Taux normal 8,5% (Taxe due)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"b19.b19";"Taux réduit 2,1% (Base hors taxe)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"b27.b27";"Taux réduit 2,1% (Taxe due)";"false";"";"Opérations réalisées dans les DOM"
-"VAT";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)";"true";"";"TVA BRUTE"
-"VAT";"b21.b21";"Ancien taux (Base hors taxe)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b29.b29";"Ancien taux (Taxe due)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b22.b22";"Opérations imposables à un taux particulier (Base hors taxe)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b30.b30";"Opérations imposables à un taux particulier (Taxe due)";"false";"";"Opérations imposables à un autre taux (France métropolitaine ou DOM)"
-"VAT";"b31.b31";"TVA antérieurement déduite à reverser";"false";"";"TVA BRUTE"
-"VAT";"b32.b32";"Total de le TVA brute due";"false";"";"TVA BRUTE"
-"VAT";"b33.b33";"Dont TVA sur acquisitions intracommunautaires";"false";"";"TVA BRUTE"
-"VAT";"b34.b34";"Dont TVA sur opérations à destination de Monaco";"false";"";"TVA BRUTE"
-"VAT";"";"TVA DEDUCTIBLE";"true";"";"B. DECOMPTE DE LA TVA A PAYER"
-"VAT";"b35.b35";"Biens constituant des immobilisations";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b36.b36";"Autres biens et services";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b37.b37";"Autre TVA à déduire";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b38.b38";"Report du crédit apparaissant ligne 27 de la précédente déclaration";"false";"";"TVA DEDUCTIBLE"
-"VAT";"total1.total1";"Total TVA déductible";"false";"";"TVA DEDUCTIBLE"
-"VAT";"b39.b39";"Dont TVA non perçue récupérable par les assujettis disposant d'un établissement stable dans les DOM";"false";"";"TVA DEDUCTIBLE"
-"VAT";"";"CREDIT";"true";"";""
-"VAT";"b40.b40";"Crédit de TVA";"false";"";"CREDIT"
-"VAT";"b41.b41";"Remboursement demandé sur formulaire n°3519";"false";"";"CREDIT"
-"VAT";"b42.b42";"Crédit à reporter";"false";"";"CREDIT"
-"VAT";"";"TAXE A PAYER";"true";"";""
-"VAT";"b43.b43";"TVA nette due";"false";"";"TAXE A PAYER"
-"VAT";"b44.b44";"Taxes assimilées calculées sur annexe n°3310 A";"false";"";"TAXE A PAYER"
-"VAT";"b45.b45";"Sommes à imputer, exprimées en euros, y compris acompte congés";"false";"";"TAXE A PAYER"
-"VAT";"b46.b46";"Sommes à ajouter, exprimées en euros, y compris acompte congés";"false";"";"TAXE A PAYER"
-"VAT";"b47.b47";"Total à payer";"false";"";"TAXE A PAYER"
+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
+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
1
0
r3879 - in trunk/lima-swing/src/main: java/org/chorem/lima/ui/financialstatementchart resources/i18n
by dcosse@users.chorem.org 31 Jul '14
by dcosse@users.chorem.org 31 Jul '14
31 Jul '14
Author: dcosse
Date: 2014-07-31 10:38:23 +0200 (Thu, 31 Jul 2014)
New Revision: 3879
Url: http://forge.chorem.org/projects/lima/repository/revisions/3879
Log:
refs #1032 ajout d'un contr?\195?\180le sur les caract?\195?\168res authoris?\195?\169 d'un label de financial statement
Modified:
trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartTreeTableModel.java
trunk/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties
trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartTreeTableModel.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartTreeTableModel.java 2014-07-31 08:26:29 UTC (rev 3878)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/financialstatementchart/FinancialStatementChartTreeTableModel.java 2014-07-31 08:38:23 UTC (rev 3879)
@@ -30,6 +30,7 @@
import org.apache.commons.logging.LogFactory;
import org.chorem.lima.LimaConfig;
import org.chorem.lima.business.AlreadyExistFinancialTransaction;
+import org.chorem.lima.business.NotAllowedLabel;
import org.chorem.lima.business.api.FinancialStatementService;
import org.chorem.lima.entity.FinancialStatement;
import org.chorem.lima.entity.FinancialStatementImpl;
@@ -215,6 +216,9 @@
} catch (AlreadyExistFinancialTransaction alreadyExistFinancialTransaction) {
errorHelper.showErrorMessage(t("lima.importexport.import.alreadyExistFinancialStatement",
alreadyExistFinancialTransaction.getFinancialTransactionLabel(), alreadyExistFinancialTransaction.getMasterLabel()));
+ } catch (NotAllowedLabel notAllowedLabel) {
+ errorHelper.showErrorMessage(t("lima.importexport.import.alreadyExistFinancialStatement",
+ notAllowedLabel.getLabel()));
}
modelSupport.fireTreeStructureChanged(path);
}
Modified: trunk/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties
===================================================================
--- trunk/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties 2014-07-31 08:26:29 UTC (rev 3878)
+++ trunk/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties 2014-07-31 08:38:23 UTC (rev 3879)
@@ -265,6 +265,7 @@
lima.financialstatement.headeramount=Calculate amount on header
lima.financialstatement.label=Label
lima.financialstatement.movement.add=Add movement
+lima.financialstatement.notAllowedLabel=Not allowed label\: %s
lima.financialstatement.provisiondeprecationaccounts=Provisions and deprecations accounts list
lima.financialstatement.subamount=Calculate a subamount
lima.financialstatementreport.listerror=Can't get entries list
@@ -355,7 +356,7 @@
lima.importexport.usevatpdf=
lima.init.closed=Lima closed at %1$s
lima.init.errorclosing=Error during Lima close
-lima.ledger.documentcreationerror=Enable to create document
+lima.ledger.documentcreationerror=Enable to create document
lima.lettering.listerror=Can't get entries list
lima.menu.file=File
lima.menu.help=Help
Modified: trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties
===================================================================
--- trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties 2014-07-31 08:26:29 UTC (rev 3878)
+++ trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties 2014-07-31 08:38:23 UTC (rev 3879)
@@ -248,6 +248,7 @@
lima.financialstatement.headeramount=Calculer le total en en-tete
lima.financialstatement.label=Libellé
lima.financialstatement.movement.add=Ajouter un regrouprement
+lima.financialstatement.notAllowedLabel=Label non authorisé\: %s
lima.financialstatement.provisiondeprecationaccounts=Liste de comptes d'amortissement et provisions
lima.financialstatement.subamount=Calculer un sous-total
lima.financialstatementreport.listerror=Erreur lors de la récupération des données de la liste
1
0
31 Jul '14
Author: dcosse
Date: 2014-07-31 10:26:29 +0200 (Thu, 31 Jul 2014)
New Revision: 3878
Url: http://forge.chorem.org/projects/lima/repository/revisions/3878
Log:
refs #1032 gestion des imports des financial statement non ordonn?\195?\169s
Added:
trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotAllowedLabel.java
Modified:
trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java
trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java
trunk/lima-business/src/test/resources/import/bcr_developed.csv
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java 2014-07-30 22:18:28 UTC (rev 3877)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java 2014-07-31 08:26:29 UTC (rev 3878)
@@ -41,6 +41,7 @@
import org.chorem.lima.beans.ReportsDatas;
import org.chorem.lima.business.AlreadyExistFinancialTransaction;
import org.chorem.lima.business.LimaException;
+import org.chorem.lima.business.NotAllowedLabel;
import org.chorem.lima.business.api.AccountService;
import org.chorem.lima.business.api.FinancialStatementService;
import org.chorem.lima.business.api.ReportService;
@@ -83,7 +84,10 @@
}
};
- protected void validateNewFinancialStatement(FinancialStatement masterFinancialStatement, FinancialStatement financialStatement) throws AlreadyExistFinancialTransaction {
+ protected void validateNewFinancialStatement(FinancialStatement masterFinancialStatement, FinancialStatement financialStatement) throws AlreadyExistFinancialTransaction, NotAllowedLabel {
+ if (financialStatement.getLabel().contains("/")) {
+ throw new NotAllowedLabel(financialStatement.getLabel());
+ }
if (masterFinancialStatement != null) {
Collection<FinancialStatement> masterSubFinancialStatements = masterFinancialStatement.getSubFinancialStatements();
if (masterSubFinancialStatements == null) {
@@ -130,7 +134,7 @@
@Override
public FinancialStatement createFinancialStatement(FinancialStatement masterFinancialStatement,
- FinancialStatement financialStatement) throws AlreadyExistFinancialTransaction {
+ FinancialStatement financialStatement) throws AlreadyExistFinancialTransaction, NotAllowedLabel {
validateNewFinancialStatement(masterFinancialStatement, financialStatement);
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java 2014-07-30 22:18:28 UTC (rev 3877)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java 2014-07-31 08:26:29 UTC (rev 3878)
@@ -34,6 +34,7 @@
import org.chorem.lima.business.LockedEntryBookException;
import org.chorem.lima.business.LockedFinancialPeriodException;
import org.chorem.lima.business.MoreOneUnlockFiscalPeriodException;
+import org.chorem.lima.business.NotAllowedLabel;
import org.chorem.lima.business.api.AccountService;
import org.chorem.lima.business.api.EntryBookService;
import org.chorem.lima.business.api.EntryService;
@@ -228,7 +229,7 @@
return result;
}
- protected FinancialStatement returnFinancialStatement (FinancialStatement rootFinancialStatement, String subFinancialStatementLabel) throws AlreadyExistFinancialTransaction {
+ protected FinancialStatement returnFinancialStatement (FinancialStatement rootFinancialStatement, String subFinancialStatementLabel) throws AlreadyExistFinancialTransaction, NotAllowedLabel {
Collection<FinancialStatement> subFinancialStatements = rootFinancialStatement.getSubFinancialStatements();
FinancialStatement targetedFinancialStatement = null;
@@ -304,6 +305,11 @@
if (rootFinancialStatement == null) {
rootFinancialStatement = financialStatement;
rootFinancialStatement = financialStatementService.createFinancialStatement(null, rootFinancialStatement);
+ } else {
+ // in case it exist (not ordered import and previously created) values are bind to the previously created one excepted
+ // the sub financial statements
+ Binder<FinancialStatement, FinancialStatement> rootBinder = BinderFactory.newBinder(FinancialStatement.class, FinancialStatement.class);
+ rootBinder.copyExcluding(financialStatement, rootFinancialStatement, FinancialStatement.PROPERTY_SUB_FINANCIAL_STATEMENTS);
}
orderedFinancialStatements.put(rootFinancialStatement.getLabel(), rootFinancialStatement);
} else {
@@ -312,6 +318,7 @@
FinancialStatement rootFinancialStatement = orderedFinancialStatements.get(rootMasterName);
+ // case of not ordered import and subFinancialStatement is looking for it's master that has not been created yet
if (rootFinancialStatement == null) {
rootFinancialStatement = financialStatementService.newFinancialStatement();
rootFinancialStatement.setLabel(rootMasterName);
@@ -319,27 +326,45 @@
orderedFinancialStatements.put(rootMasterName, rootFinancialStatement);
}
- // 0 is root
- // explore branches
+ // explore branches to find the financialStatement's master one
FinancialStatement branchesFinancialStatement = rootFinancialStatement;
- for (int i = 1; i < masterNames.length; i++) {
+ for (int i = 1; i < masterNames.length; i++) {// 0 is root
String masterName = masterNames[i];
branchesFinancialStatement = returnFinancialStatement(branchesFinancialStatement, masterName);
}
- // if the master finacial statement has been modified then the current one is replace by the new one.
- financialStatement = financialStatementService.createFinancialStatement(branchesFinancialStatement, financialStatement);
- FinancialStatement targetedRootFinancialStatement = returnRootFinancialStatement(financialStatement);
+ // in case it exist (not ordered import and previously created) values are bind to the previously created one excepted
+ // the sub financial statements
+ boolean alreadyCreated = false;
+ if (branchesFinancialStatement != null && branchesFinancialStatement.getSubFinancialStatements() != null) {
+ for (FinancialStatement bfs : branchesFinancialStatement.getSubFinancialStatements()) {
+ if (bfs.getLabel().equals(financialStatement.getLabel())){
+ Binder<FinancialStatement, FinancialStatement> rootBinder = BinderFactory.newBinder(FinancialStatement.class, FinancialStatement.class);
+ rootBinder.copyExcluding(bfs, financialStatement, FinancialStatement.PROPERTY_SUB_FINANCIAL_STATEMENTS);
+ alreadyCreated = true;
+ }
+ }
+ }
- // replace modified root financial statement with new one
- if (orderedFinancialStatements.get(targetedRootFinancialStatement.getLabel()) != null) {
- orderedFinancialStatements.put(targetedRootFinancialStatement.getLabel(), targetedRootFinancialStatement);
+ // if necessary financial statement is created
+ if (!alreadyCreated) {
+ // if the master finacial statement has been modified then the current one is replace by the new one.
+ financialStatement = financialStatementService.createFinancialStatement(branchesFinancialStatement, financialStatement);
+ FinancialStatement targetedRootFinancialStatement = returnRootFinancialStatement(financialStatement);
+
+ // replace modified root financial statement with new one
+ if (orderedFinancialStatements.get(targetedRootFinancialStatement.getLabel()) != null) {
+ orderedFinancialStatements.put(targetedRootFinancialStatement.getLabel(), targetedRootFinancialStatement);
+ }
}
+
}
result.increaseCreated();
lineIndex++;
} catch (AlreadyExistFinancialTransaction e) {
result.getException().addException(lineIndex, e);
+ } catch (NotAllowedLabel e) {
+ result.getException().addException(lineIndex, e);
}
}
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java 2014-07-30 22:18:28 UTC (rev 3877)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java 2014-07-31 08:26:29 UTC (rev 3878)
@@ -355,29 +355,6 @@
}
};
- // TODO DCossé 29/07/14 is there a way to do sothing like that ?
-// protected static final ValueParser<FinancialStatement> MASTER_FINANCIAL_STATEMENT_LABEL_TO_MASTER_FINANCIAL_STATEMENT_PARSER = new ValueParser<FinancialStatement>() {
-//
-// @Override
-// public FinancialStatement parse(String value) {
-// FinancialStatement result = null;
-// if (StringUtils.isNotBlank(value)){
-// // look for master financial statement
-// // the last financialStatement is the current one.
-// int index = allFinancialStatements.size() - 2;
-// while (index > 0) {
-// FinancialStatement masterFinancialStatement = allFinancialStatements.get(index);
-// if (StringUtils.isNotBlank(masterFinancialStatement.getLabel()) && masterFinancialStatement.getLabel().equals(value)) {
-// result = masterFinancialStatement;
-// break;
-// }
-// index --;
-// }
-// }
-// return result;
-// }
-// };
-
protected static final ValueFormatter<FinancialStatement> MASTER_FINANCIAL_STATEMENT_TO_MASTER_FINANCIAL_STATEMENT_LABEL_FORMATTER = new ValueFormatter<FinancialStatement>() {
@Override
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java 2014-07-30 22:18:28 UTC (rev 3877)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java 2014-07-31 08:26:29 UTC (rev 3878)
@@ -7,6 +7,7 @@
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
+import org.chorem.lima.entity.FinancialStatement;
import org.chorem.lima.entity.FinancialTransaction;
import org.chorem.lima.entity.FiscalPeriod;
import org.junit.Assert;
@@ -17,6 +18,7 @@
import java.io.FileOutputStream;
import java.io.InputStream;
import java.nio.charset.Charset;
+import java.util.Collection;
import java.util.List;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
@@ -298,6 +300,7 @@
@Test
public void testImportFiscalStatementsAsCSV() throws Exception {
+ // not ordered csv import file
String bcr_developed = IOUtils.toString(ImportServiceImplTest.class.getResourceAsStream("/import/bcr_developed.csv"));
ImportResult result;
@@ -307,5 +310,11 @@
Assert.assertTrue(result.getException().getAllExceptionsByLine().isEmpty());
Assert.assertEquals(162, result.getNbCreated());
Assert.assertEquals(162, financialStatementService.getAllFinancialStatements().size());
+ FinancialStatement actifImmobiliseStatement = financialStatementService.getFinancialStatementByLabel("ACTIF IMMOBILISÉ");
+ Collection<FinancialStatement> subFinancialStatements = actifImmobiliseStatement.getSubFinancialStatements();
+ Assert.assertEquals(3, subFinancialStatements.size());
+ FinancialStatement bilanActifStatement = financialStatementService.getFinancialStatementByLabel("BILAN ACTIF");
+ subFinancialStatements = bilanActifStatement.getSubFinancialStatements();
+ Assert.assertEquals(6, subFinancialStatements.size());
}
}
Modified: trunk/lima-business/src/test/resources/import/bcr_developed.csv
===================================================================
--- trunk/lima-business/src/test/resources/import/bcr_developed.csv 2014-07-30 22:18:28 UTC (rev 3877)
+++ trunk/lima-business/src/test/resources/import/bcr_developed.csv 2014-07-31 08:26:29 UTC (rev 3878)
@@ -1,7 +1,5 @@
label;header;accounts;debitAccounts;creditAccounts;provisionDeprecationAccounts;subAmount;headerAmount;masterFinancialStatement;financialStatementWay
-BILAN ACTIF;O;;;;;O;N;;BOTH
Capital Souscrit non appelé;N;109; ; ; ;N;N;BILAN ACTIF;
-ACTIF IMMOBILISÉ;O; ; ; ; ;O;N;BILAN ACTIF;BOTH
Immobilisations incorporelles;O;;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ;BOTH
Frais d'établissement;N;201;;;2801;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
Frais de recherche et développement;N;203;;;2803;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
@@ -161,3 +159,5 @@
Reprises sur provisions et transferts de charges;N;"787, 797";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits exceptionnels;
Sur opérations en capital;N;"775, 777, 778";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits exceptionnels;
Sur opérations de gestion;N;771;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits exceptionnels;
+ACTIF IMMOBILISÉ;O; ; ; ; ;O;N;BILAN ACTIF;BOTH
+BILAN ACTIF;O;;;;"2808, 2908";;N;;BOTH
Added: trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotAllowedLabel.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotAllowedLabel.java (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/NotAllowedLabel.java 2014-07-31 08:26:29 UTC (rev 3878)
@@ -0,0 +1,17 @@
+package org.chorem.lima.business;
+
+/**
+ * Created by davidcosse on 31/07/14.
+ */
+public class NotAllowedLabel extends LimaException {
+
+ protected String label;
+
+ public NotAllowedLabel(String label) {
+ this.label = label;
+ }
+
+ public String getLabel() {
+ return label;
+ }
+}
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java 2014-07-30 22:18:28 UTC (rev 3877)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java 2014-07-31 08:26:29 UTC (rev 3878)
@@ -28,6 +28,7 @@
import org.chorem.lima.beans.FinancialStatementAmounts;
import org.chorem.lima.business.AlreadyExistFinancialTransaction;
import org.chorem.lima.business.LimaException;
+import org.chorem.lima.business.NotAllowedLabel;
import org.chorem.lima.entity.Account;
import org.chorem.lima.entity.FinancialStatement;
@@ -45,7 +46,7 @@
void createMasterFinacialStatements(FinancialStatement masterFinancialStatements);
FinancialStatement createFinancialStatement(FinancialStatement masterFinancialStatement,
- FinancialStatement financialStatement) throws AlreadyExistFinancialTransaction;
+ FinancialStatement financialStatement) throws AlreadyExistFinancialTransaction, NotAllowedLabel;
void updateFinancialStatement(FinancialStatement financialStatement);
1
0
Author: dcosse
Date: 2014-07-31 00:18:28 +0200 (Thu, 31 Jul 2014)
New Revision: 3877
Url: http://forge.chorem.org/projects/lima/repository/revisions/3877
Log:
refs #1032 maj des imports par d?\195?\169faut
Modified:
trunk/lima-swing/src/main/resources/import/eb_default.csv
trunk/lima-swing/src/main/resources/import/pcg_base.csv
trunk/lima-swing/src/main/resources/import/pcg_developed.csv
trunk/lima-swing/src/main/resources/import/pcg_shortened.csv
Modified: trunk/lima-swing/src/main/resources/import/eb_default.csv
===================================================================
--- trunk/lima-swing/src/main/resources/import/eb_default.csv 2014-07-30 21:28:07 UTC (rev 3876)
+++ trunk/lima-swing/src/main/resources/import/eb_default.csv 2014-07-30 22:18:28 UTC (rev 3877)
@@ -1,5 +1,6 @@
-"ENBK";"ACH";"Journal des achats"
-"ENBK";"VTE";"Journal des ventes"
-"ENBK";"ODT";"Journal des opérations diverses"
-"ENBK";"BQE";"Journal de trésorerie"
-"ENBK";"CSE";"Journal de caisse"
+code;label
+ACH;Journal des achats
+VTE;Journal des ventes
+ODT;Journal des opérations diverses
+BQE;Journal de trésorerie
+CSE;Journal de caisse
\ No newline at end of file
Modified: trunk/lima-swing/src/main/resources/import/pcg_base.csv
===================================================================
--- trunk/lima-swing/src/main/resources/import/pcg_base.csv 2014-07-30 21:28:07 UTC (rev 3876)
+++ trunk/lima-swing/src/main/resources/import/pcg_base.csv 2014-07-30 22:18:28 UTC (rev 3877)
@@ -1,461 +1,462 @@
-"ACCN";"101";"Capital";"";"10";""
-"ACCN";"104";"Primes liées au capital social";"";"10";""
-"ACCN";"105";"Ecarts de réévaluation";"";"10";""
-"ACCN";"1061";"Réserve légale";"";"106";""
-"ACCN";"1062";"Réserves indisponibles";"";"106";""
-"ACCN";"1063";"Réserves statutaires ou contractuelles";"";"106";""
-"ACCN";"1064";"Réserves réglementées";"";"106";""
-"ACCN";"106";"Réserves";"";"10";""
-"ACCN";"1068";"Autres réserves";"";"106";""
-"ACCN";"107";"Ecart d'équivalence";"";"10";""
-"ACCN";"108";"Compte de l'exploitant";"";"10";""
-"ACCN";"10";"CAPITAL ET RESERVE";"";"1";""
-"ACCN";"109";"Actionnaires : capital souscrit - non appelé";"";"10";""
-"ACCN";"110";"Report à nouveau (solde créditeur)";"";"11";""
-"ACCN";"11";"REPORT A NOUVEAU (solde créditeur ou débiteur)";"";"1";""
-"ACCN";"119";"Report à nouveau (solde débiteur)";"";"11";""
-"ACCN";"120";"Résultat de l'exercice (bénéfice)";"";"12";""
-"ACCN";"12";"RESULTAT DE L'EXERCICE (bénéfice ou perte)";"";"1";""
-"ACCN";"129";"Résultat de l'exercice (perte)";"";"12";""
-"ACCN";"131";"Subvention d'équipement";"";"13";""
-"ACCN";"138";"Autres subventions d'investissement";"";"13";""
-"ACCN";"13";"SUBVENTION D'NVESTISSEMENT";"";"1";""
-"ACCN";"1391";"Subventions d'équipement";"";"139";""
-"ACCN";"139";"Subventions d'investissement inscrites au compte de résultat";"";"13";""
-"ACCN";"1398";"Autres subventions d'investissement";"";"139";""
-"ACCN";"142";"Provisions réglementées relatives aux immobilisations";"";"14";""
-"ACCN";"143";"Provisions réglementées relatives aux stocks";"";"14";""
-"ACCN";"144";"Provisions réglementées relatives aux autres éléments de l'actif";"";"14";""
-"ACCN";"145";"Amortissements dérogatoires";"";"14";""
-"ACCN";"146";"Provision spéciale de réévaluation";"";"14";""
-"ACCN";"147";"Plus-values réinvesties";"";"14";""
-"ACCN";"14";"PROVISIONS REGLEMENTEES";"";"1";""
-"ACCN";"148";"Autres provisions réglementées";"";"14";""
-"ACCN";"151";"Provisions pour risques";"";"15";""
-"ACCN";"153";"Provisions pour pensions et obligations similaires";"";"15";""
-"ACCN";"154";"Provisions pour restructurations";"";"15";""
-"ACCN";"155";"Provisions pour impôts";"";"15";""
-"ACCN";"156";"Provisions pour renouvellement des immobilisations (entreprises concessionnaires)";"";"15";""
-"ACCN";"157";"Provisions pour charges à répartir sur plusieurs exercices";"";"15";""
-"ACCN";"15";"PROVlSlONS POUR RISQUES ET CHARGES";"";"1";""
-"ACCN";"158";"Autres provisions pour charges";"";"15";""
-"ACCN";"161";"Emprunt obligataires convertibles";"";"16";""
-"ACCN";"163";"Autres emprunts obligataires";"";"16";""
-"ACCN";"164";"Emprunts auprès des établissements de crédit";"";"16";""
-"ACCN";"165";"Dépôts et cautionnements reçus";"";"16";""
-"ACCN";"166";"Participation des salariés aux résultats";"";"16";""
-"ACCN";"16";"EMPRUNTS ET DETTES ASSIMILEES";"";"1";""
-"ACCN";"169";"Primes de remboursement des obligations";"";"16";""
-"ACCN";"171";"Dettes rattachées à des participations (groupe)";"";"17";""
-"ACCN";"174";"Dettes rattachées à des participations (hors groupe)";"";"17";""
-"ACCN";"17";"DETTES RATTACHÉES À DES PARTICIPATIONS";"";"1";""
-"ACCN";"178";"Dettes rattachées à des sociétés en participation";"";"17";""
-"ACCN";"1";"COMPTES DE CAPITAUX";"";"";""
-"ACCN";"201";"Frais d'établissement";"";"20";""
-"ACCN";"203";"Frais de recherche et de développement";"";"20";""
-"ACCN";"205";"Concessions et droits similaires";"";"20";""
-"ACCN";"206";"Droit au bail";"";"20";""
-"ACCN";"207";"Fonds commercial";"";"20";""
-"ACCN";"20";"IMMOBILISATIONS INCORPORELLES";"";"2";""
-"ACCN";"208";"Autres immobilisations incorporelles";"";"20";""
-"ACCN";"211";"Terrains";"";"21";""
-"ACCN";"212";"Agencements et aménagements de terrains";"";"21";""
-"ACCN";"213";"Constructions";"";"21";""
-"ACCN";"214";"Constructions sur sol d'autrui";"";"21";""
-"ACCN";"215";"Installations techniques; matériel et outillage industriels";"";"21";""
-"ACCN";"21";"IMMOBlLlSATIONS CORPORELLES";"";"2";""
-"ACCN";"218";"Autres immobilisations corporelles";"";"21";""
-"ACCN";"231";"Immobilisations corporelles en cours";"";"23";""
-"ACCN";"232";"Immobilisations incorporelles en cours";"";"23";""
-"ACCN";"237";"Avances et acomptes versés sur immobilisations incorporelles";"";"23";""
-"ACCN";"23";"IMMOBILlSATlONS EN COURS";"";"2";""
-"ACCN";"238";"Avances et acomptes versés sur immobilisations corporelles";"";"23";""
-"ACCN";"261";"Titres de participation";"";"26";""
-"ACCN";"266";"Autres formes de participation";"";"26";""
-"ACCN";"267";"Créances rattachées à des participations";"";"26";""
-"ACCN";"268";"Créances rattachées à des sociétés en participation";"";"26";""
-"ACCN";"26";"PARTICIPATIONS ET CRÉANCES RATTACHÉES À DES PARTICIPATIONS";"";"2";""
-"ACCN";"269";"Versements restant à effectuer sur titres de participation non libérés";"";"26";""
-"ACCN";"271";"Titres immobilisés autres que les titres immobilisés de l'activité portefeuille (droit de propriété)";"";"27";""
-"ACCN";"272";"Titres immobilisés (droits de créance)";"";"27";""
-"ACCN";"273";"Titres immobilisés de l'activité portefeuille";"";"27";""
-"ACCN";"274";"Prêts";"";"27";""
-"ACCN";"275";"Dépôts et cautionnements versés";"";"27";""
-"ACCN";"27";"AUTRES IMMOBILISATIONS FINANCIERES";"";"2";""
-"ACCN";"279";"Versements restant à effectuer sur titres immobilisés non libérés";"";"27";""
-"ACCN";"28";"AMORTISSEMENTS DES IMMOBILISATIONS";"";"2";""
-"ACCN";"2";"COMPTES D'IMMOBILISATIONS";"";"";""
-"ACCN";"29";"PROVISIONS POUR DEPRECIATION DES IMMOBILISATIONS";"";"2";""
-"ACCN";"311";"Matière (ou groupe) A";"";"31";""
-"ACCN";"312";"Matières (ou groupe) B";"";"31";""
-"ACCN";"31";"MATIERES PREMIERES (et fournitures)";"";"3";""
-"ACCN";"317";"Fournitures A, B, C...";"";"31";""
-"ACCN";"321";"Matières consommables";"";"32";""
-"ACCN";"322";"Fournitures consommables";"";"32";""
-"ACCN";"32";"AUTRES APPROVISIONNEMENTS";"";"3";""
-"ACCN";"326";"Emballages";"";"32";""
-"ACCN";"331";"Produits en cours";"";"33";""
-"ACCN";"33";"EN-COURS DE PRODUCTION DE BIENS";"";"3";""
-"ACCN";"335";"Travaux en cours";"";"33";""
-"ACCN";"341";"Etudes en cours";"";"34";""
-"ACCN";"34";"EN-COURS DE PRODUCTION DE SERVICES";"";"3";""
-"ACCN";"345";"Prestations de services en cours";"";"34";""
-"ACCN";"351";"Produits intermédiaires";"";"35";""
-"ACCN";"355";"Produits finis";"";"35";""
-"ACCN";"35";"STOCKS DE PRODUITS";"";"3";""
-"ACCN";"358";"Produits résiduels (ou matières de récupérations)";"";"35";""
-"ACCN";"371";"Marchandise (ou groupe) A";"";"37";""
-"ACCN";"37";"STOCKS DE MARCHANDISES";"";"3";""
-"ACCN";"372";"Marchandise (ou groupe) B";"";"37";""
-"ACCN";"3";"COMPTES DE STOCKS ET D'EN-COURS";"";"";""
-"ACCN";"391";"Provisions pour dépréciation des stocks d'approvisionnement";"";"39";""
-"ACCN";"392";"Provisions pour dépréciation des autres approvisionnements";"";"39";""
-"ACCN";"393";"Provisions pour dépréciation en-cours de production de biens";"";"39";""
-"ACCN";"394";"Provisions pour dépréciation en-cours de prod. de services";"";"39";""
-"ACCN";"395";"Provisions pour dépréciation des stocks de produits";"";"39";""
-"ACCN";"39";"PROVISIONS POUR DEPRECIATION DES STOCKS ET EN-COURS";"";"3";""
-"ACCN";"397";"Provisions pour dépréciation des stocks de marchandises";"";"39";""
-"ACCN";"400";"Fournisseurs et comptes rattachés";"";"40";""
-"ACCN";"401";"Fournisseurs";"";"40";""
-"ACCN";"403";"Fournisseurs - Effets à payer";"";"40";""
-"ACCN";"404";"Fournisseurs d'immobilisations";"";"40";""
-"ACCN";"405";"Fournisseurs d'immobilisations - Effets à payer";"";"40";""
-"ACCN";"40";"FOURNISSEURS ET COMPTES RATTACHES";"";"4";""
-"ACCN";"410";"Clients et comptes rattachés";"";"41";""
-"ACCN";"411";"Clients";"";"41";""
-"ACCN";"413";"Clients - Effets a recevoir";"";"41";""
-"ACCN";"416";"Clients douteux ou litigieux";"";"41";""
-"ACCN";"417";"Créances sur travaux non encore facturables";"";"41";""
-"ACCN";"418";"Clients - Produits non encore facturés";"";"41";""
-"ACCN";"41";"CLIENTS ET COMPTES RATTACHES";"";"4";""
-"ACCN";"421";"Personnel - Rémunérations dues";"";"42";""
-"ACCN";"422";"Comités d'entreprise, d'établissement...";"";"42";""
-"ACCN";"424";"Participations des salariés aux résultats";"";"42";""
-"ACCN";"425";"Personnel - Avances et acomptes";"";"42";""
-"ACCN";"426";"Personnel - Dépôts";"";"42";""
-"ACCN";"427";"Personnel - Oppositions";"";"42";""
-"ACCN";"42";"PERSONNEL ET COMPTES RATTACHES";"";"4";""
-"ACCN";"431";"Sécurité sociale";"";"43";""
-"ACCN";"437";"Autres organismes sociaux";"";"43";""
-"ACCN";"43";"SECURITE SOCIALE - AUTRES ORGANISMES SOCIAUX";"";"4";""
-"ACCN";"438";"Organismes sociaux - Charges à payer et produits à recevoir";"";"43";""
-"ACCN";"441";"État - Subventions à recevoir";"";"44";""
-"ACCN";"442";"État - Impôts et taxes recouvrables sur des tiers";"";"44";""
-"ACCN";"443";"Opérations particulières avec l'état, les collectivités publiques, les organismes internationaux";"";"44";""
-"ACCN";"444";"Etat - Impôts sur les bénéfices";"";"44";""
-"ACCN";"4452";"TVA due intracommunautaire";"";"445";""
-"ACCN";"4455";"Taxes sur le chiffre d'affaires à décaisser";"";"445";""
-"ACCN";"44551";"TVA à décaisser";"";"4455";""
-"ACCN";"44562";"TVA sur immobilisations";"";"4456";""
-"ACCN";"445661";"TVA sur autres biens et services 19;6% débits";"";"44566";""
-"ACCN";"445662";"TVA sur autres biens et services 5;5% débits";"";"44566";""
-"ACCN";"445664";"TVA sur autres biens et services 19;6% encaissements";"";"44566";""
-"ACCN";"44566";"TVA sur autres biens et services";"";"4456";""
-"ACCN";"445665";"TVA sur autres biens et services 5;5% encaissements";"";"44566";""
-"ACCN";"4456";"Taxes sur le chiffre d'affaires déductible";"";"445";""
-"ACCN";"44567";"Crédit de TVA à reporter";"";"4456";""
-"ACCN";"4457";"Taxes sur le chiffre d'affaires collectées par l'entreprise";"";"445";""
-"ACCN";"445711";"TVA collectée 19;6 % débits";"";"44571";""
-"ACCN";"445712";"TVA collectée 5;5 % débits";"";"44571";""
-"ACCN";"445714";"TVA collectée 19;6 % encaissements";"";"44571";""
-"ACCN";"44571";"TVA collectée";"";"4457";""
-"ACCN";"445715";"TVA collectée 5;5 % encaissements";"";"44571";""
-"ACCN";"445";"Etat - Taxes sur le chiffre d'affaires";"";"44";""
-"ACCN";"44583";"Remboursement de taxes sur le chiffre d'affaires demandé";"";"4458";""
-"ACCN";"44584";"TVA récupérée d'avance";"";"4458";""
-"ACCN";"44586";"Taxes sur le chiffre d'affaires sur factures non parvenues";"";"4458";""
-"ACCN";"4458";"Taxes sur le chiffre d'affaires à régulariser ou en attente";"";"445";""
-"ACCN";"44587";"Taxes sur le chiffre d'affaires sur factures à établir";"";"4458";""
-"ACCN";"446";"Obligations cautionnées";"";"44";""
-"ACCN";"44";"ETAT ET AUTRES COLLECTIVITES PUBLIQUES";"";"4";""
-"ACCN";"447";"Autres impôts; taxes et versements assimilés";"";"44";""
-"ACCN";"451";"Groupe";"";"45";""
-"ACCN";"455";"Associés - Comptes courants";"";"45";""
-"ACCN";"456";"Associés - Opérations sur le capital";"";"45";""
-"ACCN";"457";"Associés - Dividendes à payer";"";"45";""
-"ACCN";"45";"GROUPES ET ASSOCIES";"";"4";""
-"ACCN";"458";"Associés - Opérations faites en commun et en G.I.E.";"";"45";""
-"ACCN";"462";"Créances sur cessions d'immobilisations";"";"46";""
-"ACCN";"464";"Dettes sur acquisitions de valeurs mobilières de placement";"";"46";""
-"ACCN";"465";"Créances sur cessions de valeurs mobilières de placement";"";"46";""
-"ACCN";"467";"Autres comptes débiteurs ou créditeurs";"";"46";""
-"ACCN";"46";"DEBITEURS ET CREDITEURS DIVERS";"";"4";""
-"ACCN";"4686";"Charges à payer";"";"468";""
-"ACCN";"468";"Divers - Charges à payer et Produits à recevoir";"";"46";""
-"ACCN";"4687";"Produits à recevoir";"";"468";""
-"ACCN";"470";"Compte d'attente";"";"47";""
-"ACCN";"476";"Différence de conversion - Actif";"";"47";""
-"ACCN";"477";"Différences de conversion - Passif";"";"47";""
-"ACCN";"47";"COMPTES TRANSITOIRES OU D'ATTENTE";"";"4";""
-"ACCN";"478";"Autres comptes transitoires";"";"47";""
-"ACCN";"481";"Charges à repartir sur plusieurs exercices";"";"48";""
-"ACCN";"486";"Charges constatées d'avance";"";"48";""
-"ACCN";"487";"Produits constatés d'avance";"";"48";""
-"ACCN";"48";"COMPTE DE REGULARISATION";"";"4";""
-"ACCN";"488";"Comptes de répartition périodique des charges et des produits";"";"48";""
-"ACCN";"4";"COMPTES DE TIERS";"";"";""
-"ACCN";"491";"Provisions pour dépréciation des comptes de clients";"";"49";""
-"ACCN";"495";"Dépréciations des comptes du groupe et des associés";"";"49";""
-"ACCN";"49";"PROVISIONS POUR DEPRECIATION DES COMPTES DE TIERS";"";"4";""
-"ACCN";"496";"Provisions pour dépréciation des comptes de débiteurs divers";"";"49";""
-"ACCN";"501";"Parts dans des entreprises liées";"";"50";""
-"ACCN";"502";"Actions propres";"";"50";""
-"ACCN";"503";"Actions";"";"50";""
-"ACCN";"504";"Autres titres conférant un droit de propriété";"";"50";""
-"ACCN";"505";"Obligations et bons émis par la société et rachetés par elle";"";"50";""
-"ACCN";"506";"Obligations";"";"50";""
-"ACCN";"507";"Bons du Trésor et bons de caisse à court terme";"";"50";""
-"ACCN";"508";"Autres valeurs mobilières de placement et autres créances assimilées";"";"50";""
-"ACCN";"50";"VALEURS MOBILIERES DE PLACEMENT";"";"5";""
-"ACCN";"509";"Versements restant à effectuer sur valeurs mobilières de placement non libérées";"";"50";""
-"ACCN";"5111";"Espèces";"";"511";""
-"ACCN";"5112";"Chèques";"";"511";""
-"ACCN";"5113";"Cartes bancaires";"";"511";""
-"ACCN";"511";"Valeurs à I'encaissement";"";"51";""
-"ACCN";"5114";"Autres paiements";"";"511";""
-"ACCN";"5121";"Banque principale";"";"512";""
-"ACCN";"512";"Banques";"";"51";""
-"ACCN";"5122";"Banque secondaire";"";"512";""
-"ACCN";"514";"Chèques postaux";"";"51";""
-"ACCN";"515";"“ Caisses ” du Trésor et des établissements publics";"";"51";""
-"ACCN";"516";"Sociétés de bourse";"";"51";""
-"ACCN";"517";"Autres organismes financiers";"";"51";""
-"ACCN";"518";"Intérêts courus";"";"51";""
-"ACCN";"51";"BANQUES; ETABLISSEMENTS FINANCIERS ET ASSIMILES";"";"5";""
-"ACCN";"519";"Concours bancaires courants";"";"51";""
-"ACCN";"52";"INSTRUMENTS DE TRÉSORIE";"";"5";""
-"ACCN";"53";"CAISSE";"";"5";""
-"ACCN";"530";"Caisse";"";"53";""
-"ACCN";"54";"REGIES D'AVANCES ET ACCREDITIFS";"";"5";""
-"ACCN";"540";"Régies d'avances et accréditifs";"";"54";""
-"ACCN";"58";"VIREMENTS INTERNES";"";"5";""
-"ACCN";"580";"Virements internes";"";"58";""
-"ACCN";"5";"COMPTES FINANCIERS";"";"";""
-"ACCN";"59";"PROVISION POUR DÉPRÉCIATION DES COMPTES FINANCIERS";"";"5";""
-"ACCN";"590";"Provisions pour dépréciation valeurs mobilières de placement";"";"59";""
-"ACCN";"601";"Achats stockés - Matières premières (et fournitures)";"";"60";""
-"ACCN";"604";"Achats d'études et prestations de services";"";"60";""
-"ACCN";"605";"Achats de matériel, équipements et travaux";"";"60";""
-"ACCN";"606";"Achats non stockés de matières et fournitures";"";"60";""
-"ACCN";"607";"Achats de marchandises";"";"60";""
-"ACCN";"608";"Frais accessoires d'achat";"";"60";""
-"ACCN";"60";"ACHATS (sauf 603)";"";"6";""
-"ACCN";"611";"Sous-traitance générale";"";"61";""
-"ACCN";"612";"Redevances de crédit-bail";"";"61";""
-"ACCN";"613";"Locations";"";"61";""
-"ACCN";"614";"Charges locatives et de copropriété";"";"61";""
-"ACCN";"615";"Entretien et réparations";"";"61";""
-"ACCN";"616";"Primes d'assurance";"";"61";""
-"ACCN";"617";"Études et recherches";"";"61";""
-"ACCN";"618";"Divers";"";"61";""
-"ACCN";"61";"SERVICES EXTERIEURS";"";"6";""
-"ACCN";"619";"Rabais, remises et ristournes obtenus sur services extérieurs";"";"61";""
-"ACCN";"621";"Personnel extérieur à l'entreprise";"";"62";""
-"ACCN";"622";"Rémunérations d'intermédiaires et honoraires";"";"62";""
-"ACCN";"623";"Publicité; publications; relations publiques";"";"62";""
-"ACCN";"624";"Transports de biens et transports collectifs du personnel";"";"62";""
-"ACCN";"625";"Déplacements; missions et réceptions";"";"62";""
-"ACCN";"626";"Frais postaux et frais de télécommunications";"";"62";""
-"ACCN";"627";"Services bancaires et assimiles";"";"62";""
-"ACCN";"628";"Divers";"";"62";""
-"ACCN";"62";"AUTRES SERVICES EXTERIEURS";"";"6";""
-"ACCN";"629";"Rabais, remises et ristournes obtenus sur autres services extérieurs";"";"62";""
-"ACCN";"631";"Impôts, taxes et versements assimilés sur rémunérations (administrations des impôts)";"";"63";""
-"ACCN";"633";"Impôts; taxes et versements sur rémunérations (autres org.)";"";"63";""
-"ACCN";"635";"Autres impôts; taxes et versements (administration)";"";"63";""
-"ACCN";"637";"Autres impôts, taxes et versements assimilés (autres organismes)";"";"63";""
-"ACCN";"63";"IMPOTS; TAXES ET VERSEMENTS";"";"6";""
-"ACCN";"6371";"Contribution sociale de solidarité à la charge des sociétés";"";"63";""
-"ACCN";"6411";"Salaires";"";"641";""
-"ACCN";"6412";"Congés payes";"";"641";""
-"ACCN";"6413";"Primes et gratifications";"";"641";""
-"ACCN";"641";"Rémunérations du personnel";"";"64";""
-"ACCN";"6414";"Indemnités et avantages divers";"";"641";""
-"ACCN";"644";"Rémunération du travail de l'exploitant";"";"64";""
-"ACCN";"6451";"Cotisations à l'URSSAF";"";"645";""
-"ACCN";"6452";"Cotisations aux mutuelles";"";"645";""
-"ACCN";"6453";"Cotisations aux caisses de retraites";"";"645";""
-"ACCN";"645";"Charges de sécurité sociale et de prévoyance";"";"64";""
-"ACCN";"6454";"Cotisations aux ASSEDIC";"";"645";""
-"ACCN";"646";"Cotisations sociales personnelles de l'exploitant";"";"64";""
-"ACCN";"647";"Autres charges sociales";"";"64";""
-"ACCN";"64";"CHARGES DE PERSONNEL";"";"6";""
-"ACCN";"648";"Autres charges de personnel";"";"64";""
-"ACCN";"651";"Redevances pour concessions; brevets; licences; etc.";"";"65";""
-"ACCN";"653";"Jetons de présence";"";"65";""
-"ACCN";"654";"Pertes sur créances irrécouvrables";"";"65";""
-"ACCN";"655";"Quote-part de résultat sur opérations faites en commun";"";"65";""
-"ACCN";"65";"AUTRES CHARGES DE GESTION COURANTE";"";"6";""
-"ACCN";"658";"Autres charges de gestion courante";"";"65";""
-"ACCN";"661";"Charges d'intérêt";"";"66";""
-"ACCN";"664";"Pertes sur créances liées à des participations";"";"66";""
-"ACCN";"665";"Escomptes accordés";"";"66";""
-"ACCN";"667";"Charges nettes sur cessions de valeurs mobilières de placement";"";"66";""
-"ACCN";"66";"CHARGES FINANCIERES";"";"6";""
-"ACCN";"668";"Autres charges financières";"";"66";""
-"ACCN";"6688";"Pertes de change ou de conversion";"";"668";""
-"ACCN";"671";"Charges exceptionnelles sur opérations de gestion";"";"67";""
-"ACCN";"672";"Compte à la disposition des entités pour enregistrer, en cours d'exercice, les charges sur exercices antérieurs";"";"67";""
-"ACCN";"675";"Valeurs comptables des éléments d'actif cédés";"";"67";""
-"ACCN";"67";"CHARGES EXCEPTIONNELLES";"";"6";""
-"ACCN";"678";"Autres charges exceptionnelles";"";"67";""
-"ACCN";"68111";"Dotations aux amort. immobilisations incorporelles";"";"681";""
-"ACCN";"68112";"Dotations aux amort. immobilisations corporelles";"";"681";""
-"ACCN";"68161";"Dotations provisions dépréc. immos incorporelles";"";"681";""
-"ACCN";"681";"Dotations aux amortissements - Charges d'exploitation";"";"68";""
-"ACCN";"68162";"Dotations provisions dépréc. immos corporelles";"";"681";""
-"ACCN";"686";"Dotations aux amort. et provisions - Charges financières";"";"68";""
-"ACCN";"68";"DOTATIONS AUX AMORTISSEMENTS ET AUX PROVISIONS";"";"6";""
-"ACCN";"687";"Dotations aux amort. et provisions - Charges exceptionnelles";"";"68";""
-"ACCN";"68725";"Dotations provisions réglementées - Amort. dérogatoires";"";"687";""
-"ACCN";"6";"COMPTES DE CHARGES";"";"";""
-"ACCN";"691";"Participation des salaries aux résultats de l'entreprise";"";"69";""
-"ACCN";"695";"Impôts sur les bénéfices";"";"69";""
-"ACCN";"696";"Suppléments d'impôt sur les sociétés, liés aux distributions";"";"69";""
-"ACCN";"697";"Imposition forfaitaire annuelle des sociétés";"";"69";""
-"ACCN";"698";"Contribution additionnelle";"";"69";""
-"ACCN";"69";"PARTICIPATION DES SALARIES - IMPOTS SUR LES BENEFICES";"";"6";""
-"ACCN";"699";"Produits - Reports en arrière des déficits";"";"69";""
-"ACCN";"701";"Ventes de produits finis";"";"70";""
-"ACCN";"702";"Ventes de produits intermédiaires";"";"70";""
-"ACCN";"703";"Ventes de produits résiduels";"";"70";""
-"ACCN";"704";"Travaux";"";"70";""
-"ACCN";"705";"études";"";"70";""
-"ACCN";"706";"Travaux et prestations de services";"";"70";""
-"ACCN";"707";"Ventes de marchandises";"";"70";""
-"ACCN";"708";"Produits des activités annexes";"";"70";""
-"ACCN";"70";"VENTES DE PRODUITS; PRESTATIONS DE SERVICES; MARCHANDISES";"";"7";""
-"ACCN";"709";"Rabais; remises et ristournes accordées par l'entreprise";"";"70";""
-"ACCN";"71";"PRODUCTION STOCKEE (ou déstockage)";"";"7";""
-"ACCN";"7133";"Variation des en-cours de production de biens";"";"713";""
-"ACCN";"7134";"Variation des en-cours de production de services";"";"713";""
-"ACCN";"713";"VARIATION DES STOCKS (en-cours de production; produits)";"";"71";""
-"ACCN";"7135";"Variation des stocks de produits";"";"713";""
-"ACCN";"721";"Immobilisations incorporelles";"";"72";""
-"ACCN";"72";"PRODUCTION IMMOBILISEE";"";"7";""
-"ACCN";"722";"Immobilisations corporelles";"";"72";""
-"ACCN";"74";"SUBVENTlONS D'EXPLOITATION";"";"7";""
-"ACCN";"740";"Subventions d'exploitation";"";"74";""
-"ACCN";"751";"Redevances pour concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires";"";"75";""
-"ACCN";"752";"Revenus des immeubles non affectés à des activités professionnelles";"";"75";""
-"ACCN";"753";"Jetons de présence et rémunérations d'administrateurs, gérants";"";"75";""
-"ACCN";"754";"Ristournes perçues des coopératives (provenant des excédents)";"";"75";""
-"ACCN";"755";"Quotes-parts de résultat sur opérations faites en commun";"";"75";""
-"ACCN";"75";"AUTRES PRODUITS DE GESTION COURANTE";"";"7";""
-"ACCN";"758";"Produits divers de gestion courante";"";"75";""
-"ACCN";"761";"Produits de participations";"";"76";""
-"ACCN";"762";"Produits des autres immobilisations financières";"";"76";""
-"ACCN";"763";"Revenus des autres créances";"";"76";""
-"ACCN";"764";"Revenus des valeurs mobilières de placement";"";"76";""
-"ACCN";"765";"Escomptes obtenus";"";"76";""
-"ACCN";"766";"Gains de change";"";"76";""
-"ACCN";"767";"Produits nets sur cessions de valeurs mobilières de placement";"";"76";""
-"ACCN";"768";"Autres produits financiers";"";"76";""
-"ACCN";"76";"PRODUITS FINANCIERS";"";"7";""
-"ACCN";"7688";"Gains de change ou de conversion";"";"76";""
-"ACCN";"771";"Produits exceptionnels sur opérations de gestion";"";"77";""
-"ACCN";"772";"Compte à la disposition des entités pour enregistrer, en cours d'exercice, les produits sur exercices antérieurs";"";"77";""
-"ACCN";"775";"Produits des cessions d'éléments d'actif";"";"77";""
-"ACCN";"777";"Quote-part des subventions d'investissement virée au résultat de l'exercice";"";"77";""
-"ACCN";"77";"PRODUITS EXCEPTIONNELS";"";"7";""
-"ACCN";"778";"Autres produits exceptionnels";"";"77";""
-"ACCN";"78161";"Reprises prov. dépréc. immos incorporelles";"";"781";""
-"ACCN";"781";"Reprises sur amortissements et provisions";"";"78";""
-"ACCN";"78162";"Reprises prov. dépréc. immos corporelles";"";"781";""
-"ACCN";"786";"Reprises sur provisions pour risques";"";"78";""
-"ACCN";"78";"REPRISES SUR AMORTISSEMENTS ET PROVISIONS";"";"7";""
-"ACCN";"787";"Reprises sur provisions";"";"78";""
-"ACCN";"78725";"Reprises sur provisions - Amort. dérogatoires";"";"787";""
-"ACCN";"7";"COMPTES DE PRODUITS";"";"";""
-"ACCN";"791";"Transfert de charges d'exploitation";"";"79";""
-"ACCN";"79";"TRANSFERTS DE CHARGES";"";"7";""
-"ACCN";"796";"Transfert de charges financières";"";"79";""
-"ACCN";"801";"Engagements donnés par l'entreprise";"";"80";""
-"ACCN";"802";"Engagements reçus par l'entreprise";"";"80";""
-"ACCN";"80";"ENGAGEMENTS";"";"8";""
-"ACCN";"809";"Contrepartie des engagements";"";"80";""
-"ACCN";"88";"RESULTAT EN INSTANCE D'AFFECTATION";"";"8";""
-"ACCN";"8";"COMPTES SPECIAUX";"";"";""
-"ACCN";"890";"Bilan d'ouverture";"";"89";""
-"ACCN";"89";"BILAN";"";"8";""
-"ACCN";"891";"Bilan de clôture";"";"89";""
-"ACCN";"6031";"Variation des stocks de matières premières (et fournitures)";;"603";""
-"ACCN";"6032";"Variation des stocks des autres approvisionnements";;"603";""
-"ACCN";"603";"Variation des stocks (approvisionnements et marchandises)";"";"60";""
-"ACCN";"2761";"Créances diverses";;"276";""
-"ACCN";"276";"Autres créances immobilisées";"";"27";""
-"ACCN";"27682";"Sur titres immobilisés (droits de créance)";;"2768";""
-"ACCN";"27684";"Sur prêts";;"2768";""
-"ACCN";"27685";"Sur dépôts et cautionnements";;"2768";""
-"ACCN";"27688";"Sur créances diverses";;"2768";""
-"ACCN";"2768";"Intérêts courus";;"276";""
-"ACCN";"2801";"Frais d'établissement (même ventilation que celle du compte 201)";;"280";""
-"ACCN";"2803";"Frais de recherche et développement";;"280";""
-"ACCN";"2805";"Concessions et droits similaires, brevets, licences, logiciels, droits et valeurs similaires";;"280";""
-"ACCN";"2807";"Fonds commercial";;"280";""
-"ACCN";"2808";"Autres immobilisations incorporelles";;"280";""
-"ACCN";"280";"Amortissements des immobilisations incorporelles";"";"28";""
-"ACCN";"2811";"Terrains de gisement";;"281";""
-"ACCN";"2812";"Agencements, aménagements de terrains (même ventilation que celle du compte 212)";;"281";""
-"ACCN";"2813";"Constructions (même ventilation que celle du compte 213)";;"281";""
-"ACCN";"2814";"Constructions sur sol d'autrui (même ventilation que celle du compte 214)";;"281";""
-"ACCN";"2815";"Installations techniques, matériel et outillage industriels (même ventilation que celle du compte 215)";;"281";""
-"ACCN";"2818";"Autres immobilisations corporelles (même ventilation que celle du compte 218)";;"281";""
-"ACCN";"281";"Amortissements des immobilisations corporelles";"";"28";""
-"ACCN";"2905";"Marques, procédés, droits, et valeurs similaires";;"290";""
-"ACCN";"2906";"Droit au bail";;"290";""
-"ACCN";"2907";"Fonds commercial";;"290";""
-"ACCN";"2908";"Autres immobilisations incorporelles";;"290";""
-"ACCN";"290";"Provisions pour dépréciation immobilisations incorporelles";"";"29";""
-"ACCN";"2911";"Terrains (autres que terrains de gisement)";;"291";""
-"ACCN";"291";"Provisions pour dépréciation immobilisations corporelles";"";"29";""
-"ACCN";"2931";"Immobilisations corporelles en cours";;"293";""
-"ACCN";"2932";"Immobilisations incorporelles en cours";;"293";""
-"ACCN";"293";"Dépréciations des immobilisations en cours";"";"29";""
-"ACCN";"2961";"Titres de participation";;"296";""
-"ACCN";"2966";"Autres formes de participation";;"296";""
-"ACCN";"2967";"Créances rattachées à des participations (même ventilation que celle du compte 267)";;"296";""
-"ACCN";"2968";"Créances rattachées à des sociétés en participation (même ventilation que celle du compte 268)";;"296";""
-"ACCN";"296";" Dépréciations des participations et créances rattachées à des participations";"";"29";""
-"ACCN";"2971";"Titres immobilisés autres que les titres immobilisés de l'activité portefeuille - droit de propriété (même ventilation que celle du compte 271)";;"297";""
-"ACCN";"2972";"Titres immobilisés - droit de créance (même ventilation que celle du compte 272)";;"297";""
-"ACCN";"2973";"Titres immobilisés de l'activité portefeuille";;"297";""
-"ACCN";"2974";"Prêts (même ventilation que celle du compte 274)";;"297";""
-"ACCN";"2975";"Dépôts et cautionnements versés (même ventilation que celle du compte 275)";;"297";""
-"ACCN";"2976";"Autres créances immobilisées (même ventilation que celle du compte 276)";;"297";""
-"ACCN";"297";"Provisions pour dépréciation des immobilisations financières";"";"29";""
-"ACCN";"1671";"Émissions de titres participatifs";;"167";""
-"ACCN";"1674";"Avances conditionnées de l'État";;"167";""
-"ACCN";"1675";"Emprunts participatifs";;"167";""
-"ACCN";"167";"Emprunts et dettes assortis de conditions particulières";"";"16";""
-"ACCN";"168";"Autres emprunts et dettes assimilées";"";"16";""
-"ACCN";"4081";"Fournisseurs";;"408";""
-"ACCN";"4084";"Fournisseurs d'immobilisations";;"408";""
-"ACCN";"4088";"Fournisseurs - Intérêts courus";;"408";""
-"ACCN";"408";"Fournisseurs - Factures non parvenues";"";"40";""
-"ACCN";"4091";"Fournisseurs - Avances et acomptes versés sur commandes";;"409";""
-"ACCN";"4096";"Fournisseurs - Créances pour emballages et matériel à rendre";;"409";""
-"ACCN";"4097";"Fournisseurs - Autres Avoirs";;"409";""
-"ACCN";"4098";"Rabais, remises, ristournes à obtenir et autres avoirs non encore reçus";;"409";""
-"ACCN";"409";"Fournisseurs débiteurs";"";"40";""
-"ACCN";"4191";"Clients - Avances et acomptes reçus sur commandes";;"419";""
-"ACCN";"4196";"Clients - Dettes pour emballages et matériels consignés";;"419";""
-"ACCN";"4197";"Clients - Autres avoirs";;"419";""
-"ACCN";"4198";"Rabais, remises, ristournes à accorder et autres avoirs à établir";;"419";""
-"ACCN";"419";"Clients créditeurs";"";"41";""
-"ACCN";"4282";"Dettes provisionnées pour congés à payer";;"428";""
-"ACCN";"4284";"Dettes provisionnées pour participation des salariés aux résultats";;"428";""
-"ACCN";"4286";"Autres charges à payer";;"428";""
-"ACCN";"4287";"Produits à recevoir";;"428";""
-"ACCN";"428";"Personnel - Charges à payer et produits à recevoir";"";"42";""
-"ACCN";"6022";"Fournitures consommables";;"602";""
-"ACCN";"602";"Achats stockés - Autres approvisionnements";"";"60";""
-"ACCN";"6026";"Emballages";;"602";""
-"ACCN";"6091";"de matières premières (et fournitures)";;"609";""
-"ACCN";"6092";"d'autres approvisionnements stockés";;"609";""
-"ACCN";"6094";"d'études et de prestations de services";;"609";""
-"ACCN";"6095";"de matériel, équipements et travaux";;"609";""
-"ACCN";"6096";"d'approvisionnements non stockés";;"609";""
-"ACCN";"6097";"de marchandises";;"609";""
-"ACCN";"6098";"Rabais, remises et ristournes non affectés";;"609";""
-"ACCN";"609";"Rabais; remises et ristournes obtenus sur achats";"";"60";""
+accountNumber;label;thirdParty
+101;Capital;
+104;Primes liées au capital social;
+105;Ecarts de réévaluation;
+1061;Réserve légale;
+1062;Réserves indisponibles;
+1063;Réserves statutaires ou contractuelles;
+1064;Réserves réglementées;
+106;Réserves;
+1068;Autres réserves;
+107;Ecart d'équivalence;
+108;Compte de l'exploitant;
+10;CAPITAL ET RESERVE;
+109;Actionnaires : capital souscrit - non appelé;
+110;Report à nouveau (solde créditeur);
+11;REPORT A NOUVEAU (solde créditeur ou débiteur);
+119;Report à nouveau (solde débiteur);
+120;Résultat de l'exercice (bénéfice);
+12;RESULTAT DE L'EXERCICE (bénéfice ou perte);
+129;Résultat de l'exercice (perte);
+131;Subvention d'équipement;
+138;Autres subventions d'investissement;
+13;SUBVENTION D'NVESTISSEMENT;
+1391;Subventions d'équipement;
+139;Subventions d'investissement inscrites au compte de résultat;
+1398;Autres subventions d'investissement;
+142;Provisions réglementées relatives aux immobilisations;
+143;Provisions réglementées relatives aux stocks;
+144;Provisions réglementées relatives aux autres éléments de l'actif;
+145;Amortissements dérogatoires;
+146;Provision spéciale de réévaluation;
+147;Plus-values réinvesties;
+14;PROVISIONS REGLEMENTEES;
+148;Autres provisions réglementées;
+151;Provisions pour risques;
+153;Provisions pour pensions et obligations similaires;
+154;Provisions pour restructurations;
+155;Provisions pour impôts;
+156;Provisions pour renouvellement des immobilisations (entreprises concessionnaires);
+157;Provisions pour charges à répartir sur plusieurs exercices;
+15;PROVlSlONS POUR RISQUES ET CHARGES;
+158;Autres provisions pour charges;
+161;Emprunt obligataires convertibles;
+163;Autres emprunts obligataires;
+164;Emprunts auprès des établissements de crédit;
+165;Dépôts et cautionnements reçus;
+166;Participation des salariés aux résultats;
+16;EMPRUNTS ET DETTES ASSIMILEES;
+169;Primes de remboursement des obligations;
+171;Dettes rattachées à des participations (groupe);
+174;Dettes rattachées à des participations (hors groupe);
+17;DETTES RATTACHÉES À DES PARTICIPATIONS;
+178;Dettes rattachées à des sociétés en participation;
+1;COMPTES DE CAPITAUX;
+201;Frais d'établissement;
+203;Frais de recherche et de développement;
+205;Concessions et droits similaires;
+206;Droit au bail;
+207;Fonds commercial;
+20;IMMOBILISATIONS INCORPORELLES;
+208;Autres immobilisations incorporelles;
+211;Terrains;
+212;Agencements et aménagements de terrains;
+213;Constructions;
+214;Constructions sur sol d'autrui;
+215;"Installations techniques; matériel et outillage industriels";
+21;IMMOBlLlSATIONS CORPORELLES;
+218;Autres immobilisations corporelles;
+231;Immobilisations corporelles en cours;
+232;Immobilisations incorporelles en cours;
+237;Avances et acomptes versés sur immobilisations incorporelles;
+23;IMMOBILlSATlONS EN COURS;
+238;Avances et acomptes versés sur immobilisations corporelles;
+261;Titres de participation;
+266;Autres formes de participation;
+267;Créances rattachées à des participations;
+268;Créances rattachées à des sociétés en participation;
+26;PARTICIPATIONS ET CRÉANCES RATTACHÉES À DES PARTICIPATIONS;
+269;Versements restant à effectuer sur titres de participation non libérés;
+271;Titres immobilisés autres que les titres immobilisés de l'activité portefeuille (droit de propriété);
+272;Titres immobilisés (droits de créance);
+273;Titres immobilisés de l'activité portefeuille;
+274;Prêts;
+275;Dépôts et cautionnements versés;
+27;AUTRES IMMOBILISATIONS FINANCIERES;
+279;Versements restant à effectuer sur titres immobilisés non libérés;
+28;AMORTISSEMENTS DES IMMOBILISATIONS;
+2;COMPTES D'IMMOBILISATIONS;
+29;PROVISIONS POUR DEPRECIATION DES IMMOBILISATIONS;
+311;Matière (ou groupe) A;
+312;Matières (ou groupe) B;
+31;MATIERES PREMIERES (et fournitures);
+317;"Fournitures A, B, C...";
+321;Matières consommables;
+322;Fournitures consommables;
+32;AUTRES APPROVISIONNEMENTS;
+326;Emballages;
+331;Produits en cours;
+33;EN-COURS DE PRODUCTION DE BIENS;
+335;Travaux en cours;
+341;Etudes en cours;
+34;EN-COURS DE PRODUCTION DE SERVICES;
+345;Prestations de services en cours;
+351;Produits intermédiaires;
+355;Produits finis;
+35;STOCKS DE PRODUITS;
+358;Produits résiduels (ou matières de récupérations);
+371;Marchandise (ou groupe) A;
+37;STOCKS DE MARCHANDISES;
+372;Marchandise (ou groupe) B;
+3;COMPTES DE STOCKS ET D'EN-COURS;
+391;Provisions pour dépréciation des stocks d'approvisionnement;
+392;Provisions pour dépréciation des autres approvisionnements;
+393;Provisions pour dépréciation en-cours de production de biens;
+394;Provisions pour dépréciation en-cours de prod. de services;
+395;Provisions pour dépréciation des stocks de produits;
+39;PROVISIONS POUR DEPRECIATION DES STOCKS ET EN-COURS;
+397;Provisions pour dépréciation des stocks de marchandises;
+400;Fournisseurs et comptes rattachés;
+401;Fournisseurs;
+403;Fournisseurs - Effets à payer;
+404;Fournisseurs d'immobilisations;
+405;Fournisseurs d'immobilisations - Effets à payer;
+40;FOURNISSEURS ET COMPTES RATTACHES;
+410;Clients et comptes rattachés;
+411;Clients;
+413;Clients - Effets a recevoir;
+416;Clients douteux ou litigieux;
+417;Créances sur travaux non encore facturables;
+418;Clients - Produits non encore facturés;
+41;CLIENTS ET COMPTES RATTACHES;
+421;Personnel - Rémunérations dues;
+422;"Comités d'entreprise, d'établissement...";
+424;Participations des salariés aux résultats;
+425;Personnel - Avances et acomptes;
+426;Personnel - Dépôts;
+427;Personnel - Oppositions;
+42;PERSONNEL ET COMPTES RATTACHES;
+431;Sécurité sociale;
+437;Autres organismes sociaux;
+43;SECURITE SOCIALE - AUTRES ORGANISMES SOCIAUX;
+438;Organismes sociaux - Charges à payer et produits à recevoir;
+441;État - Subventions à recevoir;
+442;État - Impôts et taxes recouvrables sur des tiers;
+443;"Opérations particulières avec l'état, les collectivités publiques, les organismes internationaux";
+444;Etat - Impôts sur les bénéfices;
+4452;TVA due intracommunautaire;
+4455;Taxes sur le chiffre d'affaires à décaisser;
+44551;TVA à décaisser;
+44562;TVA sur immobilisations;
+445661;"TVA sur autres biens et services 19;6% débits";
+445662;"TVA sur autres biens et services 5;5% débits";
+445664;"TVA sur autres biens et services 19;6% encaissements";
+44566;TVA sur autres biens et services;
+445665;"TVA sur autres biens et services 5;5% encaissements";
+4456;Taxes sur le chiffre d'affaires déductible;
+44567;Crédit de TVA à reporter;
+4457;Taxes sur le chiffre d'affaires collectées par l'entreprise;
+445711;"TVA collectée 19;6 % débits";
+445712;"TVA collectée 5;5 % débits";
+445714;"TVA collectée 19;6 % encaissements";
+44571;TVA collectée;
+445715;"TVA collectée 5;5 % encaissements";
+445;Etat - Taxes sur le chiffre d'affaires;
+44583;Remboursement de taxes sur le chiffre d'affaires demandé;
+44584;TVA récupérée d'avance;
+44586;Taxes sur le chiffre d'affaires sur factures non parvenues;
+4458;Taxes sur le chiffre d'affaires à régulariser ou en attente;
+44587;Taxes sur le chiffre d'affaires sur factures à établir;
+446;Obligations cautionnées;
+44;ETAT ET AUTRES COLLECTIVITES PUBLIQUES;
+447;"Autres impôts; taxes et versements assimilés";
+451;Groupe;
+455;Associés - Comptes courants;
+456;Associés - Opérations sur le capital;
+457;Associés - Dividendes à payer;
+45;GROUPES ET ASSOCIES;
+458;Associés - Opérations faites en commun et en G.I.E.;
+462;Créances sur cessions d'immobilisations;
+464;Dettes sur acquisitions de valeurs mobilières de placement;
+465;Créances sur cessions de valeurs mobilières de placement;
+467;Autres comptes débiteurs ou créditeurs;
+46;DEBITEURS ET CREDITEURS DIVERS;
+4686;Charges à payer;
+468;Divers - Charges à payer et Produits à recevoir;
+4687;Produits à recevoir;
+470;Compte d'attente;
+476;Différence de conversion - Actif;
+477;Différences de conversion - Passif;
+47;COMPTES TRANSITOIRES OU D'ATTENTE;
+478;Autres comptes transitoires;
+481;Charges à repartir sur plusieurs exercices;
+486;Charges constatées d'avance;
+487;Produits constatés d'avance;
+48;COMPTE DE REGULARISATION;
+488;Comptes de répartition périodique des charges et des produits;
+4;COMPTES DE TIERS;
+491;Provisions pour dépréciation des comptes de clients;
+495;Dépréciations des comptes du groupe et des associés;
+49;PROVISIONS POUR DEPRECIATION DES COMPTES DE TIERS;
+496;Provisions pour dépréciation des comptes de débiteurs divers;
+501;Parts dans des entreprises liées;
+502;Actions propres;
+503;Actions;
+504;Autres titres conférant un droit de propriété;
+505;Obligations et bons émis par la société et rachetés par elle;
+506;Obligations;
+507;Bons du Trésor et bons de caisse à court terme;
+508;Autres valeurs mobilières de placement et autres créances assimilées;
+50;VALEURS MOBILIERES DE PLACEMENT;
+509;Versements restant à effectuer sur valeurs mobilières de placement non libérées;
+5111;Espèces;
+5112;Chèques;
+5113;Cartes bancaires;
+511;Valeurs à I'encaissement;
+5114;Autres paiements;
+5121;Banque principale;
+512;Banques;
+5122;Banque secondaire;
+514;Chèques postaux;
+515;“ Caisses ” du Trésor et des établissements publics;
+516;Sociétés de bourse;
+517;Autres organismes financiers;
+518;Intérêts courus;
+51;"BANQUES; ETABLISSEMENTS FINANCIERS ET ASSIMILES";
+519;Concours bancaires courants;
+52;INSTRUMENTS DE TRÉSORIE;
+53;CAISSE;
+530;Caisse;
+54;REGIES D'AVANCES ET ACCREDITIFS;
+540;Régies d'avances et accréditifs;
+58;VIREMENTS INTERNES;
+580;Virements internes;
+5;COMPTES FINANCIERS;
+59;PROVISION POUR DÉPRÉCIATION DES COMPTES FINANCIERS;
+590;Provisions pour dépréciation valeurs mobilières de placement;
+601;Achats stockés - Matières premières (et fournitures);
+604;Achats d'études et prestations de services;
+605;"Achats de matériel, équipements et travaux";
+606;Achats non stockés de matières et fournitures;
+607;Achats de marchandises;
+608;Frais accessoires d'achat;
+60;ACHATS (sauf 603);
+611;Sous-traitance générale;
+612;Redevances de crédit-bail;
+613;Locations;
+614;Charges locatives et de copropriété;
+615;Entretien et réparations;
+616;Primes d'assurance;
+617;Études et recherches;
+618;Divers;
+61;SERVICES EXTERIEURS;
+619;"Rabais, remises et ristournes obtenus sur services extérieurs";
+621;Personnel extérieur à l'entreprise;
+622;Rémunérations d'intermédiaires et honoraires;
+623;"Publicité; publications; relations publiques";
+624;Transports de biens et transports collectifs du personnel;
+625;"Déplacements; missions et réceptions";
+626;Frais postaux et frais de télécommunications;
+627;Services bancaires et assimiles;
+628;Divers;
+62;AUTRES SERVICES EXTERIEURS;
+629;"Rabais, remises et ristournes obtenus sur autres services extérieurs";
+631;"Impôts, taxes et versements assimilés sur rémunérations (administrations des impôts)";
+633;"Impôts; taxes et versements sur rémunérations (autres org.)";
+635;"Autres impôts; taxes et versements (administration)";
+637;"Autres impôts, taxes et versements assimilés (autres organismes)";
+63;"IMPOTS; TAXES ET VERSEMENTS";
+6371;Contribution sociale de solidarité à la charge des sociétés;
+6411;Salaires;
+6412;Congés payes;
+6413;Primes et gratifications;
+641;Rémunérations du personnel;
+6414;Indemnités et avantages divers;
+644;Rémunération du travail de l'exploitant;
+6451;Cotisations à l'URSSAF;
+6452;Cotisations aux mutuelles;
+6453;Cotisations aux caisses de retraites;
+645;Charges de sécurité sociale et de prévoyance;
+6454;Cotisations aux ASSEDIC;
+646;Cotisations sociales personnelles de l'exploitant;
+647;Autres charges sociales;
+64;CHARGES DE PERSONNEL;
+648;Autres charges de personnel;
+651;"Redevances pour concessions; brevets; licences; etc.";
+653;Jetons de présence;
+654;Pertes sur créances irrécouvrables;
+655;Quote-part de résultat sur opérations faites en commun;
+65;AUTRES CHARGES DE GESTION COURANTE;
+658;Autres charges de gestion courante;
+661;Charges d'intérêt;
+664;Pertes sur créances liées à des participations;
+665;Escomptes accordés;
+667;Charges nettes sur cessions de valeurs mobilières de placement;
+66;CHARGES FINANCIERES;
+668;Autres charges financières;
+6688;Pertes de change ou de conversion;
+671;Charges exceptionnelles sur opérations de gestion;
+672;"Compte à la disposition des entités pour enregistrer, en cours d'exercice, les charges sur exercices antérieurs";
+675;Valeurs comptables des éléments d'actif cédés;
+67;CHARGES EXCEPTIONNELLES;
+678;Autres charges exceptionnelles;
+68111;Dotations aux amort. immobilisations incorporelles;
+68112;Dotations aux amort. immobilisations corporelles;
+68161;Dotations provisions dépréc. immos incorporelles;
+681;Dotations aux amortissements - Charges d'exploitation;
+68162;Dotations provisions dépréc. immos corporelles;
+686;Dotations aux amort. et provisions - Charges financières;
+68;DOTATIONS AUX AMORTISSEMENTS ET AUX PROVISIONS;
+687;Dotations aux amort. et provisions - Charges exceptionnelles;
+68725;Dotations provisions réglementées - Amort. dérogatoires;
+6;COMPTES DE CHARGES;
+691;Participation des salaries aux résultats de l'entreprise;
+695;Impôts sur les bénéfices;
+696;"Suppléments d'impôt sur les sociétés, liés aux distributions";
+697;Imposition forfaitaire annuelle des sociétés;
+698;Contribution additionnelle;
+69;PARTICIPATION DES SALARIES - IMPOTS SUR LES BENEFICES;
+699;Produits - Reports en arrière des déficits;
+701;Ventes de produits finis;
+702;Ventes de produits intermédiaires;
+703;Ventes de produits résiduels;
+704;Travaux;
+705;études;
+706;Travaux et prestations de services;
+707;Ventes de marchandises;
+708;Produits des activités annexes;
+70;"VENTES DE PRODUITS; PRESTATIONS DE SERVICES; MARCHANDISES";
+709;"Rabais; remises et ristournes accordées par l'entreprise";
+71;PRODUCTION STOCKEE (ou déstockage);
+7133;Variation des en-cours de production de biens;
+7134;Variation des en-cours de production de services;
+713;"VARIATION DES STOCKS (en-cours de production; produits)";
+7135;Variation des stocks de produits;
+721;Immobilisations incorporelles;
+72;PRODUCTION IMMOBILISEE;
+722;Immobilisations corporelles;
+74;SUBVENTlONS D'EXPLOITATION;
+740;Subventions d'exploitation;
+751;"Redevances pour concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires";
+752;Revenus des immeubles non affectés à des activités professionnelles;
+753;"Jetons de présence et rémunérations d'administrateurs, gérants";
+754;Ristournes perçues des coopératives (provenant des excédents);
+755;Quotes-parts de résultat sur opérations faites en commun;
+75;AUTRES PRODUITS DE GESTION COURANTE;
+758;Produits divers de gestion courante;
+761;Produits de participations;
+762;Produits des autres immobilisations financières;
+763;Revenus des autres créances;
+764;Revenus des valeurs mobilières de placement;
+765;Escomptes obtenus;
+766;Gains de change;
+767;Produits nets sur cessions de valeurs mobilières de placement;
+768;Autres produits financiers;
+76;PRODUITS FINANCIERS;
+7688;Gains de change ou de conversion;
+771;Produits exceptionnels sur opérations de gestion;
+772;"Compte à la disposition des entités pour enregistrer, en cours d'exercice, les produits sur exercices antérieurs";
+775;Produits des cessions d'éléments d'actif;
+777;Quote-part des subventions d'investissement virée au résultat de l'exercice;
+77;PRODUITS EXCEPTIONNELS;
+778;Autres produits exceptionnels;
+78161;Reprises prov. dépréc. immos incorporelles;
+781;Reprises sur amortissements et provisions;
+78162;Reprises prov. dépréc. immos corporelles;
+786;Reprises sur provisions pour risques;
+78;REPRISES SUR AMORTISSEMENTS ET PROVISIONS;
+787;Reprises sur provisions;
+78725;Reprises sur provisions - Amort. dérogatoires;
+7;COMPTES DE PRODUITS;
+791;Transfert de charges d'exploitation;
+79;TRANSFERTS DE CHARGES;
+796;Transfert de charges financières;
+801;Engagements donnés par l'entreprise;
+802;Engagements reçus par l'entreprise;
+80;ENGAGEMENTS;
+809;Contrepartie des engagements;
+88;RESULTAT EN INSTANCE D'AFFECTATION;
+8;COMPTES SPECIAUX;
+890;Bilan d'ouverture;
+89;BILAN;
+891;Bilan de clôture;
+6031;Variation des stocks de matières premières (et fournitures);
+6032;Variation des stocks des autres approvisionnements;
+603;Variation des stocks (approvisionnements et marchandises);
+2761;Créances diverses;
+276;Autres créances immobilisées;
+27682;Sur titres immobilisés (droits de créance);
+27684;Sur prêts;
+27685;Sur dépôts et cautionnements;
+27688;Sur créances diverses;
+2768;Intérêts courus;
+2801;Frais d'établissement (même ventilation que celle du compte 201);
+2803;Frais de recherche et développement;
+2805;"Concessions et droits similaires, brevets, licences, logiciels, droits et valeurs similaires";
+2807;Fonds commercial;
+2808;Autres immobilisations incorporelles;
+280;Amortissements des immobilisations incorporelles;
+2811;Terrains de gisement;
+2812;"Agencements, aménagements de terrains (même ventilation que celle du compte 212)";
+2813;Constructions (même ventilation que celle du compte 213);
+2814;Constructions sur sol d'autrui (même ventilation que celle du compte 214);
+2815;"Installations techniques, matériel et outillage industriels (même ventilation que celle du compte 215)";
+2818;Autres immobilisations corporelles (même ventilation que celle du compte 218);
+281;Amortissements des immobilisations corporelles;
+2905;"Marques, procédés, droits, et valeurs similaires";
+2906;Droit au bail;
+2907;Fonds commercial;
+2908;Autres immobilisations incorporelles;
+290;Provisions pour dépréciation immobilisations incorporelles;
+2911;Terrains (autres que terrains de gisement);
+291;Provisions pour dépréciation immobilisations corporelles;
+2931;Immobilisations corporelles en cours;
+2932;Immobilisations incorporelles en cours;
+293;Dépréciations des immobilisations en cours;
+2961;Titres de participation;
+2966;Autres formes de participation;
+2967;Créances rattachées à des participations (même ventilation que celle du compte 267);
+2968;Créances rattachées à des sociétés en participation (même ventilation que celle du compte 268);
+296;Dépréciations des participations et créances rattachées à des participations;
+2971;Titres immobilisés autres que les titres immobilisés de l'activité portefeuille - droit de propriété (même ventilation que celle du compte 271);
+2972;Titres immobilisés - droit de créance (même ventilation que celle du compte 272);
+2973;Titres immobilisés de l'activité portefeuille;
+2974;Prêts (même ventilation que celle du compte 274);
+2975;Dépôts et cautionnements versés (même ventilation que celle du compte 275);
+2976;Autres créances immobilisées (même ventilation que celle du compte 276);
+297;Provisions pour dépréciation des immobilisations financières;
+1671;Émissions de titres participatifs;
+1674;Avances conditionnées de l'État;
+1675;Emprunts participatifs;
+167;Emprunts et dettes assortis de conditions particulières;
+168;Autres emprunts et dettes assimilées;
+4081;Fournisseurs;
+4084;Fournisseurs d'immobilisations;
+4088;Fournisseurs - Intérêts courus;
+408;Fournisseurs - Factures non parvenues;
+4091;Fournisseurs - Avances et acomptes versés sur commandes;
+4096;Fournisseurs - Créances pour emballages et matériel à rendre;
+4097;Fournisseurs - Autres Avoirs;
+4098;"Rabais, remises, ristournes à obtenir et autres avoirs non encore reçus";
+409;Fournisseurs débiteurs;
+4191;Clients - Avances et acomptes reçus sur commandes;
+4196;Clients - Dettes pour emballages et matériels consignés;
+4197;Clients - Autres avoirs;
+4198;"Rabais, remises, ristournes à accorder et autres avoirs à établir";
+419;Clients créditeurs;
+4282;Dettes provisionnées pour congés à payer;
+4284;Dettes provisionnées pour participation des salariés aux résultats;
+4286;Autres charges à payer;
+4287;Produits à recevoir;
+428;Personnel - Charges à payer et produits à recevoir;
+6022;Fournitures consommables;
+602;Achats stockés - Autres approvisionnements;
+6026;Emballages;
+6091;de matières premières (et fournitures);
+6092;d'autres approvisionnements stockés;
+6094;d'études et de prestations de services;
+6095;"de matériel, équipements et travaux";
+6096;d'approvisionnements non stockés;
+6097;de marchandises;
+6098;"Rabais, remises et ristournes non affectés";
+609;"Rabais; remises et ristournes obtenus sur achats";
Modified: trunk/lima-swing/src/main/resources/import/pcg_developed.csv
===================================================================
--- trunk/lima-swing/src/main/resources/import/pcg_developed.csv 2014-07-30 21:28:07 UTC (rev 3876)
+++ trunk/lima-swing/src/main/resources/import/pcg_developed.csv 2014-07-30 22:18:28 UTC (rev 3877)
@@ -1,992 +1,186 @@
-"ACCN";"1011";"Capital souscrit - non appelé";"";"101";""
-"ACCN";"1012";"Capital souscrit - appelé; non versé";"";"101";""
-"ACCN";"10131";"Capital non amorti";"";"1013";""
-"ACCN";"1013";"Capital souscrit - appelé; versé";"";"101";""
-"ACCN";"10132";"Capital amorti";"";"1013";""
-"ACCN";"101";"Capital";"";"10";""
-"ACCN";"1018";"Capital souscrit soumis a des réglementations particulières";"";"101";""
-"ACCN";"1041";"Primes d'émission";"";"104";""
-"ACCN";"1042";"Primes de fusion";"";"104";""
-"ACCN";"1043";"Primes d'apport";"";"104";""
-"ACCN";"1044";"Primes de conversion d'obligations en actions";"";"104";""
-"ACCN";"104";"Primes liées au capital social";"";"10";""
-"ACCN";"1045";"Bons de souscription d'actions";"";"104";""
-"ACCN";"1051";"Réserve spéciale de réévaluation";"";"105";""
-"ACCN";"1052";"Ecart de réévaluation libre";"";"105";""
-"ACCN";"1053";"Réserve de réévaluation";"";"105";""
-"ACCN";"1055";"Ecarts de réévaluation (autres opérations légales)";"";"105";""
-"ACCN";"1057";"Autres écarts de réévaluation en France";"";"105";""
-"ACCN";"105";"Ecarts de réévaluation";"";"10";""
-"ACCN";"1058";"Autres écarts de réévaluation a l'étranger";"";"105";""
-"ACCN";"10611";"Réserve légale proprement dite";"";"1061";""
-"ACCN";"1061";"Réserve légale";"";"106";""
-"ACCN";"10612";"Plus-value nette à long terme";"";"1061";""
-"ACCN";"1062";"Réserves indisponibles";"";"106";""
-"ACCN";"1063";"Réserves statutaires ou contractuelles";"";"106";""
-"ACCN";"10641";"Plus-values nettes a long terme";"";"1064";""
-"ACCN";"10643";"Réserves consécutives a l'octroi de subventions d'invest.";"";"1064";""
-"ACCN";"1064";"Réserves réglementées";"";"106";""
-"ACCN";"10648";"Autres réserves réglementées";"";"1064";""
-"ACCN";"106";"Réserves";"";"10";""
-"ACCN";"10681";"Réserve de propre assureur";"";"1068";""
-"ACCN";"1068";"Autres réserves";"";"106";""
-"ACCN";"10688";"Réserves diverses";"";"1068";""
-"ACCN";"107";"Ecart d'équivalence";"";"10";""
-"ACCN";"108";"Compte de l'exploitant";"";"10";""
-"ACCN";"10";"CAPITAL ET RESERVE";"";"1";""
-"ACCN";"109";"Actionnaires: capital souscrit - non appelé";"";"10";""
-"ACCN";"110";"Report à nouveau (solde créditeur)";"";"11";""
-"ACCN";"11";"REPORT A NOUVEAU (solde créditeur ou débiteur)";"";"1";""
-"ACCN";"119";"Report à nouveau (solde débiteur)";"";"11";""
-"ACCN";"120";"Résultat de l'exercice (bénéfice)";"";"12";""
-"ACCN";"12";"RESULTAT DE L'EXERCICE (bénéfice ou perte)";"";"1";""
-"ACCN";"129";"Résultat de l'exercice (perte)";"";"12";""
-"ACCN";"1311";"Etat";"";"131";""
-"ACCN";"1312";"Régions";"";"131";""
-"ACCN";"1313";"Départements";"";"131";""
-"ACCN";"1314";"Communes";"";"131";""
-"ACCN";"1315";"Collectivités publiques";"";"131";""
-"ACCN";"1316";"Entreprises publiques";"";"131";""
-"ACCN";"1317";"Entreprises et organismes privés";"";"131";""
-"ACCN";"131";"Subventions d'équipement";"";"13";""
-"ACCN";"1318";"Autres";"";"131";""
-"ACCN";"138";"Autres subventions d'investissement";"";"13";""
-"ACCN";"13";"SUBVENTIONS D'INVESTISSEMENT";"";"1";""
-"ACCN";"13911";"Etat";"";"1391";""
-"ACCN";"13912";"Régions";"";"1391";""
-"ACCN";"13913";"Départements";"";"1391";""
-"ACCN";"13914";"Communes";"";"1391";""
-"ACCN";"13915";"Collectivités publiques";"";"1391";""
-"ACCN";"13916";"Entreprises publiques";"";"1391";""
-"ACCN";"13917";"Entreprises et organismes privés";"";"1391";""
-"ACCN";"1391";"Subventions d'équipement";"";"139";""
-"ACCN";"13918";"Autres";"";"1391";""
-"ACCN";"139";"Subventions d'investissement inscrites au compte de résultat";"";"13";""
-"ACCN";"1398";"Autres subventions d'investissement";"";"139";""
-"ACCN";"1423";"Provisions pour reconstitution des gisements pétroliers";"";"142";""
-"ACCN";"142";"Provisions réglementées relatives aux immobilisations";"";"14";""
-"ACCN";"1424";"Provisions pour investissement (participation des salariés)";"";"142";""
-"ACCN";"1431";"Hausse des prix";"";"143";""
-"ACCN";"143";"Provisions réglementées relatives aux stocks";"";"14";""
-"ACCN";"1432";"Fluctuation des cours";"";"143";""
-"ACCN";"144";"Provisions réglementées relatives autres éléments de l'actif";"";"14";""
-"ACCN";"145";"Amortissements dérogatoires";"";"14";""
-"ACCN";"146";"Provision spéciale de réévaluation";"";"14";""
-"ACCN";"147";"Plus-values réinvesties";"";"14";""
-"ACCN";"14";"PROVISIONS REGLEMENTEES";"";"1";""
-"ACCN";"148";"Autres provisions réglementées";"";"14";""
-"ACCN";"1511";"Provisions pour litiges";"";"151";""
-"ACCN";"1512";"Provisions pour garanties données aux clients";"";"151";""
-"ACCN";"1513";"Provisions pour pertes sur marches à terme";"";"151";""
-"ACCN";"1514";"Provisions pour amendes et pénalités";"";"151";""
-"ACCN";"1515";"Provisions pour pertes de change";"";"151";""
-"ACCN";"151";"Provisions pour risques";"";"15";""
-"ACCN";"1518";"Autres provisions pour risques";"";"151";""
-"ACCN";"153";"Provisions pour pensions et obligations similaires";"";"15";""
-"ACCN";"154";"Provisions pour restructurations";"";"15";""
-"ACCN";"155";"Provisions pour impôts";"";"15";""
-"ACCN";"156";"Provisions pour renouvellement des immobilisations";"";"15";""
-"ACCN";"157";"Provisions pour charges à répartir sur plusieurs exercices";"";"15";""
-"ACCN";"1572";"Provisions pour grosses réparations";"";"157";""
-"ACCN";"15";"PROVlSlONS POUR RISQUES ET CHARGES";"";"1";""
-"ACCN";"158";"Autres provisions pour charges";"";"15";""
-"ACCN";"1582";"Provisions pour charges sociales et fisc. sur congés à payer";"";"158";""
-"ACCN";"161";"Emprunts obligataires convertibles";"";"16";""
-"ACCN";"163";"Autres emprunts obligataires";"";"16";""
-"ACCN";"164";"Emprunts auprès des établissements de crédit";"";"16";""
-"ACCN";"1651";"Dépôts";"";"165";""
-"ACCN";"165";"Dépôts et cautionnements reçus";"";"16";""
-"ACCN";"1655";"Cautionnements";"";"165";""
-"ACCN";"1661";"Comptes bloqués";"";"166";""
-"ACCN";"166";"Participation des salariés aux résultats";"";"16";""
-"ACCN";"1662";"Fonds de participation";"";"166";""
-"ACCN";"1671";"Emissions de titres participatifs";"";"167";""
-"ACCN";"1674";"Avances conditionnées de l'Etat";"";"167";""
-"ACCN";"167";"Emprunts et dettes assortis de conditions particulières";"";"16";""
-"ACCN";"1675";"Emprunts participatifs";"";"167";""
-"ACCN";"1681";"Autres emprunts";"";"168";""
-"ACCN";"1685";"Rentes viagères capitalisées";"";"168";""
-"ACCN";"1687";"Autres dettes";"";"168";""
-"ACCN";"168";"Autres emprunts et dettes assimilées";"";"16";""
-"ACCN";"16881";"Sur emprunts obligataires convertibles";"";"1688";""
-"ACCN";"16883";"Sur autres emprunts obligataires";"";"1688";""
-"ACCN";"16884";"Sur emprunts auprès des établissements de crédit";"";"1688";""
-"ACCN";"16885";"Sur dépôts et cautionnements reçus";"";"1688";""
-"ACCN";"16886";"Sur participation des salariés aux résultats";"";"1688";""
-"ACCN";"16887";"Sur emprunts et dettes assortis de conditions particulières";"";"1688";""
-"ACCN";"1688";"Intérêts courus";"";"168";""
-"ACCN";"16888";"Sur autres emprunts et dettes assimilées";"";"1688";""
-"ACCN";"16";"EMPRUNTS ET DETTES ASSIMILEES";"";"1";""
-"ACCN";"169";"Primes de remboursement des obligations";"";"16";""
-"ACCN";"171";"Dettes rattachées à des participations (groupe)";"";"17";""
-"ACCN";"174";"Dettes rattachées à des participations (hors groupe)";"";"17";""
-"ACCN";"17";"DETTES RATTACHEES A DES PARTICIPATIONS";"";"1";""
-"ACCN";"1781";"Principal";"";"178";""
-"ACCN";"178";"Dettes rattachées à des sociétés en participation";"";"17";""
-"ACCN";"1788";"Intérêts courus";"";"178";""
-"ACCN";"1";"COMPTES DE CAPITAUX";"";"";""
-"ACCN";"181";"Comptes de liaison des établissements";"";"18";""
-"ACCN";"186";"Biens et prestations échangés entre établissement (charges)";"";"18";""
-"ACCN";"187";"Biens et prestations échangés entre établissement (produits)";"";"18";""
-"ACCN";"18";"COMPTES DE LIAISON DES ETABLISS. ET STES EN PARTICIPATION";"";"1";""
-"ACCN";"188";"Comptes de liaison des sociétés en participation";"";"18";""
-"ACCN";"2011";"Frais de constitution";"";"201";""
-"ACCN";"20121";"Frais de prospection";"";"2012";""
-"ACCN";"2012";"Frais de premier établissement";"";"201";""
-"ACCN";"20122";"Frais de publicité";"";"2012";""
-"ACCN";"201";"Frais d'établissement";"";"20";""
-"ACCN";"2013";"Frais d'augmentation de capital et d'opérations diverses";"";"201";""
-"ACCN";"203";"Frais de recherche et de développement";"";"20";""
-"ACCN";"205";"Concessions et droits similaires";"";"20";""
-"ACCN";"206";"Droit au bail";"";"20";""
-"ACCN";"207";"Fonds commercial";"";"20";""
-"ACCN";"20";"IMMOBILISATIONS INCORPORELLES";"";"2";""
-"ACCN";"208";"Autres immobilisations incorporelles";"";"20";""
-"ACCN";"2111";"Terrains nus";"";"211";""
-"ACCN";"2112";"Terrains aménagés";"";"211";""
-"ACCN";"2113";"Sous-sols et sur-sols";"";"211";""
-"ACCN";"2114";"Terrains de gisement";"";"211";""
-"ACCN";"21141";"Carrières";"";"2114";""
-"ACCN";"21151";"Ensembles immobiliers industriels";"";"2115";""
-"ACCN";"21155";"Ensembles immobiliers administratifs et commerciaux";"";"2115";""
-"ACCN";"2115";"Terrains bâtis";"";"211";""
-"ACCN";"211581";"- Affectés aux opérations professionnelles";"";"21158";""
-"ACCN";"21158";"Autres ensembles immobiliers";"";"2115";""
-"ACCN";"211588";"- Affectés aux opérations non professionnelles";"";"21158";""
-"ACCN";"211";"Terrains";"";"21";""
-"ACCN";"2116";"Comptes d'ordre sur immobilisations";"";"211";""
-"ACCN";"212";"Agencements et aménagements de terrain";"";"21";""
-"ACCN";"21311";"Ensembles immobiliers industriels";"";"2131";""
-"ACCN";"21315";"Ensembles immobiliers administratifs et commerciaux";"";"2131";""
-"ACCN";"2131";"Bâtiments";"";"213";""
-"ACCN";"213181";"- Affectés aux opérations professionnelles";"";"21318";""
-"ACCN";"21318";"Autres ensembles immobiliers";"";"2131";""
-"ACCN";"213188";"- Affectés aux opérations non professionnelles";"";"21318";""
-"ACCN";"2135";"Installations générales; agencements; aménagements";"";"213";""
-"ACCN";"213";"Constructions";"";"21";""
-"ACCN";"21381";"Voies de terre";"";"2138";""
-"ACCN";"21382";"Voies de fer";"";"2138";""
-"ACCN";"21383";"Voies d'eau";"";"2138";""
-"ACCN";"21384";"Barrages";"";"2138";""
-"ACCN";"2138";"Ouvrages d'infrastructure";"";"213";""
-"ACCN";"21385";"Pistes d'aérodromes";"";"2138";""
-"ACCN";"214";"Constructions sur sol d'autrui";"";"21";""
-"ACCN";"21511";- sur sol propre";"";"2151";""
-"ACCN";"2151";"Installations complexes spécialisées";"";"215";""
-"ACCN";"21514";"- sur sol d'autrui";"";"2151";""
-"ACCN";"21531";"- sur sol propre";"";"2153";""
-"ACCN";"2153";"Installations à caractère spécifique";"";"215";""
-"ACCN";"21534";"- sur sol d'autrui";"";"2153";""
-"ACCN";"2154";"Matériel industriel";"";"215";""
-"ACCN";"2155";"Outillage industriel";"";"215";""
-"ACCN";"215";"Installations techniques; matériel et outillage industriels";"";"21";""
-"ACCN";"2157";"Agencements et aménagements du matériel et outillages ind.";"";"215";""
-"ACCN";"21";"IMMOBlLlSATIONS CORPORELLES";"";"2";""
-"ACCN";"2181";"Installations générales; agencements; aménagements divers";"";"218";""
-"ACCN";"2182";"Matériel de transport";"";"218";""
-"ACCN";"2183";"Matériel de bureau et matériel informatique";"";"218";""
-"ACCN";"2184";"Mobilier";"";"218";""
-"ACCN";"2185";"Cheptel";"";"218";""
-"ACCN";"218";"Autres immobilisations corporelles";"";"21";""
-"ACCN";"2186";"Emballages récupérables";"";"218";""
-"ACCN";"22";"IMMOBILISATIONS MISES EN CONCESSION";"";"2";""
-"ACCN";"2312";"Terrains";"";"231";""
-"ACCN";"2313";"Constructions";"";"231";""
-"ACCN";"2315";"Installations techniques; matériel et outillage industriel";"";"231";""
-"ACCN";"231";"Immobilisations corporelles en cours";"";"23";""
-"ACCN";"2318";"Autres immobilisations corporelles";"";"231";""
-"ACCN";"232";"Immobilisations incorporelles en cours";"";"23";""
-"ACCN";"237";"Avances et acomptes versés sur immobilisations incorporelles";"";"23";""
-"ACCN";"23";"IMMOBILlSATlONS EN COURS";"";"2";""
-"ACCN";"2382";"Terrains";"";"238";""
-"ACCN";"2383";"Constructions";"";"238";""
-"ACCN";"2385";"Installations techniques; matériel et outillage industriel";"";"238";""
-"ACCN";"238";"Avances et acomptes versés sur immobilisations corporelles";"";"23";""
-"ACCN";"2388";"Autres immobilisations corporelles";"";"238";""
-"ACCN";"25";"ENTREPRISES LIEES - PARTS ET CREANCES";"";"2";""
-"ACCN";"2611";"Actions";"";"261";""
-"ACCN";"261";"Titres de participation";"";"26";""
-"ACCN";"2618";"Autres titres";"";"261";""
-"ACCN";"266";"Autres formes de participation";"";"26";""
-"ACCN";"2671";"Créances rattachées à des participations (groupe)";"";"267";""
-"ACCN";"2674";"Créances rattachées à des participations (hors groupe)";"";"267";""
-"ACCN";"2675";"Versements représentatifs d'apports non capitalisés";"";"267";""
-"ACCN";"2676";"Avances consolidables";"";"267";""
-"ACCN";"2677";"Autres créances rattachées à des participations";"";"267";""
-"ACCN";"267";"Créances rattachées à des participations";"";"26";""
-"ACCN";"2678";"Intérêts courus";"";"267";""
-"ACCN";"2681";"Principal";"";"268";""
-"ACCN";"268";"Créances rattachées à des sociétés en participation";"";"26";""
-"ACCN";"2688";"Intérêts courus";"";"268";""
-"ACCN";"26";"PARTICIPATIONS ET CREANCES RATTACHEES A DES PARTICIPATIONS";"";"2";""
-"ACCN";"269";"Versements restant sur titres de participation non libérés";"";"26";""
-"ACCN";"2711";"Actions";"";"271";""
-"ACCN";"271";"Titres immobilisés autres que les titres immobilisés de l'ac";"";"27";""
-"ACCN";"2718";"Autres titres";"";"271";""
-"ACCN";"2721";"Obligations";"";"272";""
-"ACCN";"272";"Titres immobilisés (droit de créance)";"";"27";""
-"ACCN";"2722";"Bons";"";"272";""
-"ACCN";"273";"Titres immobilisés de l'activité de portefeuille";"";"27";""
-"ACCN";"2741";"Prêts participatifs";"";"274";""
-"ACCN";"2742";"Prêts aux associés";"";"274";""
-"ACCN";"2743";"Prêts au personnel";"";"274";""
-"ACCN";"274";"Prêts";"";"27";""
-"ACCN";"2748";"Autres prêts";"";"274";""
-"ACCN";"2751";"Dépôts";"";"275";""
-"ACCN";"275";"Dépôts et cautionnements versés";"";"27";""
-"ACCN";"2755";"Cautionnements";"";"275";""
-"ACCN";"2761";"Créances diverses";"";"276";""
-"ACCN";"276";"Autres créances immobilisées";"";"27";""
-"ACCN";"27682";"Sur titres immobilises (droit de créance)";"";"2768";""
-"ACCN";"27684";"Sur prêts";"";"2768";""
-"ACCN";"27685";"Sur dépôts et cautionnements";"";"2768";""
-"ACCN";"2768";"Intérêts courus";"";"276";""
-"ACCN";"27688";"Sur créances diverses";"";"2768";""
-"ACCN";"2771";"Actions propres ou parts propres";"";"277";""
-"ACCN";"277";"Actions propres ou parts propres";"";"27";""
-"ACCN";"2772";"Actions propres ou parts propres en voie d'annulation";"";"277";""
-"ACCN";"27";"AUTRES IMMOBILISATIONS FINANCIERES";"";"2";""
-"ACCN";"279";"Versements restantsur titres immobilisés non libérés";"";"27";""
-"ACCN";"2801";"Frais d'établissement";"";"280";""
-"ACCN";"2803";"Frais de recherche et de développement";"";"280";""
-"ACCN";"2805";"Concessions et droits similaires; brevets; licences; logicie";"";"280";""
-"ACCN";"2807";"Fonds commercial";"";"280";""
-"ACCN";"280";"Amortissements des immobilisations incorporelles";"";"28";""
-"ACCN";"2808";"Autres immobilisations incorporelles";"";"280";""
-"ACCN";"2811";"Terrains de gisement";"";"281";""
-"ACCN";"2812";"Agencements; aménagements de terrains";"";"281";""
-"ACCN";"2813";"Constructions";"";"281";""
-"ACCN";"2814";"Constructions sur sol d'autrui";"";"281";""
-"ACCN";"2815";"Installations techniques; matériel et outillage industriels";"";"281";""
-"ACCN";"281";"Amortissements des immobilisations corporelles";"";"28";""
-"ACCN";"2818";"Autres immobilisations corporelles";"";"281";""
-"ACCN";"28";"AMORTISSEMENTS DES IMMOBILISATIONS";"";"2";""
-"ACCN";"282";"Amortissements des immobilisations mises en concession";"";"28";""
-"ACCN";"2";"COMPTES D'IMMOBILISATIONS";"";"";""
-"ACCN";"2905";"Marques; procédes; droits et valeurs similaires";"";"290";""
-"ACCN";"2906";"Droit au bail";"";"290";""
-"ACCN";"2907";"Fonds commercial";"";"290";""
-"ACCN";"290";"Provisions pour dépréciation immobilisations incorporelles";"";"29";""
-"ACCN";"2908";"Autres immobilisations incorporelles";"";"290";""
-"ACCN";"291";"Provisions pour dépréciation immobilisations corporelles";"";"29";""
-"ACCN";"2911";"Terrains (autres que terrains de gisement)";"";"291";""
-"ACCN";"292";"Provisions pour dépréciation des immos mises en concession";"";"29";""
-"ACCN";"293";"Provisions pour dépréciation des immobilisations en cours";"";"29";""
-"ACCN";"2931";"Immobilisations corporelles en cours";"";"293";""
-"ACCN";"2961";"Titres de participation";"";"296";""
-"ACCN";"2966";"Autres formes de participation";"";"296";""
-"ACCN";"2967";"Créances rattachées à des participations";"";"296";""
-"ACCN";"296";"Provisions pour dépréciation des participations et créances";"";"29";""
-"ACCN";"2968";"Créances rattachées à des sociétés en participation";"";"296";""
-"ACCN";"29";"PROVISIONS POUR DEPRECIATION DES IMMOBILISATIONS";"";"2";""
-"ACCN";"2971";"Titres immobilisés autres que les titres du portefeuille- dr";"";"297";""
-"ACCN";"2972";"Titres immobilisés - droit de créance";"";"297";""
-"ACCN";"2973";"Titres immobilisés de l'activité du portefeuille";"";"297";""
-"ACCN";"2974";"Prêts";"";"297";""
-"ACCN";"2975";"Dépôts et cautionnements versés";"";"297";""
-"ACCN";"297";"Provisions pour dépréciation des immobilisations financières";"";"29";""
-"ACCN";"2976";"Autres créances immobilisées";"";"297";""
-"ACCN";"310";"Stocks d'approvisionnement";"";"31";""
-"ACCN";"311";"Matière (ou groupe) A";"";"31";""
-"ACCN";"312";"Matière (ou groupe) B";"";"31";""
-"ACCN";"31";"MATIERES PREMIERES (et fournitures)";"";"3";""
-"ACCN";"317";"Fournitures A; B; C ...";"";"31";""
-"ACCN";"3211";"Matière (ou groupe) C";"";"321";""
-"ACCN";"321";"Matières consommables";"";"32";""
-"ACCN";"3212";"Matière (ou groupe) D";"";"321";""
-"ACCN";"3221";"Combustibles";"";"322";""
-"ACCN";"3222";"Produits d'entretien";"";"322";""
-"ACCN";"3223";"Fournitures d'atelier et d'usine";"";"322";""
-"ACCN";"3224";"Fournitures de magasin";"";"322";""
-"ACCN";"322";"Fournitures consommables";"";"32";""
-"ACCN";"3225";"Fournitures de bureau";"";"322";""
-"ACCN";"32";"AUTRES APPROVISIONNEMENTS";"";"3";""
-"ACCN";"3261";"Emballages perdus";"";"326";""
-"ACCN";"3265";"Emballages récupérables non identifiables";"";"326";""
-"ACCN";"326";"Emballages";"";"32";""
-"ACCN";"3267";"Emballages à usage mixte";"";"326";""
-"ACCN";"3311";"Produit en cours P 1";"";"331";""
-"ACCN";"331";"Produits en cours";"";"33";""
-"ACCN";"3312";"Produit en cours P 2";"";"331";""
-"ACCN";"33";"EN-COURS DE PRODUCTION DE BIENS";"";"3";""
-"ACCN";"3351";"Travaux en cours T 1";"";"335";""
-"ACCN";"335";"Travaux en cours";"";"33";""
-"ACCN";"3352";"Travaux en cours T 2";"";"335";""
-"ACCN";"3411";"Etude en cours E 1";"";"341";""
-"ACCN";"341";"Etudes en cours";"";"34";""
-"ACCN";"3412";"Etude en cours E 2";"";"341";""
-"ACCN";"34";"EN-COURS DE PRODUCTION DE SERVICES";"";"3";""
-"ACCN";"3451";"Prestation de services S 1";"";"345";""
-"ACCN";"345";"Prestations de services en cours";"";"34";""
-"ACCN";"3452";"Prestation de services S 2";"";"345";""
-"ACCN";"3511";"Produit intermédiaire (ou groupe ) A";"";"351";""
-"ACCN";"351";"Produits intermédiaires";"";"35";""
-"ACCN";"3512";"Produit intermédiaire (ou groupe) B";"";"351";""
-"ACCN";"3551";"Produit fini (ou groupe) A";"";"355";""
-"ACCN";"355";"Produits finis";"";"35";""
-"ACCN";"3552";"Produit fini (ou groupe) B";"";"355";""
-"ACCN";"35";"STOCKS DE PRODUITS";"";"3";""
-"ACCN";"3581";"Déchets";"";"358";""
-"ACCN";"3585";"Rebuts";"";"358";""
-"ACCN";"358";"Produits résiduels (ou matières de récupérations)";"";"35";""
-"ACCN";"3586";"Matières de récupération";"";"358";""
-"ACCN";"36";"STOCKS PROVENANT D'IMMOBILISATIONS";"";"3";""
-"ACCN";"370";"Stocks de marchandises";"";"37";""
-"ACCN";"371";"Marchandise (ou groupe) A";"";"37";""
-"ACCN";"37";"STOCKS DE MARCHANDISES";"";"3";""
-"ACCN";"372";"Marchandise (ou groupe) B";"";"37";""
-"ACCN";"38";"STOCKS EN VOIE D'ACHEMINEMENT; MIS EN DEPOT OU CONSIGNES";"";"3";""
-"ACCN";"3";"COMPTES DE STOCKS ET D'EN-COURS";"";"";""
-"ACCN";"3911";"Matière (ou groupe A)";"";"391";""
-"ACCN";"3912";"Matière (ou groupe B)";"";"391";""
-"ACCN";"391";"Provisions pour dépréciation des stocks d'approvisionnement";"";"39";""
-"ACCN";"3917";"Fourniture A; B; C ...";"";"391";""
-"ACCN";"3921";"Matières consommables (même ventilation que celle du compte";"";"392";""
-"ACCN";"3922";"Fournitures consommables";"";"392";""
-"ACCN";"392";"Provisions pour dépréciation des autres approvisionnements";"";"39";""
-"ACCN";"3926";"Emballages";"";"392";""
-"ACCN";"3931";"Produits en cours";"";"393";""
-"ACCN";"393";"Provisions pour dépréciation en-cours de production de biens";"";"39";""
-"ACCN";"3935";"Travaux en cours";"";"393";""
-"ACCN";"3941";"Etudes en cours";"";"394";""
-"ACCN";"394";"Provisions pour dépréciation en-cours de prod. de services";"";"39";""
-"ACCN";"3945";"Prestations de services en cours";"";"394";""
-"ACCN";"3951";"Produits intermédiaires";"";"395";""
-"ACCN";"395";"Provisions pour dépréciation des stocks de produits";"";"39";""
-"ACCN";"3955";"Produits finis";"";"395";""
-"ACCN";"39";"PROVISIONS POUR DEPRECIATION DES STOCKS ET EN-COURS";"";"3";""
-"ACCN";"3971";"Marchandise (ou groupe) A";"";"397";""
-"ACCN";"397";"Provisions pour dépréciation des stocks de marchandises";"";"39";""
-"ACCN";"3972";"Marchandise (ou groupe) B";"";"397";""
-"ACCN";"400";"Fournisseurs et comptes rattachés";"";"40";""
-"ACCN";"4011";"Fournisseurs - Achats de biens ou de prestations de services";"";"401";""
-"ACCN";"401";"Fournisseurs";"";"40";""
-"ACCN";"4017";"Fournisseurs - Retenue de garantie";"";"401";""
-"ACCN";"403";"Fournisseurs - Effets à payer";"";"40";""
-"ACCN";"4041";"Fournisseurs - Achats d'immobilisations";"";"404";""
-"ACCN";"404";"Fournisseurs d'immobilisations";"";"40";""
-"ACCN";"4047";"Fournisseurs d'immobilisations - Retenues de garantie";"";"404";""
-"ACCN";"405";"Fournisseurs d'immobilisations - Effets a payer";"";"40";""
-"ACCN";"4081";"Fournisseurs";"";"408";""
-"ACCN";"4084";"Fournisseurs d'immobilisations";"";"408";""
-"ACCN";"408";"Fournisseurs - Factures non parvenues";"";"40";""
-"ACCN";"4088";"Fournisseurs - Intérêts courus";"";"408";""
-"ACCN";"40";"FOURNISSEURS ET COMPTES RATTACHES";"";"4";""
-"ACCN";"4091";"Fournisseurs - Avances et acomptes versés sur commandes";"";"409";""
-"ACCN";"4096";"Fournisseurs - Créances pour emballages et matériel à rendre";"";"409";""
-"ACCN";"40971";"Fournisseurs d'exploitation";"";"4097";""
-"ACCN";"4097";"Fournisseurs - Autres avoirs";"";"409";""
-"ACCN";"40974";"Fournisseurs d'immobilisations";"";"4097";""
-"ACCN";"409";"Fournisseurs débiteurs";"";"40";""
-"ACCN";"4098";"Rabais; remises; ristournes à obtenir";"";"409";""
-"ACCN";"410";"Clients et comptes rattachés";"";"41";""
-"ACCN";"4111";"Clients - Ventes de biens ou de prestations de services";"";"411";""
-"ACCN";"411";"Clients";"";"41";""
-"ACCN";"4117";"Clients - Retenues de garanties";"";"411";""
-"ACCN";"413";"Clients - Effets a recevoir";"";"41";""
-"ACCN";"416";"Clients douteux ou litigieux";"";"41";""
-"ACCN";"417";"Créances sur travaux non encore facturables";"";"41";""
-"ACCN";"4181";"Clients - Factures à établir";"";"418";""
-"ACCN";"418";"Clients - Produits non encore facturés";"";"41";""
-"ACCN";"4188";"Clients - Intérêts courus";"";"418";""
-"ACCN";"41";"CLIENTS ET COMPTES RATTACHES";"";"4";""
-"ACCN";"4191";"Clients - Avances et acomptes reçus sur commandes";"";"419";""
-"ACCN";"4196";"Clients - Dettes pour emballages et matériel consignés";"";"419";""
-"ACCN";"4197";"Clients - Autres avoirs";"";"419";""
-"ACCN";"419";"Clients créditeurs";"";"41";""
-"ACCN";"4198";"Rabais; remises; ristournes à accorder";"";"419";""
-"ACCN";"421";"Personnel - Rémunérations dues";"";"42";""
-"ACCN";"422";"Comités d'entreprise; d'établissement";"";"42";""
-"ACCN";"4246";"Réserve spéciale (art. L442-2 du Code du Travail)";"";"424";""
-"ACCN";"424";"Participation des salariés aux fruits de l'expansion";"";"42";""
-"ACCN";"4248";"Comptes courants";"";"424";""
-"ACCN";"425";"Personnel - Avances et acomptes";"";"42";""
-"ACCN";"426";"Personnel - Dépôts";"";"42";""
-"ACCN";"427";"Personnel - Oppositions";"";"42";""
-"ACCN";"42";"PERSONNEL ET COMPTES RATTACHES";"";"4";""
-"ACCN";"4282";"Dettes provisionnées pour congés à payer";"";"428";""
-"ACCN";"4284";"Dettes provisionnées pour participation des salariés aux rés";"";"428";""
-"ACCN";"4286";"Autres charges à payer";"";"428";""
-"ACCN";"428";"Personnel - Charges à payer et produits à recevoir";"";"42";""
-"ACCN";"4287";"Produits à recevoir";"";"428";""
-"ACCN";"431";"Sécurité sociale";"";"43";""
-"ACCN";"437";"Autres organismes sociaux";"";"43";""
-"ACCN";"43";"SECURITE SOCIALE - AUTRES ORGANISMES SOCIAUX";"";"4";""
-"ACCN";"4382";"Charges sociales sur congés à payer";"";"438";""
-"ACCN";"4386";"Autres charges à payer";"";"438";""
-"ACCN";"438";"Organismes sociaux - Charges à payer et produits à recevoir";"";"43";""
-"ACCN";"4387";"Produits à recevoir";"";"438";""
-"ACCN";"4411";"Subventions d'investissement";"";"441";""
-"ACCN";"4417";"Subventions d'exploitation";"";"441";""
-"ACCN";"4418";"Subventions d'équilibre";"";"441";""
-"ACCN";"441";"Etat - Subventions à recevoir";"";"44";""
-"ACCN";"4419";"Avances sur subventions";"";"441";""
-"ACCN";"4424";"Obligataires";"";"442";""
-"ACCN";"442";"Etat - Impôts et taxes recouvrables sur des tiers";"";"44";""
-"ACCN";"4425";"Associés";"";"442";""
-"ACCN";"443";"Opérations particulières avec l'Etat; les collectivités";"";"44";""
-"ACCN";"444";"Etat - Impôts sur les bénéfices";"";"44";""
-"ACCN";"4452";"TVA due intracommunautaire";"";"445";""
-"ACCN";"44551";"TVA à décaisser";"";"4455";""
-"ACCN";"4455";"Taxes sur le chiffre d'affaires à décaisser";"";"445";""
-"ACCN";"44558";"Taxes assimilées à la TVA";"";"4455";""
-"ACCN";"44562";"TVA sur immobilisations";"";"4456";""
-"ACCN";"44563";"TVA transférée par d'autres entreprises";"";"4456";""
-"ACCN";"445661";"TVA sur autres biens et services 19;6% débits";"";"44566";""
-"ACCN";"445662";"TVA sur autres biens et services 5;5% débits";"";"44566";""
-"ACCN";"445664";"TVA sur autres biens et services 19;6% encaissements";"";"44566";""
-"ACCN";"44566";"TVA sur autres biens et services";"";"4456";""
-"ACCN";"445665";"TVA sur autres biens et services 5;5% encaissements";"";"44566";""
-"ACCN";"44567";"Crédit de TVA à reporter";"";"4456";""
-"ACCN";"4456";"Taxes sur le chiffre d'affaires déductible";"";"445";""
-"ACCN";"44568";"Taxes assimilées à la TVA";"";"4456";""
-"ACCN";"445711";"TVA collectée 19;6 % débits";"";"44571";""
-"ACCN";"445712";"TVA collectée 5;5 % débits";"";"44571";""
-"ACCN";"445714";"TVA collectée 19;6 % encaissements";"";"44571";""
-"ACCN";"44571";"TVA collectée";"";"4457";""
-"ACCN";"445715";"TVA collectée 5;5 % encaissements";"";"44571";""
-"ACCN";"4457";"Taxes sur le chiffre d'affaires collectées par l'entreprise";"";"445";""
-"ACCN";"44578";"Taxes assimilées à la TVA";"";"4457";""
-"ACCN";"445";"Etat - Taxes sur le chiffre d'affaires";"";"44";""
-"ACCN";"44581";"Acomptes - Régime simplifié d'imposition";"";"4458";""
-"ACCN";"44582";"Acomptes - Régime du forfait";"";"4458";""
-"ACCN";"44583";"Remboursement de taxes sur le chiffre d'affaires demandé";"";"4458";""
-"ACCN";"44584";"TVA récupérée d'avance";"";"4458";""
-"ACCN";"44586";"Taxes sur le chiffre d'affaires sur factures non parvenues";"";"4458";""
-"ACCN";"4458";"Taxes sur le chiffre d'affaires à régulariser ou en attente";"";"445";""
-"ACCN";"44587";"Taxes sur le chiffre d'affaires sur factures à établir";"";"4458";""
-"ACCN";"446";"Obligations cautionnées";"";"44";""
-"ACCN";"447";"Autres impôts; taxes et versements assimilés";"";"44";""
-"ACCN";"44";"ETAT ET AUTRES COLLECTIVITES PUBLIQUES";"";"4";""
-"ACCN";"4482";"Charges fiscales sur congés à payer";"";"448";""
-"ACCN";"4486";"Autres charges à payer";"";"448";""
-"ACCN";"448";"Etat - Charges à payer et produits à recevoir";"";"44";""
-"ACCN";"4487";"Produits à recevoir";"";"448";""
-"ACCN";"451";"Groupe";"";"45";""
-"ACCN";"4551";"Principal";"";"455";""
-"ACCN";"455";"Associés - Comptes courants";"";"45";""
-"ACCN";"4558";"Intérêts courus";"";"455";""
-"ACCN";"45611";"Apports en nature";"";"4561";""
-"ACCN";"4561";"Associés - Comptes d'apport en société";"";"456";""
-"ACCN";"45615";"Apports en numéraire";"";"4561";""
-"ACCN";"45621";"Actionnaires - Capital souscrit et appelé; non versé";"";"4562";""
-"ACCN";"4562";"Apporteurs - Capital appelé; non versé";"";"456";""
-"ACCN";"45625";"Associés - Capital appelé; non versé";"";"4562";""
-"ACCN";"4563";"Associés - Versements reçus sur augmentation de capital";"";"456";""
-"ACCN";"4564";"Associés - Versements anticipés";"";"456";""
-"ACCN";"4566";"Actionnaires défaillants";"";"456";""
-"ACCN";"456";"Associés - Opérations sur le capital";"";"45";""
-"ACCN";"4567";"Associés - Capital à rembourser";"";"456";""
-"ACCN";"457";"Associés - Dividendes à payer";"";"45";""
-"ACCN";"45";"GROUPES ET ASSOCIES";"";"4";""
-"ACCN";"4581";"Opérations courantes";"";"458";""
-"ACCN";"458";"Associés - Opérations faites en commun et en G.I.E.";"";"45";""
-"ACCN";"4588";"Intérêts courus";"";"458";""
-"ACCN";"462";"Créances sur cessions d'immobilisations";"";"46";""
-"ACCN";"464";"Dettes sur acquisition de valeurs mobilières de placement";"";"46";""
-"ACCN";"465";"Créances sur cessions de valeurs mobilières de placement";"";"46";""
-"ACCN";"467";"Autres comptes débiteurs ou créditeurs";"";"46";""
-"ACCN";"46";"DEBITEURS ET CREDITEURS DIVERS";"";"4";""
-"ACCN";"4686";"Charges à payer";"";"468";""
-"ACCN";"468";"Divers - Charges à payer et Produits à recevoir";"";"46";""
-"ACCN";"4687";"Produits à recevoir";"";"468";""
-"ACCN";"470";"Compte d'attente";"";"47";""
-"ACCN";"471";"Compte d'attente";"";"47";""
-"ACCN";"4761";"Diminution des créances";"";"476";""
-"ACCN";"4762";"Augmentation des dettes";"";"476";""
-"ACCN";"476";"Différences de conversion - Actif";"";"47";""
-"ACCN";"4768";"Différences compensées par couverture de change";"";"476";""
-"ACCN";"4771";"Augmentation des créances";"";"477";""
-"ACCN";"4772";"Diminution des dettes";"";"477";""
-"ACCN";"477";"Différences de conversion - Passif";"";"47";""
-"ACCN";"4778";"Différences compensées par couverture de change";"";"477";""
-"ACCN";"47";"COMPTES TRANSITOIRES OU D'ATTENTE";"";"4";""
-"ACCN";"478";"Autres comptes transitoires";"";"47";""
-"ACCN";"4811";"Charges différées";"";"481";""
-"ACCN";"4812";"Frais d'acquisition des immobilisations";"";"481";""
-"ACCN";"4816";"Frais d'émission des emprunts";"";"481";""
-"ACCN";"481";"Charges à repartir sur plusieurs exercices";"";"48";""
-"ACCN";"4818";"Charges à étaler";"";"481";""
-"ACCN";"486";"Charges constatées d'avance";"";"48";""
-"ACCN";"487";"Produits constatés d'avance";"";"48";""
-"ACCN";"48";"COMPTE DE REGULARISATION";"";"4";""
-"ACCN";"4886";"Charges";"";"488";""
-"ACCN";"488";"Comptes de répartition périodique des charges et produits";"";"48";""
-"ACCN";"4887";"Produits";"";"488";""
-"ACCN";"4";"COMPTES DE TIERS";"";"";""
-"ACCN";"491";"Provisions pour dépréciation des comptes de clients";"";"49";""
-"ACCN";"4951";"Comptes du groupe";"";"495";""
-"ACCN";"4955";"Comptes courants des associés";"";"495";""
-"ACCN";"495";"Provisions pour dépréciation comptes du groupe et associés";"";"49";""
-"ACCN";"4958";"Opérations faites en commun et en G.I.E.";"";"495";""
-"ACCN";"49";"PROVISIONS POUR DEPRECIATION DES COMPTES DE TIERS";"";"4";""
-"ACCN";"4962";"Créances sur cessions d'immobilisations";"";"496";""
-"ACCN";"4965";"Créances sur cessions de valeurs mobilières de placement";"";"496";""
-"ACCN";"496";"Provisions pour dépréciation des comptes de débiteurs divers";"";"49";""
-"ACCN";"4967";"Autres comptes débiteurs";"";"496";""
-"ACCN";"501";"Parts dans des entreprises liées";"";"50";""
-"ACCN";"502";"Actions propres";"";"50";""
-"ACCN";"5031";"Titres cotés";"";"503";""
-"ACCN";"503";"Actions";"";"50";""
-"ACCN";"5035";"Titres non cotés";"";"503";""
-"ACCN";"504";"Autres titres conférant un droit de propriété";"";"50";""
-"ACCN";"505";"Obligations et bons émis par la société et rachetés par elle";"";"50";""
-"ACCN";"5061";"Titres cotés";"";"506";""
-"ACCN";"506";"Obligations";"";"50";""
-"ACCN";"5065";"Titres non cotés";"";"506";""
-"ACCN";"507";"Bons du Trésor et bons de caisse à court terme";"";"50";""
-"ACCN";"5081";"Autres valeurs mobilières";"";"508";""
-"ACCN";"5082";"Bons de souscription";"";"508";""
-"ACCN";"508";"Autres valeurs mobilières de placement et autres créances as";"";"50";""
-"ACCN";"5088";"Intérêts courus sur obligations; bons et valeurs assimilées";"";"508";""
-"ACCN";"50";"VALEURS MOBILIERES DE PLACEMENT";"";"5";""
-"ACCN";"509";"Versements restant sur valeurs mobilières de placement";"";"50";""
-"ACCN";"5111";"Espèces";"";"511";""
-"ACCN";"5112";"Chèques";"";"511";""
-"ACCN";"5113";"Cartes bancaires";"";"511";""
-"ACCN";"511";"Valeurs à I'encaissement";"";"51";""
-"ACCN";"5114";"Autres paiements";"";"511";""
-"ACCN";"5121";"Banque principale";"";"512";""
-"ACCN";"5122";"Banque secondaire";"";"512";""
-"ACCN";"512";"Banques";"";"51";""
-"ACCN";"5124";"Comptes en devises";"";"512";""
-"ACCN";"514";"Chèques postaux";"";"51";""
-"ACCN";"515";"Caisses du Trésor et des établissements publics";"";"51";""
-"ACCN";"516";"Sociétés de bourse";"";"51";""
-"ACCN";"517";"Autres organismes financiers";"";"51";""
-"ACCN";"5186";"Intérêts courus à payer";"";"518";""
-"ACCN";"518";"Intérêts courus";"";"51";""
-"ACCN";"5187";"Intérêts courus à recevoir";"";"518";""
-"ACCN";"51";"BANQUES; ETABLISSEMENTS FINANCIERS ET ASSIMILES";"";"5";""
-"ACCN";"5191";"Crédit de mobilisation de créances commerciales (CMCC)";"";"519";""
-"ACCN";"5193";"Mobilisation de créances nées à l'étranger";"";"519";""
-"ACCN";"519";"Concours bancaires courants";"";"51";""
-"ACCN";"5198";"Intérêts courus sur concours bancaires courants";"";"519";""
-"ACCN";"52";"Instruments de trésorerie";"";"5";""
-"ACCN";"530";"Caisse";"";"53";""
-"ACCN";"5311";"Caisse en monnaie nationale";"";"531";""
-"ACCN";"531";"Caisse siège social";"";"53";""
-"ACCN";"5314";"Caisse en devises";"";"531";""
-"ACCN";"532";"Caisse succursale (ou usine) A";"";"53";""
-"ACCN";"53";"CAISSE";"";"5";""
-"ACCN";"533";"Caisse succursale (ou usine) B";"";"53";""
-"ACCN";"54";"REGIES D'AVANCES ET ACCREDITIFS";"";"5";""
-"ACCN";"540";"Régies d'avances et accréditifs";"";"54";""
-"ACCN";"58";"VIREMENTS INTERNES";"";"5";""
-"ACCN";"580";"Virements internes";"";"58";""
-"ACCN";"5";"COMPTES FINANCIERS";"";"";""
-"ACCN";"59";"PROVISIONS POUR DEPRECIATION DES COMPTES FINANCIERS";"";"5";""
-"ACCN";"5903";"Actions";"";"590";""
-"ACCN";"5904";"Autres titres conférant un droit de propriété";"";"590";""
-"ACCN";"5906";"Obligations";"";"590";""
-"ACCN";"590";"Provisions pour dépréciation valeurs mobilières de placement";"";"59";""
-"ACCN";"5908";"Autres valeurs mobilières de placement et créances assimilée";"";"590";""
-"ACCN";"6011";"Matière (ou groupe) A";"";"601";""
-"ACCN";"6012";"Matière (ou groupe) B";"";"601";""
-"ACCN";"601";"Achats stockés - Matières premières (et fournitures)";"";"60";""
-"ACCN";"6017";"Fournitures A; B; C ...";"";"601";""
-"ACCN";"60211";"Matière (ou groupe) C";"";"6021";""
-"ACCN";"6021";"Matières consommables";"";"602";""
-"ACCN";"60212";"Matière (ou groupe) D";"";"6021";""
-"ACCN";"60221";"Combustibles";"";"6022";""
-"ACCN";"60222";"Produits d'entretien";"";"6022";""
-"ACCN";"60223";"Fournitures d'atelier et d'usine";"";"6022";""
-"ACCN";"60224";"Fournitures de magasin";"";"6022";""
-"ACCN";"6022";"Fournitures consommables";"";"602";""
-"ACCN";"60225";"Fournitures de bureau";"";"6022";""
-"ACCN";"602";"Achats stockés - Autres approvisionnements";"";"60";""
-"ACCN";"60261";"Emballages perdus";"";"6026";""
-"ACCN";"60265";"Emballages récupérables non identifiables";"";"6026";""
-"ACCN";"6026";"Emballages";"";"602";""
-"ACCN";"60267";"Emballages à usage mixte";"";"6026";""
-"ACCN";"6031";"Variation des stocks de matières premières (et fournitures)";"";"603";""
-"ACCN";"6032";"Variation des stocks des autres approvisionnements";"";"603";""
-"ACCN";"603";"Variation des stocks (approvisionnements et marchandises)";"";"60";""
-"ACCN";"6037";"Variation des stocks de marchandises";"";"603";""
-"ACCN";"604";"Achats d'études et prestations de service";"";"60";""
-"ACCN";"605";"Achats de matériel; équipements et travaux";"";"60";""
-"ACCN";"6061";"Fournitures non stockables (eau; énergie; ...)";"";"606";""
-"ACCN";"6063";"Fournitures d'entretien et de petit équipement";"";"606";""
-"ACCN";"6064";"Fournitures administratives";"";"606";""
-"ACCN";"606";"Achats non stockés de matières et fournitures";"";"60";""
-"ACCN";"6068";"Autres matières et fournitures";"";"606";""
-"ACCN";"6071";"Marchandise (ou groupe) A";"";"607";""
-"ACCN";"607";"Achats de marchandises";"";"60";""
-"ACCN";"6072";"Marchandise (ou groupe ) B";"";"607";""
-"ACCN";"608";"Frais accessoires d'achat";"";"60";""
-"ACCN";"60";"ACHATS (sauf 603)";"";"6";""
-"ACCN";"6091";"- de matières premières (et fournitures)";"";"609";""
-"ACCN";"6092";"- d'autres approvisionnements stockés";"";"609";""
-"ACCN";"6094";"- d'études et prestations de services";"";"609";""
-"ACCN";"6095";"- de matériel; équipements et travaux";"";"609";""
-"ACCN";"6096";"- d'approvisionnements non stockés";"";"609";""
-"ACCN";"609";"Rabais; remises et ristournes obtenus sur achats";"";"60";""
-"ACCN";"6097";"- de marchandises";"";"609";""
-"ACCN";"611";"Sous-traitance générale";"";"61";""
-"ACCN";"6122";"Crédit-bail mobilier";"";"612";""
-"ACCN";"612";"Redevances de crédit-bail";"";"61";""
-"ACCN";"6125";"Crédit-bail immobilier";"";"612";""
-"ACCN";"6132";"Locations immobilières";"";"613";""
-"ACCN";"6135";"Locations mobilières";"";"613";""
-"ACCN";"613";"Locations";"";"61";""
-"ACCN";"6136";"Malis sur emballages";"";"613";""
-"ACCN";"614";"Charges locatives et de copropriété";"";"61";""
-"ACCN";"6152";"- sur biens immobiliers";"";"615";""
-"ACCN";"6155";"- sur biens mobiliers";"";"615";""
-"ACCN";"615";"Entretien et réparations";"";"61";""
-"ACCN";"6156";"Maintenance";"";"615";""
-"ACCN";"6161";"Multirisques";"";"616";""
-"ACCN";"6162";"Assurance obligatoire dommage - construction";"";"616";""
-"ACCN";"61636";"- sur achats";"";"6163";""
-"ACCN";"61637";"- sur ventes";"";"6163";""
-"ACCN";"6163";"Assurance - transport";"";"616";""
-"ACCN";"61638";"- sur autres biens";"";"6163";""
-"ACCN";"6164";"Risques d'exploitation";"";"616";""
-"ACCN";"616";"Primes d'assurance";"";"61";""
-"ACCN";"6165";"Insolvabilité clients";"";"616";""
-"ACCN";"617";"Etudes et recherches";"";"61";""
-"ACCN";"6181";"Documentation générale";"";"618";""
-"ACCN";"6183";"Documentation technique";"";"618";""
-"ACCN";"618";"Divers";"";"61";""
-"ACCN";"6185";"Frais de colloques; séminaires; conférences";"";"618";""
-"ACCN";"61";"SERVICES EXTERIEURS";"";"6";""
-"ACCN";"619";"Rabais remises et ristournes obtenus sur services extérieurs";"";"61";""
-"ACCN";"6211";"Personnel intérimaire";"";"621";""
-"ACCN";"621";"Personnel extérieur à l'entreprise";"";"62";""
-"ACCN";"6214";"Personnel détaché ou prêté à l'entreprise";"";"621";""
-"ACCN";"6221";"Commissions et courtages sur achats";"";"622";""
-"ACCN";"6222";"Commissions et courtages sur ventes";"";"622";""
-"ACCN";"6224";"Rémunérations des transitaires";"";"622";""
-"ACCN";"6225";"Rémunérations d'affacturage";"";"622";""
-"ACCN";"6226";"Honoraires";"";"622";""
-"ACCN";"6227";"Frais d'actes et de contentieux";"";"622";""
-"ACCN";"622";"Rémunérations d'intermédiaires et honoraires";"";"62";""
-"ACCN";"6228";"Divers";"";"622";""
-"ACCN";"6231";"Annonces et insertions";"";"623";""
-"ACCN";"6232";"Echantillons";"";"623";""
-"ACCN";"6233";"Foires et expositions";"";"623";""
-"ACCN";"6234";"Cadeaux à la clientèle";"";"623";""
-"ACCN";"6235";"Primes";"";"623";""
-"ACCN";"6236";"Catalogues et imprimés";"";"623";""
-"ACCN";"6237";"Publications";"";"623";""
-"ACCN";"623";"Publicité; publications; relations publiques";"";"62";""
-"ACCN";"6238";"Divers (pourboires; dons courants; ...)";"";"623";""
-"ACCN";"6241";"Transports sur achats";"";"624";""
-"ACCN";"6242";"Transports sur ventes";"";"624";""
-"ACCN";"6243";"Transports entre établissements ou chantiers";"";"624";""
-"ACCN";"6244";"Transports administratifs";"";"624";""
-"ACCN";"6247";"Transports collectifs du personnel";"";"624";""
-"ACCN";"624";"Transports de biens et transports collectifs du personnel";"";"62";""
-"ACCN";"6248";"Divers";"";"624";""
-"ACCN";"6251";"Voyages et déplacements";"";"625";""
-"ACCN";"6255";"Frais de déménagement";"";"625";""
-"ACCN";"6256";"Missions";"";"625";""
-"ACCN";"625";"Déplacements; missions et réceptions";"";"62";""
-"ACCN";"6257";"Réceptions";"";"625";""
-"ACCN";"626";"Frais postaux et frais de télécommunications";"";"62";""
-"ACCN";"6271";"Frais sur titres (achat; vente; garde)";"";"627";""
-"ACCN";"6272";"Commissions et frais sur émission d'emprunts";"";"627";""
-"ACCN";"6275";"Frais sur effets (commissions d'endos; ...)";"";"627";""
-"ACCN";"6276";"Location de coffres";"";"627";""
-"ACCN";"627";"Services bancaires et assimiles";"";"62";""
-"ACCN";"6278";"Autres frais et commissions sur prestations de services";"";"627";""
-"ACCN";"6281";"Concours divers (cotisations; ...)";"";"628";""
-"ACCN";"628";"Divers";"";"62";""
-"ACCN";"6284";"Frais de recrutement de personnel";"";"628";""
-"ACCN";"62";"AUTRES SERVICES EXTERIEURS";"";"6";""
-"ACCN";"629";"Rabais; remises et ristournes obtenus sur services ext.";"";"62";""
-"ACCN";"6311";"Taxe sur les salaires";"";"631";""
-"ACCN";"6312";"Taxe d'apprentissage";"";"631";""
-"ACCN";"6313";"Participation des employeurs à la formation professionnelle";"";"631";""
-"ACCN";"6314";"Cotisation pour défaut d'investissement obligatoire";"";"631";""
-"ACCN";"631";"Impôts; taxes sur rémunérations (administration)";"";"63";""
-"ACCN";"6318";"Autres";"";"631";""
-"ACCN";"6331";"Versement de transport";"";"633";""
-"ACCN";"6332";"Allocation logement";"";"633";""
-"ACCN";"6333";"Participation des employeurs à la formation professionnelle";"";"633";""
-"ACCN";"6334";"Participation des employeurs à l'effort de construction";"";"633";""
-"ACCN";"6335";"Versements libératoires (exonération taxe apprentissage)";"";"633";""
-"ACCN";"633";"Impôts; taxes et versements sur rémunérations (autres org.)";"";"63";""
-"ACCN";"6338";"Autres";"";"633";""
-"ACCN";"63511";"Taxe professionnelle";"";"6351";""
-"ACCN";"63512";"Taxes foncières";"";"6351";""
-"ACCN";"63513";"Autres impôts locaux";"";"6351";""
-"ACCN";"6351";"Impôts directs (sauf impôts sur les bénéfices)";"";"635";""
-"ACCN";"63514";"Taxes sur les véhicules des sociétés";"";"6351";""
-"ACCN";"6352";"Taxes sur le chiffre d'affaires non récupérables";"";"635";""
-"ACCN";"6353";"Impôts indirects";"";"635";""
-"ACCN";"6354";"Droits d'enregistrement et de timbre";"";"635";""
-"ACCN";"63541";"Droits de mutation";"";"6354";""
-"ACCN";"635";"Autres impôts; taxes et versements (administration)";"";"63";""
-"ACCN";"6358";"Autres droits";"";"635";""
-"ACCN";"63";"IMPOTS; TAXES ET VERSEMENTS";"";"6";""
-"ACCN";"6371";"Contribution sociale de solidarité à la charge des sociétés";"";"637";""
-"ACCN";"6372";"Taxes perçues par les organismes publics internationaux";"";"637";""
-"ACCN";"6374";"Impôts et taxes exigibles à l'étranger";"";"637";""
-"ACCN";"637";"Autres impôts et taxes (autres organismes)";"";"63";""
-"ACCN";"6378";"Taxes diverses";"";"637";""
-"ACCN";"6411";"Salaires";"";"641";""
-"ACCN";"6412";"Congés payes";"";"641";""
-"ACCN";"6413";"Primes et gratifications";"";"641";""
-"ACCN";"6414";"Indemnités et avantages divers";"";"641";""
-"ACCN";"641";"Rémunérations du personnel";"";"64";""
-"ACCN";"6415";"Supplément familial";"";"641";""
-"ACCN";"644";"Rémunération du travail de l'exploitant";"";"64";""
-"ACCN";"6451";"Cotisations à l'URSSAF";"";"645";""
-"ACCN";"6452";"Cotisations aux mutuelles";"";"645";""
-"ACCN";"6453";"Cotisations aux caisses de retraites";"";"645";""
-"ACCN";"6454";"Cotisations aux ASSEDIC";"";"645";""
-"ACCN";"645";"Charges de sécurité sociale et de prévoyance";"";"64";""
-"ACCN";"6458";"Cotisations aux autres organismes sociaux";"";"645";""
-"ACCN";"646";"Cotisations sociales personnelles de l'exploitant";"";"64";""
-"ACCN";"6471";"Prestations directes";"";"647";""
-"ACCN";"6472";"Versements aux comités d'entreprise et d'établissement";"";"647";""
-"ACCN";"6473";"Versements aux comités d'hygiène et de sécurité";"";"647";""
-"ACCN";"6474";"Versement aux autres oeuvres sociales";"";"647";""
-"ACCN";"647";"Autres charges sociales";"";"64";""
-"ACCN";"6475";"Médecine du travail; pharmacie";"";"647";""
-"ACCN";"64";"CHARGES DE PERSONNEL";"";"6";""
-"ACCN";"648";"Autres charges de personnel";"";"64";""
-"ACCN";"6511";"Redevances pour concessions; brevets; licences; marques; log";"";"651";""
-"ACCN";"6516";"Droits d'auteur et de reproduction";"";"651";""
-"ACCN";"651";"Redevances pour concessions; brevets; licences; etc.";"";"65";""
-"ACCN";"6518";"Autres droits et valeurs similaires";"";"651";""
-"ACCN";"653";"Jetons de présence";"";"65";""
-"ACCN";"6541";"Créances de l'exercice";"";"654";""
-"ACCN";"654";"Pertes sur créances irrécouvrables";"";"65";""
-"ACCN";"6544";"Créances des exercices antérieurs";"";"654";""
-"ACCN";"6551";"Quote-part de bénéfice transférée (comptabilité du gérant)";"";"655";""
-"ACCN";"655";"Quote-part de résultat sur opérations faites en commun";"";"65";""
-"ACCN";"6555";"Quote-part de perte supportée (comptabilité des associés)";"";"655";""
-"ACCN";"65";"AUTRES CHARGES DE GESTION COURANTE";"";"6";""
-"ACCN";"658";"Autres charges de gestion courante";"";"65";""
-"ACCN";"66116";"- des emprunts et dettes assimilées";"";"6611";""
-"ACCN";"6611";"Intérêts des emprunts et dettes";"";"661";""
-"ACCN";"66117";"- des dettes rattachées à des participations";"";"6611";""
-"ACCN";"6615";"Intérêts des comptes courants et des dépôts créditeurs";"";"661";""
-"ACCN";"6616";"Intérêts bancaires et sur opérations de financement";"";"661";""
-"ACCN";"6617";"Intérêts des obligations cautionnées";"";"661";""
-"ACCN";"661";"Charges d'intérêt";"";"66";""
-"ACCN";"66181";"- dettes commerciales";"";"6618";""
-"ACCN";"6618";"Intérêts des autres dettes";"";"661";""
-"ACCN";"66188";"- dettes diverses";"";"6618";""
-"ACCN";"664";"Pertes sur créances liées à des participations";"";"66";""
-"ACCN";"665";"Escomptes accordés";"";"66";""
-"ACCN";"666";"Pertes de change";"";"66";""
-"ACCN";"667";"Charges nettes sur cession valeurs mobilières de placement";"";"66";""
-"ACCN";"66";"CHARGES FINANCIERES";"";"6";""
-"ACCN";"668";"Autres charges financières";"";"66";""
-"ACCN";"6688";"Pertes de change ou de conversion";"";"668";""
-"ACCN";"670";"Charges exceptionnelles";"";"67";""
-"ACCN";"6711";"Pénalités sur marchés (et dédits payés sur achats et ventes)";"";"671";""
-"ACCN";"6712";"Pénalités et amendes fiscales et pénales";"";"671";""
-"ACCN";"6713";"Dons; libéralités";"";"671";""
-"ACCN";"6714";"Créances devenues irrécouvrables dans l'exercice";"";"671";""
-"ACCN";"6715";"Subventions accordées";"";"671";""
-"ACCN";"6717";"Rappels d'impôts (autres impôts sur les bénéfices)";"";"671";""
-"ACCN";"671";"Charges exceptionnelles sur opérations de gestion";"";"67";""
-"ACCN";"6718";"Autres charges exceptionnelles sur opérations de gestion";"";"671";""
-"ACCN";"672";"Charges exceptionnelles sur exercices antérieurs";"";"67";""
-"ACCN";"6751";"Immobilisations incorporelles";"";"675";""
-"ACCN";"6752";"Immobilisations corporelles";"";"675";""
-"ACCN";"6756";"Immobilisations financières";"";"675";""
-"ACCN";"675";"Valeurs comptables des éléments d'actif cédés";"";"67";""
-"ACCN";"6758";"Autres éléments d'actif";"";"675";""
-"ACCN";"67";"CHARGES EXCEPTIONNELLES";"";"6";""
-"ACCN";"6781";"Malis provenant de clauses d'indexation";"";"678";""
-"ACCN";"6782";"Lots";"";"678";""
-"ACCN";"6783";"Malis provenant du rachat par l'entreprise d'actions";"";"678";""
-"ACCN";"678";"Autres charges exceptionnelles";"";"67";""
-"ACCN";"6788";"Charges exceptionnelles diverses";"";"678";""
-"ACCN";"68111";"Dotations aux amort. immobilisations incorporelles";"";"6811";""
-"ACCN";"6811";"Dotations sur immobilisations";"";"681";""
-"ACCN";"68112";"Dotations aux amort. immobilisations corporelles";"";"6811";""
-"ACCN";"6812";"Dotations aux amortissements des charges d'exploitation";"";"681";""
-"ACCN";"6815";"Dotations aux provisions pour risques d'exploitation";"";"681";""
-"ACCN";"68161";"Dotations provisions dépréc. immos incorporelles";"";"6816";""
-"ACCN";"6816";"Dotation aux provisions pour dépréciation des immos";"";"681";""
-"ACCN";"68162";"Dotations provisions dépréc. immos corporelles";"";"6816";""
-"ACCN";"681";"Dotations aux amortissements - Charges d'exploitation";"";"68";""
-"ACCN";"68173";"Stocks et en-cours";"";"6817";""
-"ACCN";"6817";"Dotations aux provisions dépréciation des actifs circulant";"";"681";""
-"ACCN";"68174";"Créances";"";"6817";""
-"ACCN";"6861";"Dotations aux amortissements des primes de remboursement";"";"686";""
-"ACCN";"6865";"Dotations aux provisions pour risques et charges financiers";"";"686";""
-"ACCN";"686";"Dotations aux amort. et provisions - Charges financières";"";"68";""
-"ACCN";"68662";"Immobilisations financières";"";"6866";""
-"ACCN";"6866";"Dotation pour dépréciation des éléments financiers";"";"686";""
-"ACCN";"68665";"Valeurs mobilières de placement";"";"6866";""
-"ACCN";"68";"DOTATIONS AUX AMORTISSEMENTS ET AUX PROVISIONS";"";"6";""
-"ACCN";"6871";"Dotations aux amortissements exceptionnels sur immos";"";"687";""
-"ACCN";"6872";"Dotations aux provisions réglementées (immobilisations)";"";"687";""
-"ACCN";"68725";"Dotations provisions réglementées - Amort. dérogatoires";"";"6872";""
-"ACCN";"6873";"Dotations aux provisions réglementées (stocks)";"";"687";""
-"ACCN";"6874";"Dotations aux autres provisions réglementées";"";"687";""
-"ACCN";"6875";"Dotations aux provisions pour charges exceptionnelles";"";"687";""
-"ACCN";"687";"Dotations aux amort. et provisions - Charges exceptionnelles";"";"68";""
-"ACCN";"6876";"Dotations aux provisions pour dépréciation exceptionnelle";"";"687";""
-"ACCN";"6";"COMPTES DE CHARGES";"";"";""
-"ACCN";"691";"Participation des salaries aux résultats de lentreprise";"";"69";""
-"ACCN";"6951";"Impôts dus en France";"";"695";""
-"ACCN";"6952";"Contribution additionnelle à l'impôt sur les bénéfices";"";"695";""
-"ACCN";"695";"Impôts sur les bénéfices";"";"69";""
-"ACCN";"6954";"Impôts dus à l'étranger";"";"695";""
-"ACCN";"696";"Suppléments d'impôt sur les sociétés liés aux distributions";"";"69";""
-"ACCN";"697";"Imposition forfaitaire annuelle des sociétés";"";"69";""
-"ACCN";"698";"Contribution additionnelle";"";"69";""
-"ACCN";"69";"PARTICIPATION DES SALARIES - IMPOTS SUR LES BENEFICES";"";"6";""
-"ACCN";"699";"Produits - Reports en arrière des déficits";"";"69";""
-"ACCN";"7011";"Produit fini (ou groupe) A";"";"701";""
-"ACCN";"701";"Ventes de produits finis";"";"70";""
-"ACCN";"7012";"Produit fini (ou groupe) B";"";"701";""
-"ACCN";"702";"Ventes de produits intermédiaires";"";"70";""
-"ACCN";"703";"Ventes de produits résiduels";"";"70";""
-"ACCN";"7041";"Travaux de catégorie (ou activité) A";"";"704";""
-"ACCN";"704";"Travaux";"";"70";""
-"ACCN";"7042";"Travaux de catégorie (ou activité) B";"";"704";""
-"ACCN";"705";"Etudes";"";"70";""
-"ACCN";"706";"Travaux et prestations de services";"";"70";""
-"ACCN";"7071";"Marchandise (ou groupe) A";"";"707";""
-"ACCN";"707";"Ventes de marchandises";"";"70";""
-"ACCN";"7072";"Marchandise (ou groupe) B";"";"707";""
-"ACCN";"7081";"Produits des services exploités dans l'intérêt du personnel";"";"708";""
-"ACCN";"7082";"Commissions et courtages";"";"708";""
-"ACCN";"7083";"Locations diverses";"";"708";""
-"ACCN";"7084";"Mise à disposition de personnel facturée";"";"708";""
-"ACCN";"7085";"Ports et frais accessoires facturés";"";"708";""
-"ACCN";"7086";"Bonis sur reprises d'emballages consignés";"";"708";""
-"ACCN";"7087";"Bonifications obtenues des clients et primes sur ventes";"";"708";""
-"ACCN";"708";"Produits des activités annexes";"";"70";""
-"ACCN";"7088";"Autres produits activités annexes";"";"708";""
-"ACCN";"70";"VENTES DE PRODUITS; PRESTATIONS DE SERVICES; MARCHANDISES";"";"7";""
-"ACCN";"7091";"VENTES DE PRODUITS FINIS";"";"709";""
-"ACCN";"7092";"- sur ventes de produits intermédiaires";"";"709";""
-"ACCN";"7094";"- sur travaux";"";"709";""
-"ACCN";"7095";"- sur études";"";"709";""
-"ACCN";"7096";"- sur prestations de services";"";"709";""
-"ACCN";"7097";"- sur ventes de marchandises";"";"709";""
-"ACCN";"709";"Rabais; remises et ristournes accordées par l'entreprise";"";"70";""
-"ACCN";"7098";"- sur produits des activités annexes";"";"709";""
-"ACCN";"71";"PRODUCTION STOCKEE (ou déstockage)";"";"7";""
-"ACCN";"71331";"Produits en cours";"";"7133";""
-"ACCN";"7133";"Variation des en-cours de production de biens";"";"713";""
-"ACCN";"71335";"Travaux en cours";"";"7133";""
-"ACCN";"71341";"Etudes en cours";"";"7134";""
-"ACCN";"7134";"Variation des en-cours de production de services";"";"713";""
-"ACCN";"71345";"Prestations des services en cours";"";"7134";""
-"ACCN";"713";"VARIATION DES STOCKS (en-cours de production; produits)";"";"71";""
-"ACCN";"71351";"Produits intermédiaires";"";"7135";""
-"ACCN";"71355";"Produits finis";"";"7135";""
-"ACCN";"7135";"Variation des stocks de produits";"";"713";""
-"ACCN";"71358";"Produits résiduels";"";"7135";""
-"ACCN";"721";"Immobilisations incorporelles";"";"72";""
-"ACCN";"72";"PRODUCTION IMMOBILISEE";"";"7";""
-"ACCN";"722";"Immobilisations corporelles";"";"72";""
-"ACCN";"731";"Produits nets partiels sur opérations en cours";"";"73";""
-"ACCN";"73";"PRODUITS NETS PARTIELS SUR OPERATIONS A LONG TERME";"";"7";""
-"ACCN";"739";"Produits nets partiels sur opérations terminées";"";"73";""
-"ACCN";"74";"SUBVENTlONS D'EXPLOITATION";"";"7";""
-"ACCN";"740";"Subventions d'exploitation";"";"74";""
-"ACCN";"7511";"Redevances pour concessions; brevets; licences; marques; log";"";"751";""
-"ACCN";"7516";"Droits d'auteur et de reproduction";"";"751";""
-"ACCN";"751";"Redevances pour concessions; brevets; licences; marques; log";"";"75";""
-"ACCN";"7518";"Autres droits et valeurs similaires";"";"751";""
-"ACCN";"752";"Revenus des immeubles non affectes aux activités prof.";"";"75";""
-"ACCN";"753";"Jetons de présence et rémunérations d'administrateurs";"";"75";""
-"ACCN";"754";"Ristournes perçues des coopératives";"";"75";""
-"ACCN";"7551";"Quote-part de perte transférée (comptabilité du gérant)";"";"755";""
-"ACCN";"755";"Quotes-parts de résultat sur opérations faites en commun";"";"75";""
-"ACCN";"7555";"Quote-part de bénéfice attribué (comptabilité des associés)";"";"755";""
-"ACCN";"75";"AUTRES PRODUITS DE GESTION COURANTE";"";"7";""
-"ACCN";"758";"Produits divers de gestion courante";"";"75";""
-"ACCN";"7611";"Revenus des titres de participation";"";"761";""
-"ACCN";"7616";"Revenus sur autres formes de participation";"";"761";""
-"ACCN";"761";"Produits de participations";"";"76";""
-"ACCN";"7617";"Revenus des créances rattachées à des participations";"";"761";""
-"ACCN";"7621";"Revenus des titres immobilisés";"";"762";""
-"ACCN";"7624";"Revenus des prêts";"";"762";""
-"ACCN";"762";"Produits des autres immobilisations financières";"";"76";""
-"ACCN";"7627";"Revenus des créances immobilisées";"";"762";""
-"ACCN";"7631";"Revenus sur créances commerciales";"";"763";""
-"ACCN";"763";"Revenus des autres créances";"";"76";""
-"ACCN";"7638";"Revenus sur créances diverses";"";"763";""
-"ACCN";"764";"Revenus des valeurs mobilières de placement";"";"76";""
-"ACCN";"765";"Escomptes obtenus";"";"76";""
-"ACCN";"766";"Gains de change";"";"76";""
-"ACCN";"767";"Produits nets sur cession de valeurs mobilières de placement";"";"76";""
-"ACCN";"76";"PRODUITS FINANCIERS";"";"7";""
-"ACCN";"768";"Autres produits financiers";"";"76";""
-"ACCN";"7688";"Gains de change ou de conversion";"";"768";""
-"ACCN";"770";"Produits exceptionnels";"";"77";""
-"ACCN";"7711";"Dédits et pénalités perçus sur achats et sur ventes";"";"771";""
-"ACCN";"7713";"Libéralités reçues";"";"771";""
-"ACCN";"7714";"Rentrées sur créances amorties";"";"771";""
-"ACCN";"7715";"Subventions d'équilibre";"";"771";""
-"ACCN";"7717";"Dégrèvements impôts (autres impôts sur les bénéfices)";"";"771";""
-"ACCN";"771";"Produits exceptionnels sur opérations de gestion";"";"77";""
-"ACCN";"7718";"Autres produits exceptionnels sur opérations de gestion";"";"771";""
-"ACCN";"772";"Produits exceptionnels sur exercices antérieurs";"";"77";""
-"ACCN";"7751";"Immobilisations incorporelles";"";"775";""
-"ACCN";"7752";"Immobilisations corporelles";"";"775";""
-"ACCN";"7756";"Immobilisations financières";"";"775";""
-"ACCN";"775";"Produits des cessions d'éléments d'actif";"";"77";""
-"ACCN";"7758";"Autres éléments d'actif";"";"775";""
-"ACCN";"777";"Quote-part des subventions d'invest. virée au résultat";"";"77";""
-"ACCN";"77";"PRODUITS EXCEPTIONNELS";"";"7";""
-"ACCN";"7781";"Bonis provenant de clauses d'indexation";"";"778";""
-"ACCN";"7782";"Lots";"";"778";""
-"ACCN";"7783";"Bonis provenant du rachat par l'entreprise d'actions";"";"778";""
-"ACCN";"778";"Autres produits exceptionnels";"";"77";""
-"ACCN";"7788";"Produits exceptionnels divers";"";"778";""
-"ACCN";"78111";"Immobilisations incorporelles";"";"7811";""
-"ACCN";"7811";"Reprises sur amortissements des immobilisations";"";"781";""
-"ACCN";"78112";"Immobilisations corporelles";"";"7811";""
-"ACCN";"7815";"Reprises sur provisions pour charges d'exploitation";"";"781";""
-"ACCN";"78161";"Reprises prov. dépréc. immos incorporelles";"";"7816";""
-"ACCN";"7816";"Reprises sur provisions pour dépréciation des immos";"";"781";""
-"ACCN";"78162";"Reprises prov. dépréc. immos corporelles";"";"7816";""
-"ACCN";"781";"Reprises sur amortissements et provisions";"";"78";""
-"ACCN";"78173";"Stocks et en-cours";"";"7817";""
-"ACCN";"7817";"Reprises pour dépréciation des actifs circulant";"";"781";""
-"ACCN";"78174";"Créances";"";"7817";""
-"ACCN";"7865";"Reprises sur provisions pour risques et charges financiers";"";"786";""
-"ACCN";"786";"Reprises sur provisions pour risques";"";"78";""
-"ACCN";"78662";"Immobilisations financières";"";"7866";""
-"ACCN";"7866";"Reprises pour dépréciation des éléments financiers";"";"786";""
-"ACCN";"78665";"Valeurs mobilières de placement";"";"7866";""
-"ACCN";"78";"REPRISES SUR AMORTISSEMENTS ET PROVISIONS";"";"7";""
-"ACCN";"78725";"Reprises sur provisions - Amort. dérogatoires";"";"7872";""
-"ACCN";"78726";"Provision spéciale de réévaluation";"";"7872";""
-"ACCN";"7872";"Reprises sur provisions réglementées (immobilisations)";"";"787";""
-"ACCN";"78727";"Plus-values réinvesties";"";"7872";""
-"ACCN";"7873";"Reprises sur provisions réglementées (stock)";"";"787";""
-"ACCN";"7874";"Reprises sur autres provisions réglementées";"";"787";""
-"ACCN";"7875";"Reprises sur provisions pour charges exceptionnelles";"";"787";""
-"ACCN";"787";"Reprises sur provisions";"";"78";""
-"ACCN";"7876";"Reprises sur provisions pour dépréciation exceptionnelle";"";"787";""
-"ACCN";"7";"COMPTES DE PRODUITS";"";"";""
-"ACCN";"791";"Transfert de charges d'exploitation";"";"79";""
-"ACCN";"796";"Transfert de charges financières";"";"79";""
-"ACCN";"79";"TRANSFERTS DE CHARGES";"";"7";""
-"ACCN";"797";"Transferts de charges exceptionnelles";"";"79";""
-"ACCN";"8011";"Avals; cautions; garanties";"";"801";""
-"ACCN";"8014";"Effets circulant sous l'endos de l'entreprise";"";"801";""
-"ACCN";"80161";"Crédit-bail mobilier";"";"8016";""
-"ACCN";"8016";"Redevances crédit-bail restant à courir";"";"801";""
-"ACCN";"80165";"Crédit-bail immobilier";"";"8016";""
-"ACCN";"801";"Engagements donnés par l'entreprise";"";"80";""
-"ACCN";"8018";"Autres engagements donnés";"";"801";""
-"ACCN";"8021";"Avals; cautions; garanties";"";"802";""
-"ACCN";"8024";"Créances escomptées non échues";"";"802";""
-"ACCN";"80261";"Crédit-bail mobilier";"";"8026";""
-"ACCN";"8026";"Engagements reçus pour utilisation en crédit-bail";"";"802";""
-"ACCN";"80265";"Crédit-bail immobilier";"";"8026";""
-"ACCN";"802";"Engagements reçus par l'entreprise";"";"80";""
-"ACCN";"8028";"Autres engagements reçus";"";"802";""
-"ACCN";"80";"ENGAGEMENTS";"";"8";""
-"ACCN";"8091";"Contrepartie 801";"";"809";""
-"ACCN";"809";"Contrepartie des engagements";"";"80";""
-"ACCN";"8092";"Contrepartie 802";"";"809";""
-"ACCN";"88";"RESULTAT EN INSTANCE D'AFFECTATION";"";"8";""
-"ACCN";"8";"COMPTES SPECIAUX";"";"";""
-"ACCN";"89";"BILAN";"";"8";""
+accountNumber;label;thirdParty
+1011;Capital souscrit - non appelé;
+1012;"Capital souscrit - appelé; non versé";
+10131;Capital non amorti;
+1013;"Capital souscrit - appelé; versé";
+10132;Capital amorti;
+101;Capital;
+1018;Capital souscrit soumis a des réglementations particulières;
+1041;Primes d'émission;
+1042;Primes de fusion;
+1043;Primes d'apport;
+1044;Primes de conversion d'obligations en actions;
+104;Primes liées au capital social;
+1045;Bons de souscription d'actions;
+1051;Réserve spéciale de réévaluation;
+1052;Ecart de réévaluation libre;
+1053;Réserve de réévaluation;
+1055;Ecarts de réévaluation (autres opérations légales);
+1057;Autres écarts de réévaluation en France;
+105;Ecarts de réévaluation;
+1058;Autres écarts de réévaluation a l'étranger;
+10611;Réserve légale proprement dite;
+1061;Réserve légale;
+10612;Plus-value nette à long terme;
+1062;Réserves indisponibles;
+1063;Réserves statutaires ou contractuelles;
+10641;Plus-values nettes a long terme;
+10643;Réserves consécutives a l'octroi de subventions d'invest.;
+1064;Réserves réglementées;
+10648;Autres réserves réglementées;
+106;Réserves;
+10681;Réserve de propre assureur;
+1068;Autres réserves;
+10688;Réserves diverses;
+107;Ecart d'équivalence;
+108;Compte de l'exploitant;
+10;CAPITAL ET RESERVE;
+109;Actionnaires: capital souscrit - non appelé;
+110;Report à nouveau (solde créditeur);
+11;REPORT A NOUVEAU (solde créditeur ou débiteur);
+119;Report à nouveau (solde débiteur);
+120;Résultat de l'exercice (bénéfice);
+12;RESULTAT DE L'EXERCICE (bénéfice ou perte);
+129;Résultat de l'exercice (perte);
+1311;Etat;
+1312;Régions;
+1313;Départements;
+1314;Communes;
+1315;Collectivités publiques;
+1316;Entreprises publiques;
+1317;Entreprises et organismes privés;
+131;Subventions d'équipement;
+1318;Autres;
+138;Autres subventions d'investissement;
+13;SUBVENTIONS D'INVESTISSEMENT;
+13911;Etat;
+13912;Régions;
+13913;Départements;
+13914;Communes;
+13915;Collectivités publiques;
+13916;Entreprises publiques;
+13917;Entreprises et organismes privés;
+1391;Subventions d'équipement;
+13918;Autres;
+139;Subventions d'investissement inscrites au compte de résultat;
+1398;Autres subventions d'investissement;
+1423;Provisions pour reconstitution des gisements pétroliers;
+142;Provisions réglementées relatives aux immobilisations;
+1424;Provisions pour investissement (participation des salariés);
+1431;Hausse des prix;
+143;Provisions réglementées relatives aux stocks;
+1432;Fluctuation des cours;
+144;Provisions réglementées relatives autres éléments de l'actif;
+145;Amortissements dérogatoires;
+146;Provision spéciale de réévaluation;
+147;Plus-values réinvesties;
+14;PROVISIONS REGLEMENTEES;
+148;Autres provisions réglementées;
+1511;Provisions pour litiges;
+1512;Provisions pour garanties données aux clients;
+1513;Provisions pour pertes sur marches à terme;
+1514;Provisions pour amendes et pénalités;
+1515;Provisions pour pertes de change;
+151;Provisions pour risques;
+1518;Autres provisions pour risques;
+153;Provisions pour pensions et obligations similaires;
+154;Provisions pour restructurations;
+155;Provisions pour impôts;
+156;Provisions pour renouvellement des immobilisations;
+157;Provisions pour charges à répartir sur plusieurs exercices;
+1572;Provisions pour grosses réparations;
+15;PROVlSlONS POUR RISQUES ET CHARGES;
+158;Autres provisions pour charges;
+1582;Provisions pour charges sociales et fisc. sur congés à payer;
+161;Emprunts obligataires convertibles;
+163;Autres emprunts obligataires;
+164;Emprunts auprès des établissements de crédit;
+1651;Dépôts;
+165;Dépôts et cautionnements reçus;
+1655;Cautionnements;
+1661;Comptes bloqués;
+166;Participation des salariés aux résultats;
+1662;Fonds de participation;
+1671;Emissions de titres participatifs;
+1674;Avances conditionnées de l'Etat;
+167;Emprunts et dettes assortis de conditions particulières;
+1675;Emprunts participatifs;
+1681;Autres emprunts;
+1685;Rentes viagères capitalisées;
+1687;Autres dettes;
+168;Autres emprunts et dettes assimilées;
+16881;Sur emprunts obligataires convertibles;
+16883;Sur autres emprunts obligataires;
+16884;Sur emprunts auprès des établissements de crédit;
+16885;Sur dépôts et cautionnements reçus;
+16886;Sur participation des salariés aux résultats;
+16887;Sur emprunts et dettes assortis de conditions particulières;
+1688;Intérêts courus;
+16888;Sur autres emprunts et dettes assimilées;
+16;EMPRUNTS ET DETTES ASSIMILEES;
+169;Primes de remboursement des obligations;
+171;Dettes rattachées à des participations (groupe);
+174;Dettes rattachées à des participations (hors groupe);
+17;DETTES RATTACHEES A DES PARTICIPATIONS;
+1781;Principal;
+178;Dettes rattachées à des sociétés en participation;
+1788;Intérêts courus;
+1;COMPTES DE CAPITAUX;
+181;Comptes de liaison des établissements;
+186;Biens et prestations échangés entre établissement (charges);
+187;Biens et prestations échangés entre établissement (produits);
+18;COMPTES DE LIAISON DES ETABLISS. ET STES EN PARTICIPATION;
+188;Comptes de liaison des sociétés en participation;
+2011;Frais de constitution;
+20121;Frais de prospection;
+2012;Frais de premier établissement;
+20122;Frais de publicité;
+201;Frais d'établissement;
+2013;Frais d'augmentation de capital et d'opérations diverses;
+203;Frais de recherche et de développement;
+205;Concessions et droits similaires;
+206;Droit au bail;
+207;Fonds commercial;
+20;IMMOBILISATIONS INCORPORELLES;
+208;Autres immobilisations incorporelles;
+2111;Terrains nus;
+2112;Terrains aménagés;
+2113;Sous-sols et sur-sols;
+2114;Terrains de gisement;
+21141;Carrières;
+21151;Ensembles immobiliers industriels;
+21155;Ensembles immobiliers administratifs et commerciaux;
+2115;Terrains bâtis;
+211581;- Affectés aux opérations professionnelles;
+21158;Autres ensembles immobiliers;
+211588;- Affectés aux opérations non professionnelles;
+211;Terrains;
+2116;Comptes d'ordre sur immobilisations;
+212;Agencements et aménagements de terrain;
+21311;Ensembles immobiliers industriels;
+21315;Ensembles immobiliers administratifs et commerciaux;
+2131;Bâtiments;
+213181;- Affectés aux opérations professionnelles;
+21318;Autres ensembles immobiliers;
+213188;- Affectés aux opérations non professionnelles;
+2135;"Installations générales; agencements; aménagements";
+213;Constructions;
+21381;Voies de terre;
+21382;Voies de fer;
+21383;Voies d'eau;
+21384;Barrages;
+2138;Ouvrages d'infrastructure;
+21385;Pistes d'aérodromes;
+214;Constructions sur sol d'autrui;
+21511;"- sur sol propre;"";2151;""
+ACCN;2151;Installations complexes spécialisées;"";215;""
+ACCN;21514;- sur sol d'autrui;"";2151;""
+ACCN;21531;- sur sol propre;"";2153;""
+ACCN;2153;Installations à caractère spécifique;"";215;""
+ACCN;21534;- sur sol d'autrui;"";2153;""
+ACCN;2154;Matériel industriel;"";215;""
+ACCN;2155;Outillage industriel;"";215;""
+ACCN;215;Installations techniques";" matériel et outillage industriels;"";21;""
+ACCN;2157;Agencements et aménagements du matériel et outillages ind.;"";215;""
+ACCN;21;IMMOBlLlSATIONS CORPORELLES;"";2;""
+ACCN;2181;Installations générales"
\ No newline at end of file
Modified: trunk/lima-swing/src/main/resources/import/pcg_shortened.csv
===================================================================
--- trunk/lima-swing/src/main/resources/import/pcg_shortened.csv 2014-07-30 21:28:07 UTC (rev 3876)
+++ trunk/lima-swing/src/main/resources/import/pcg_shortened.csv 2014-07-30 22:18:28 UTC (rev 3877)
@@ -1,250 +1,251 @@
-"ACCN";"101";"Capital";"";"10";""
-"ACCN";"105";"Ecarts de réévaluation";"";"10";""
-"ACCN";"1061";"Réserve légale";"";"106";""
-"ACCN";"1063";"Réserves statutaires ou contractuelles";"";"106";""
-"ACCN";"1064";"Réserves réglementées";"";"106";""
-"ACCN";"106";"Réserves";"";"10";""
-"ACCN";"1068";"Autres réserves";"";"106";""
-"ACCN";"10";"CAPITAL ET RESERVE";"";"1";""
-"ACCN";"108";"Compte de l'exploitant";"";"10";""
-"ACCN";"110";"Report à nouveau (solde créditeur)";"";"11";""
-"ACCN";"11";"REPORT A NOUVEAU (solde créditeur ou débiteur)";"";"1";""
-"ACCN";"119";"Report à nouveau (solde débiteur)";"";"11";""
-"ACCN";"120";"Résultat de l'exercice (bénéfice)";"";"12";""
-"ACCN";"12";"RESULTAT DE L'EXERCICE (bénéfice ou perte)";"";"1";""
-"ACCN";"129";"Résultat de l'exercice (perte)";"";"12";""
-"ACCN";"145";"Amortissements dérogatoires";"";"14";""
-"ACCN";"146";"Provision spéciale de réévaluation";"";"14";""
-"ACCN";"147";"Plus-values réinvesties";"";"14";""
-"ACCN";"14";"PROVISIONS REGLEMENTEES";"";"1";""
-"ACCN";"148";"Autres provisions réglementées";"";"14";""
-"ACCN";"151";"Provisions pour risques";"";"15";""
-"ACCN";"155";"Provisions pour impôts";"";"15";""
-"ACCN";"15";"PROVlSlONS POUR RISQUES ET CHARGES";"";"1";""
-"ACCN";"158";"Autres provisions pour charges";"";"15";""
-"ACCN";"1";"COMPTES DE CAPITAUX";"";"";""
-"ACCN";"163";"Autres emprunts obligataires";"";"16";""
-"ACCN";"164";"Emprunts auprès des établissements de crédit";"";"16";""
-"ACCN";"16";"EMPRUNTS ET DETTES ASSIMILEES";"";"1";""
-"ACCN";"168";"Autres emprunts et dettes assimilées";"";"16";""
-"ACCN";"201";"Frais d'établissement";"";"20";""
-"ACCN";"206";"Droit au bail";"";"20";""
-"ACCN";"207";"Fonds commercial";"";"20";""
-"ACCN";"20";"IMMOBILISATIONS INCORPORELLES";"";"2";""
-"ACCN";"208";"Autres immobilisations incorporelles";"";"20";""
-"ACCN";"211";"Terrains";"";"21";""
-"ACCN";"213";"Constructions";"";"21";""
-"ACCN";"215";"Installations techniques; matériel et outillage industriels";"";"21";""
-"ACCN";"21";"IMMOBlLlSATIONS CORPORELLES";"";"2";""
-"ACCN";"218";"Autres immobilisations corporelles";"";"21";""
-"ACCN";"231";"Immobilisations corporelles en cours";"";"23";""
-"ACCN";"23";"IMMOBILlSATlONS EN COURS";"";"2";""
-"ACCN";"232";"Immobilisations incorporelles en cours";"";"23";""
-"ACCN";"274";"Prêts";"";"27";""
-"ACCN";"27";"AUTRES IMMOBILISATIONS FINANCIERES";"";"2";""
-"ACCN";"275";"Dépôts et cautionnements versés";"";"27";""
-"ACCN";"280";"Amortissements des immobilisations incorporelles";"";"28";""
-"ACCN";"28";"AMORTISSEMENTS DES IMMOBILISATIONS";"";"2";""
-"ACCN";"281";"Amortissements des immobilisations corporelles";"";"28";""
-"ACCN";"2";"COMPTES D'IMMOBILISATIONS";"";"";""
-"ACCN";"290";"Provisions pour dépréciation immobilisations incorporelles";"";"29";""
-"ACCN";"291";"Provisions pour dépréciation immobilisations corporelles";"";"29";""
-"ACCN";"29";"PROVISIONS POUR DEPRECIATION DES IMMOBILISATIONS";"";"2";""
-"ACCN";"297";"Provisions pour dépréciation des immobilisations financières";"";"29";""
-"ACCN";"31";"MATIERES PREMIERES (et fournitures)";"";"3";""
-"ACCN";"310";"Stocks d'approvisionnement";"";"31";""
-"ACCN";"321";"Matières consommables";"";"32";""
-"ACCN";"322";"Fournitures consommables";"";"32";""
-"ACCN";"32";"AUTRES APPROVISIONNEMENTS";"";"3";""
-"ACCN";"326";"Emballages";"";"32";""
-"ACCN";"351";"Produits intermédiaires";"";"35";""
-"ACCN";"355";"Produits finis";"";"35";""
-"ACCN";"35";"STOCKS DE PRODUITS";"";"3";""
-"ACCN";"358";"Produits résiduels (ou matières de récupérations)";"";"35";""
-"ACCN";"37";"STOCKS DE MARCHANDISES";"";"3";""
-"ACCN";"370";"Stocks de marchandises";"";"37";""
-"ACCN";"3";"COMPTES DE STOCKS ET D'EN-COURS";"";"";""
-"ACCN";"391";"Provisions pour dépréciation des stocks d'approvisionnement";"";"39";""
-"ACCN";"395";"Provisions pour dépréciation des stocks de produits";"";"39";""
-"ACCN";"39";"PROVISIONS POUR DEPRECIATION DES STOCKS ET EN-COURS";"";"3";""
-"ACCN";"397";"Provisions pour dépréciation des stocks de marchandises";"";"39";""
-"ACCN";"400";"Fournisseurs et comptes rattachés";"";"40";""
-"ACCN";"40";"FOURNISSEURS ET COMPTES RATTACHES";"";"4";""
-"ACCN";"409";"Fournisseurs débiteurs";"";"40";""
-"ACCN";"410";"Clients et comptes rattachés";"";"41";""
-"ACCN";"418";"Clients - Produits non encore facturés";"";"41";""
-"ACCN";"41";"CLIENTS ET COMPTES RATTACHES";"";"4";""
-"ACCN";"421";"Personnel - Rémunérations dues";"";"42";""
-"ACCN";"42";"PERSONNEL ET COMPTES RATTACHES";"";"4";""
-"ACCN";"428";"Personnel - Charges à payer et produits à recevoir";"";"42";""
-"ACCN";"43";"SECURITE SOCIALE - AUTRES ORGANISMES SOCIAUX";"";"4";""
-"ACCN";"444";"Etat - Impôts sur les bénéfices";"";"44";""
-"ACCN";"44";"ETAT ET AUTRES COLLECTIVITES PUBLIQUES";"";"4";""
-"ACCN";"447";"Autres impôts; taxes et versements assimilés";"";"44";""
-"ACCN";"45";"GROUPES ET ASSOCIES";"";"4";""
-"ACCN";"455";"Associés - Comptes courants";"";"45";""
-"ACCN";"46";"DEBITEURS ET CREDITEURS DIVERS";"";"4";""
-"ACCN";"47";"COMPTES TRANSITOIRES OU D'ATTENTE";"";"4";""
-"ACCN";"470";"Compte d'attente";"";"47";""
-"ACCN";"481";"Charges à repartir sur plusieurs exercices";"";"48";""
-"ACCN";"486";"Charges constatées d'avance";"";"48";""
-"ACCN";"48";"COMPTE DE REGULARISATION";"";"4";""
-"ACCN";"487";"Produits constatés d'avance";"";"48";""
-"ACCN";"4";"COMPTES DE TIERS";"";"";""
-"ACCN";"491";"Provisions pour dépréciation des comptes de clients";"";"49";""
-"ACCN";"49";"PROVISIONS POUR DEPRECIATION DES COMPTES DE TIERS";"";"4";""
-"ACCN";"496";"Provisions pour dépréciation des comptes de débiteurs divers";"";"49";""
-"ACCN";"503";"Actions";"";"50";""
-"ACCN";"50";"VALEURS MOBILIERES DE PLACEMENT";"";"5";""
-"ACCN";"506";"Obligations";"";"50";""
-"ACCN";"5111";"Espèces";"";"511";""
-"ACCN";"5112";"Chèques";"";"511";""
-"ACCN";"5113";"Cartes bancaires";"";"511";""
-"ACCN";"511";"Valeurs à l'encaissement";"";"51";""
-"ACCN";"5114";"Autres paiements";"";"511";""
-"ACCN";"5121";"Banque principale";"";"512";""
-"ACCN";"512";"Banques";"";"51";""
-"ACCN";"5122";"Banque secondaire";"";"512";""
-"ACCN";"514";"Chèques postaux";"";"51";""
-"ACCN";"517";"Autres organismes financiers";"";"51";""
-"ACCN";"51";"BANQUES; ETABLISSEMENTS FINANCIERS ET ASSIMILES";"";"5";""
-"ACCN";"518";"Intérêts courus";"";"51";""
-"ACCN";"53";"CAISSE";"";"5";""
-"ACCN";"530";"Caisse";"";"53";""
-"ACCN";"54";"REGIES D'AVANCES ET ACCREDITIFS";"";"5";""
-"ACCN";"540";"Régies d'avances et accréditifs";"";"54";""
-"ACCN";"58";"VIREMENTS INTERNES";"";"5";""
-"ACCN";"580";"Virements internes";"";"58";""
-"ACCN";"5";"COMPTES FINANCIERS";"";"";""
-"ACCN";"59";"PROVISIONS POUR DEPRECIATION DES COMPTES FINANCIERS";"";"5";""
-"ACCN";"590";"Provisions pour dépréciation des valeurs mobilières de placement";"";"59";""
-"ACCN";"601";"Achats stockés - Matières premières (et fournitures)";"";"60";""
-"ACCN";"6022";"Fournitures consommables";"";"60";""
-"ACCN";"6026";"Emballages";"";"60";""
-"ACCN";"606";"Achats non stockés de matières et fournitures";"";"60";""
-"ACCN";"607";"Achats de marchandises";"";"60";""
-"ACCN";"608";"Frais accessoires d'achat";"";"60";""
-"ACCN";"60";"ACHATS (sauf 603)";"";"6";""
-"ACCN";"609";"Rabais; remises et ristournes obtenus sur achats";"";"60";""
-"ACCN";"611";"Sous-traitance générale";"";"61";""
-"ACCN";"612";"Redevances de crédit-bail";"";"61";""
-"ACCN";"613";"Locations";"";"61";""
-"ACCN";"614";"Charges locatives et de copropriété";"";"61";""
-"ACCN";"615";"Entretien et réparations";"";"61";""
-"ACCN";"61";"SERVICES EXTERIEURS";"";"6";""
-"ACCN";"616";"Primes d'assurance";"";"61";""
-"ACCN";"621";"Personnel extérieur à l'entreprise";"";"62";""
-"ACCN";"622";"Rémunérations d'intermédiaires et honoraires";"";"62";""
-"ACCN";"623";"Publicité; publications; relations publiques";"";"62";""
-"ACCN";"624";"Transports de biens et transports collectifs du personnel";"";"62";""
-"ACCN";"625";"Déplacements; missions et réceptions";"";"62";""
-"ACCN";"626";"Frais postaux et frais de télécommunications";"";"62";""
-"ACCN";"62";"AUTRES SERVICES EXTERIEURS";"";"6";""
-"ACCN";"627";"Services bancaires et assimiles";"";"62";""
-"ACCN";"633";"Impôts; taxes et versements sur rémunérations (autres org.)";"";"63";""
-"ACCN";"635";"Autres impôts; taxes et versements (administration)";"";"63";""
-"ACCN";"63";"IMPOTS; TAXES ET VERSEMENTS";"";"6";""
-"ACCN";"6371";"Contribution sociale de solidarité à la charge des sociétés";"";"63";""
-"ACCN";"6411";"Salaires";"";"641";""
-"ACCN";"6412";"Congés payes";"";"641";""
-"ACCN";"6413";"Primes et gratifications";"";"641";""
-"ACCN";"641";"Rémunérations du personnel";"";"64";""
-"ACCN";"6414";"Indemnités et avantages divers";"";"641";""
-"ACCN";"644";"Rémunération du travail de l'exploitant";"";"64";""
-"ACCN";"6451";"Cotisations à l'URSSAF";"";"645";""
-"ACCN";"6452";"Cotisations aux mutuelles";"";"645";""
-"ACCN";"6453";"Cotisations aux caisses de retraites";"";"645";""
-"ACCN";"645";"Charges de sécurité sociale et de prévoyance";"";"64";""
-"ACCN";"6454";"Cotisations aux ASSEDIC";"";"645";""
-"ACCN";"64";"CHARGES DE PERSONNEL";"";"6";""
-"ACCN";"646";"Cotisations sociales personnelles de l'exploitant";"";"64";""
-"ACCN";"651";"Redevances pour concessions; brevets; licences; etc.";"";"65";""
-"ACCN";"654";"Pertes sur créances irrécouvrables";"";"65";""
-"ACCN";"655";"Quote-part de résultat sur opérations faites en commun";"";"65";""
-"ACCN";"65";"AUTRES CHARGES DE GESTION COURANTE";"";"6";""
-"ACCN";"658";"Autres charges de gestion courante";"";"65";""
-"ACCN";"661";"Charges d'intérêt";"";"66";""
-"ACCN";"665";"Escomptes accordés";"";"66";""
-"ACCN";"66";"CHARGES FINANCIERES";"";"6";""
-"ACCN";"6688";"Pertes de change ou de conversion";"";"66";""
-"ACCN";"670";"Charges exceptionnelles";"";"67";""
-"ACCN";"67";"CHARGES EXCEPTIONNELLES";"";"6";""
-"ACCN";"675";"Valeurs comptables des éléments d'actif cédés";"";"67";""
-"ACCN";"68111";"Dotations aux amort. immobilisations incorporelles";"";"681";""
-"ACCN";"68112";"Dotations aux amort. immobilisations corporelles";"";"681";""
-"ACCN";"68161";"Dotations provisions dépréc. immos incorporelles";"";"681";""
-"ACCN";"681";"Dotations aux amortissements - Charges d'exploitation";"";"68";""
-"ACCN";"68162";"Dotations provisions dépréc. immos corporelles";"";"681";""
-"ACCN";"686";"Dotations aux amort. et provisions - Charges financières";"";"68";""
-"ACCN";"68";"DOTATIONS AUX AMORTISSEMENTS ET AUX PROVISIONS";"";"6";""
-"ACCN";"687";"Dotations aux amort. et provisions - Charges exceptionnelles";"";"68";""
-"ACCN";"68725";"Dotations provisions réglementées - Amort. dérogatoires";"";"687";""
-"ACCN";"6";"COMPTES DE CHARGES";"";"";""
-"ACCN";"691";"Participation des salaries aux résultats de lentreprise";"";"69";""
-"ACCN";"695";"Impôts sur les bénéfices";"";"69";""
-"ACCN";"697";"Imposition forfaitaire annuelle des sociétés";"";"69";""
-"ACCN";"69";"PARTICIPATION DES SALARIES - IMPOTS SUR LES BENEFICES";"";"6";""
-"ACCN";"701";"Ventes de produits finis";"";"70";""
-"ACCN";"706";"Travaux et prestations de services";"";"70";""
-"ACCN";"707";"Ventes de marchandises";"";"70";""
-"ACCN";"708";"Produits des activités annexes";"";"70";""
-"ACCN";"70";"VENTES DE PRODUITS; PRESTATIONS DE SERVICES; MARCHANDISES";"";"7";""
-"ACCN";"709";"Rabais; remises et ristournes accordées par l'entreprise";"";"70";""
-"ACCN";"71";"PRODUCTION STOCKEE (ou déstockage)";"";"7";""
-"ACCN";"7133";"Variation des en-cours de production de biens";"";"713";""
-"ACCN";"7134";"Variation des en-cours de production de services";"";"713";""
-"ACCN";"713";"VARIATION DES STOCKS (en-cours de production; produits)";"";"71";""
-"ACCN";"7135";"Variation des stocks de produits";"";"713";""
-"ACCN";"721";"Immobilisations incorporelles";"";"72";""
-"ACCN";"72";"PRODUCTION IMMOBILISEE";"";"7";""
-"ACCN";"722";"Immobilisations corporelles";"";"72";""
-"ACCN";"74";"SUBVENTlONS D'EXPLOITATION";"";"7";""
-"ACCN";"740";"Subventions d'exploitation";"";"74";""
-"ACCN";"75";"AUTRES PRODUITS DE GESTION COURANTE";"";"7";""
-"ACCN";"758";"Produits divers de gestion courante";"";"75";""
-"ACCN";"76";"PRODUITS FINANCIERS";"";"7";""
-"ACCN";"765";"Escomptes obtenus";"";"76";""
-"ACCN";"770";"Produits exceptionnels";"";"77";""
-"ACCN";"77";"PRODUITS EXCEPTIONNELS";"";"7";""
-"ACCN";"775";"Produits des cessions d'éléments d'actif";"";"77";""
-"ACCN";"78161";"Reprises prov. dépréc. immos incorporelles";"";"781";""
-"ACCN";"781";"Reprises sur amortissements et provisions";"";"78";""
-"ACCN";"78162";"Reprises prov. dépréc. immos corporelles";"";"781";""
-"ACCN";"786";"Reprises sur provisions pour risques";"";"78";""
-"ACCN";"78";"REPRISES SUR AMORTISSEMENTS ET PROVISIONS";"";"7";""
-"ACCN";"787";"Reprises sur provisions";"";"78";""
-"ACCN";"78725";"Reprises sur provisions - Amort. dérogatoires";"";"787";""
-"ACCN";"7";"COMPTES DE PRODUITS";"";"";""
-"ACCN";"791";"Transfert de charges d'exploitation";"";"79";""
-"ACCN";"79";"TRANSFERTS DE CHARGES";"";"7";""
-"ACCN";"796";"Transfert de charges financières";"";"79";""
-"ACCN";"80";"ENGAGEMENTS";"";"8";""
-"ACCN";"88";"RESULTAT EN INSTANCE D'AFFECTATION";"";"8";""
-"ACCN";"8";"COMPTES SPECIAUX";"";"";""
-"ACCN";"89";"BILAN";"";"8";""
-"ACCN";"6031";"Variation des stocks de matières premères (et fournitures)";;"603";""
-"ACCN";"6032";"Variation des stocks des autres approvisionnements";;"603";""
-"ACCN";"603";"Variation des stocks (approvisionnements et marchandises)";"";"60";""
-"ACCN";"4452";"TVA due intracommunautaire";"";"445";""
-"ACCN";"4455";"Taxes sur le chiffre d'affaires à décaisser";"";"445";""
-"ACCN";"44551";"TVA à décaisser";"";"4455";""
-"ACCN";"44562";"TVA sur immobilisations";"";"4456";""
-"ACCN";"445661";"TVA sur autres biens et services 19;6% débits";"";"44566";""
-"ACCN";"445662";"TVA sur autres biens et services 5;5% débits";"";"44566";""
-"ACCN";"445664";"TVA sur autres biens et services 19;6% encaissements";"";"44566";""
-"ACCN";"44566";"TVA sur autres biens et services";"";"4456";""
-"ACCN";"445665";"TVA sur autres biens et services 5;5% encaissements";"";"44566";""
-"ACCN";"4456";"Taxes sur le chiffre d'affaires déductible";"";"445";""
-"ACCN";"44567";"Crédit de TVA à reporter";"";"4456";""
-"ACCN";"4457";"Taxes sur le chiffre d'affaires collectées par l'entreprise";"";"445";""
-"ACCN";"445711";"TVA collectée 19;6 % débits";"";"44571";""
-"ACCN";"445712";"TVA collectée 5;5 % débits";"";"44571";""
-"ACCN";"445714";"TVA collectée 19;6 % encaissements";"";"44571";""
-"ACCN";"44571";"TVA collectée";"";"4457";""
-"ACCN";"445715";"TVA collectée 5;5 % encaissements";"";"44571";""
-"ACCN";"445";"Etat - Taxes sur le chiffre d'affaires";"";"44";""
-"ACCN";"44583";"Remboursement de taxes sur le chiffre d'affaires demandé";"";"4458";""
-"ACCN";"44584";"TVA récupérée d'avance";"";"4458";""
-"ACCN";"44586";"Taxes sur le chiffre d'affaires sur factures non parvenues";"";"4458";""
-"ACCN";"4458";"Taxes sur le chiffre d'affaires à régulariser ou en attente";"";"445";""
-"ACCN";"44587";"Taxes sur le chiffre d'affaires sur factures à établir";"";"4458";""
+accountNumber;label;thirdParty
+101;Capital;
+105;Ecarts de réévaluation;
+1061;Réserve légale;
+1063;Réserves statutaires ou contractuelles;
+1064;Réserves réglementées;
+106;Réserves;
+1068;Autres réserves;
+10;CAPITAL ET RESERVE;
+108;Compte de l'exploitant;
+110;Report à nouveau (solde créditeur);
+11;REPORT A NOUVEAU (solde créditeur ou débiteur);
+119;Report à nouveau (solde débiteur);
+120;Résultat de l'exercice (bénéfice);
+12;RESULTAT DE L'EXERCICE (bénéfice ou perte);
+129;Résultat de l'exercice (perte);
+145;Amortissements dérogatoires;
+146;Provision spéciale de réévaluation;
+147;Plus-values réinvesties;
+14;PROVISIONS REGLEMENTEES;
+148;Autres provisions réglementées;
+151;Provisions pour risques;
+155;Provisions pour impôts;
+15;PROVlSlONS POUR RISQUES ET CHARGES;
+158;Autres provisions pour charges;
+1;COMPTES DE CAPITAUX;
+163;Autres emprunts obligataires;
+164;Emprunts auprès des établissements de crédit;
+16;EMPRUNTS ET DETTES ASSIMILEES;
+168;Autres emprunts et dettes assimilées;
+201;Frais d'établissement;
+206;Droit au bail;
+207;Fonds commercial;
+20;IMMOBILISATIONS INCORPORELLES;
+208;Autres immobilisations incorporelles;
+211;Terrains;
+213;Constructions;
+215;"Installations techniques; matériel et outillage industriels";
+21;IMMOBlLlSATIONS CORPORELLES;
+218;Autres immobilisations corporelles;
+231;Immobilisations corporelles en cours;
+23;IMMOBILlSATlONS EN COURS;
+232;Immobilisations incorporelles en cours;
+274;Prêts;
+27;AUTRES IMMOBILISATIONS FINANCIERES;
+275;Dépôts et cautionnements versés;
+280;Amortissements des immobilisations incorporelles;
+28;AMORTISSEMENTS DES IMMOBILISATIONS;
+281;Amortissements des immobilisations corporelles;
+2;COMPTES D'IMMOBILISATIONS;
+290;Provisions pour dépréciation immobilisations incorporelles;
+291;Provisions pour dépréciation immobilisations corporelles;
+29;PROVISIONS POUR DEPRECIATION DES IMMOBILISATIONS;
+297;Provisions pour dépréciation des immobilisations financières;
+31;MATIERES PREMIERES (et fournitures);
+310;Stocks d'approvisionnement;
+321;Matières consommables;
+322;Fournitures consommables;
+32;AUTRES APPROVISIONNEMENTS;
+326;Emballages;
+351;Produits intermédiaires;
+355;Produits finis;
+35;STOCKS DE PRODUITS;
+358;Produits résiduels (ou matières de récupérations);
+37;STOCKS DE MARCHANDISES;
+370;Stocks de marchandises;
+3;COMPTES DE STOCKS ET D'EN-COURS;
+391;Provisions pour dépréciation des stocks d'approvisionnement;
+395;Provisions pour dépréciation des stocks de produits;
+39;PROVISIONS POUR DEPRECIATION DES STOCKS ET EN-COURS;
+397;Provisions pour dépréciation des stocks de marchandises;
+400;Fournisseurs et comptes rattachés;
+40;FOURNISSEURS ET COMPTES RATTACHES;
+409;Fournisseurs débiteurs;
+410;Clients et comptes rattachés;
+418;Clients - Produits non encore facturés;
+41;CLIENTS ET COMPTES RATTACHES;
+421;Personnel - Rémunérations dues;
+42;PERSONNEL ET COMPTES RATTACHES;
+428;Personnel - Charges à payer et produits à recevoir;
+43;SECURITE SOCIALE - AUTRES ORGANISMES SOCIAUX;
+444;Etat - Impôts sur les bénéfices;
+44;ETAT ET AUTRES COLLECTIVITES PUBLIQUES;
+447;"Autres impôts; taxes et versements assimilés";
+45;GROUPES ET ASSOCIES;
+455;Associés - Comptes courants;
+46;DEBITEURS ET CREDITEURS DIVERS;
+47;COMPTES TRANSITOIRES OU D'ATTENTE;
+470;Compte d'attente;
+481;Charges à repartir sur plusieurs exercices;
+486;Charges constatées d'avance;
+48;COMPTE DE REGULARISATION;
+487;Produits constatés d'avance;
+4;COMPTES DE TIERS;
+491;Provisions pour dépréciation des comptes de clients;
+49;PROVISIONS POUR DEPRECIATION DES COMPTES DE TIERS;
+496;Provisions pour dépréciation des comptes de débiteurs divers;
+503;Actions;
+50;VALEURS MOBILIERES DE PLACEMENT;
+506;Obligations;
+5111;Espèces;
+5112;Chèques;
+5113;Cartes bancaires;
+511;Valeurs à l'encaissement;
+5114;Autres paiements;
+5121;Banque principale;
+512;Banques;
+5122;Banque secondaire;
+514;Chèques postaux;
+517;Autres organismes financiers;
+51;"BANQUES; ETABLISSEMENTS FINANCIERS ET ASSIMILES";
+518;Intérêts courus;
+53;CAISSE;
+530;Caisse;
+54;REGIES D'AVANCES ET ACCREDITIFS;
+540;Régies d'avances et accréditifs;
+58;VIREMENTS INTERNES;
+580;Virements internes;
+5;COMPTES FINANCIERS;
+59;PROVISIONS POUR DEPRECIATION DES COMPTES FINANCIERS;
+590;Provisions pour dépréciation des valeurs mobilières de placement;
+601;Achats stockés - Matières premières (et fournitures);
+6022;Fournitures consommables;
+6026;Emballages;
+606;Achats non stockés de matières et fournitures;
+607;Achats de marchandises;
+608;Frais accessoires d'achat;
+60;ACHATS (sauf 603);
+609;"Rabais; remises et ristournes obtenus sur achats";
+611;Sous-traitance générale;
+612;Redevances de crédit-bail;
+613;Locations;
+614;Charges locatives et de copropriété;
+615;Entretien et réparations;
+61;SERVICES EXTERIEURS;
+616;Primes d'assurance;
+621;Personnel extérieur à l'entreprise;
+622;Rémunérations d'intermédiaires et honoraires;
+623;"Publicité; publications; relations publiques";
+624;Transports de biens et transports collectifs du personnel;
+625;"Déplacements; missions et réceptions";
+626;Frais postaux et frais de télécommunications;
+62;AUTRES SERVICES EXTERIEURS;
+627;Services bancaires et assimiles;
+633;"Impôts; taxes et versements sur rémunérations (autres org.)";
+635;"Autres impôts; taxes et versements (administration)";
+63;"IMPOTS; TAXES ET VERSEMENTS";
+6371;Contribution sociale de solidarité à la charge des sociétés;
+6411;Salaires;
+6412;Congés payes;
+6413;Primes et gratifications;
+641;Rémunérations du personnel;
+6414;Indemnités et avantages divers;
+644;Rémunération du travail de l'exploitant;
+6451;Cotisations à l'URSSAF;
+6452;Cotisations aux mutuelles;
+6453;Cotisations aux caisses de retraites;
+645;Charges de sécurité sociale et de prévoyance;
+6454;Cotisations aux ASSEDIC;
+64;CHARGES DE PERSONNEL;
+646;Cotisations sociales personnelles de l'exploitant;
+651;"Redevances pour concessions; brevets; licences; etc.";
+654;Pertes sur créances irrécouvrables;
+655;Quote-part de résultat sur opérations faites en commun;
+65;AUTRES CHARGES DE GESTION COURANTE;
+658;Autres charges de gestion courante;
+661;Charges d'intérêt;
+665;Escomptes accordés;
+66;CHARGES FINANCIERES;
+6688;Pertes de change ou de conversion;
+670;Charges exceptionnelles;
+67;CHARGES EXCEPTIONNELLES;
+675;Valeurs comptables des éléments d'actif cédés;
+68111;Dotations aux amort. immobilisations incorporelles;
+68112;Dotations aux amort. immobilisations corporelles;
+68161;Dotations provisions dépréc. immos incorporelles;
+681;Dotations aux amortissements - Charges d'exploitation;
+68162;Dotations provisions dépréc. immos corporelles;
+686;Dotations aux amort. et provisions - Charges financières;
+68;DOTATIONS AUX AMORTISSEMENTS ET AUX PROVISIONS;
+687;Dotations aux amort. et provisions - Charges exceptionnelles;
+68725;Dotations provisions réglementées - Amort. dérogatoires;
+6;COMPTES DE CHARGES;
+691;Participation des salaries aux résultats de lentreprise;
+695;Impôts sur les bénéfices;
+697;Imposition forfaitaire annuelle des sociétés;
+69;PARTICIPATION DES SALARIES - IMPOTS SUR LES BENEFICES;
+701;Ventes de produits finis;
+706;Travaux et prestations de services;
+707;Ventes de marchandises;
+708;Produits des activités annexes;
+70;"VENTES DE PRODUITS; PRESTATIONS DE SERVICES; MARCHANDISES";
+709;"Rabais; remises et ristournes accordées par l'entreprise";
+71;PRODUCTION STOCKEE (ou déstockage);
+7133;Variation des en-cours de production de biens;
+7134;Variation des en-cours de production de services;
+713;"VARIATION DES STOCKS (en-cours de production; produits)";
+7135;Variation des stocks de produits;
+721;Immobilisations incorporelles;
+72;PRODUCTION IMMOBILISEE;
+722;Immobilisations corporelles;
+74;SUBVENTlONS D'EXPLOITATION;
+740;Subventions d'exploitation;
+75;AUTRES PRODUITS DE GESTION COURANTE;
+758;Produits divers de gestion courante;
+76;PRODUITS FINANCIERS;
+765;Escomptes obtenus;
+770;Produits exceptionnels;
+77;PRODUITS EXCEPTIONNELS;
+775;Produits des cessions d'éléments d'actif;
+78161;Reprises prov. dépréc. immos incorporelles;
+781;Reprises sur amortissements et provisions;
+78162;Reprises prov. dépréc. immos corporelles;
+786;Reprises sur provisions pour risques;
+78;REPRISES SUR AMORTISSEMENTS ET PROVISIONS;
+787;Reprises sur provisions;
+78725;Reprises sur provisions - Amort. dérogatoires;
+7;COMPTES DE PRODUITS;
+791;Transfert de charges d'exploitation;
+79;TRANSFERTS DE CHARGES;
+796;Transfert de charges financières;
+80;ENGAGEMENTS;
+88;RESULTAT EN INSTANCE D'AFFECTATION;
+8;COMPTES SPECIAUX;
+89;BILAN;
+6031;Variation des stocks de matières premères (et fournitures);
+6032;Variation des stocks des autres approvisionnements;
+603;Variation des stocks (approvisionnements et marchandises);
+4452;TVA due intracommunautaire;
+4455;Taxes sur le chiffre d'affaires à décaisser;
+44551;TVA à décaisser;
+44562;TVA sur immobilisations;
+445661;"TVA sur autres biens et services 19;6% débits";
+445662;"TVA sur autres biens et services 5;5% débits";
+445664;"TVA sur autres biens et services 19;6% encaissements";
+44566;TVA sur autres biens et services;
+445665;"TVA sur autres biens et services 5;5% encaissements";
+4456;Taxes sur le chiffre d'affaires déductible;
+44567;Crédit de TVA à reporter;
+4457;Taxes sur le chiffre d'affaires collectées par l'entreprise;
+445711;"TVA collectée 19;6 % débits";
+445712;"TVA collectée 5;5 % débits";
+445714;"TVA collectée 19;6 % encaissements";
+44571;TVA collectée;
+445715;"TVA collectée 5;5 % encaissements";
+445;Etat - Taxes sur le chiffre d'affaires;
+44583;Remboursement de taxes sur le chiffre d'affaires demandé;
+44584;TVA récupérée d'avance;
+44586;Taxes sur le chiffre d'affaires sur factures non parvenues;
+4458;Taxes sur le chiffre d'affaires à régulariser ou en attente;
+44587;Taxes sur le chiffre d'affaires sur factures à établir;
\ No newline at end of file
1
0
r3876 - in trunk: lima-business/src/main/java/org/chorem/lima/business/ejb lima-business/src/main/java/org/chorem/lima/business/ejb/csv lima-business/src/test/java/org/chorem/lima/business lima-business/src/test/resources/import lima-business-api/src/main/java/org/chorem/lima/business/api lima-swing/src/main/resources/import
by dcosse@users.chorem.org 30 Jul '14
by dcosse@users.chorem.org 30 Jul '14
30 Jul '14
Author: dcosse
Date: 2014-07-30 23:28:07 +0200 (Wed, 30 Jul 2014)
New Revision: 3876
Url: http://forge.chorem.org/projects/lima/repository/revisions/3876
Log:
refs #1032 import export des financial statements.
Added:
trunk/lima-business/src/test/resources/import/bcr_developed.csv
Modified:
trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewExportServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java
trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java
trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java
trunk/lima-swing/src/main/resources/import/bcr_base.csv
trunk/lima-swing/src/main/resources/import/bcr_developed.csv
trunk/lima-swing/src/main/resources/import/bcr_shortened.csv
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java 2014-07-30 15:38:53 UTC (rev 3875)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialStatementServiceImpl.java 2014-07-30 21:28:07 UTC (rev 3876)
@@ -48,6 +48,8 @@
import org.chorem.lima.entity.AccountTopiaDao;
import org.chorem.lima.entity.FinancialStatement;
import org.chorem.lima.entity.FinancialStatementTopiaDao;
+import org.nuiton.util.beans.Binder;
+import org.nuiton.util.beans.BinderFactory;
import javax.ejb.EJB;
import javax.ejb.Remote;
@@ -58,8 +60,8 @@
import java.util.Collection;
import java.util.Date;
import java.util.List;
+import java.util.Map;
import java.util.StringTokenizer;
-import java.util.Map;
@Stateless
@Remote(FinancialStatementService.class)
@@ -81,39 +83,72 @@
}
};
- @Override
- public void createFinancialStatement(FinancialStatement masterFinancialStatement,
- FinancialStatement financialStatement) throws AlreadyExistFinancialTransaction {
-
- FinancialStatementTopiaDao financialStatementTopiaDao = getDaoHelper().getFinancialStatementDao();
-
- FinancialStatement masterfinancialStatementUpdate = null;
+ protected void validateNewFinancialStatement(FinancialStatement masterFinancialStatement, FinancialStatement financialStatement) throws AlreadyExistFinancialTransaction {
if (masterFinancialStatement != null) {
- // TODO DCossé 29/07/14 fix it Label is not unique !
- masterfinancialStatementUpdate = financialStatementTopiaDao.forLabelEquals(masterFinancialStatement.getLabel()).findAnyOrNull();
-
- // valid that there are no duplicated financial statement.
- Collection<FinancialStatement> subFinancialStatements = masterfinancialStatementUpdate.getSubFinancialStatements();
- if (subFinancialStatements == null) {
- subFinancialStatements = Lists.newArrayList();
+ Collection<FinancialStatement> masterSubFinancialStatements = masterFinancialStatement.getSubFinancialStatements();
+ if (masterSubFinancialStatements == null) {
+ masterSubFinancialStatements = Lists.newArrayList();
}
- Map indexedSubFinancialStatements = Maps.uniqueIndex(subFinancialStatements, GET_LABEL);
+ Map indexedSubFinancialStatements = Maps.uniqueIndex(masterSubFinancialStatements, GET_LABEL);
if (indexedSubFinancialStatements.get(financialStatement.getLabel()) != null){
- throw new AlreadyExistFinancialTransaction(financialStatement.getLabel(), masterfinancialStatementUpdate.getLabel());
+ throw new AlreadyExistFinancialTransaction(financialStatement.getLabel(), masterFinancialStatement.getLabel());
}
}
+ }
- FinancialStatement result = financialStatementTopiaDao.create(financialStatement);
+ protected void addFinancialStatementToMaster(FinancialStatement masterFinancialStatement,
+ FinancialStatement financialStatement) {
+ if (masterFinancialStatement != null) {
+ FinancialStatementTopiaDao financialStatementTopiaDao = getDaoHelper().getFinancialStatementDao();
- // check if parent account exist;
- if (masterfinancialStatementUpdate != null) {
- masterfinancialStatementUpdate.addSubFinancialStatements(result);
- financialStatementTopiaDao.update(masterfinancialStatementUpdate);
+ masterFinancialStatement.addSubFinancialStatements(financialStatement);
+
+ if (masterFinancialStatement.isPersisted()) {
+ // update the persisted entity to avoid NonUniqueObjectException: A different object with the same identifier value was already associated with the session
+ FinancialStatement financialStatementToUpdate = financialStatementTopiaDao.forTopiaIdEquals(masterFinancialStatement.getTopiaId()).findUnique();
+ Binder<FinancialStatement, FinancialStatement> binder = BinderFactory.newBinder(FinancialStatement.class, FinancialStatement.class);
+ binder.copy(masterFinancialStatement, financialStatementToUpdate);
+ financialStatementTopiaDao.update(financialStatementToUpdate);
+ } else {
+ financialStatementTopiaDao.create(masterFinancialStatement);
+ }
}
+ }
+ @Override
+ public FinancialStatement newFinancialStatement() {
+ FinancialStatementTopiaDao financialStatementTopiaDao = getDaoHelper().getFinancialStatementDao();
+ FinancialStatement result = financialStatementTopiaDao.newInstance();
+ return result;
}
@Override
+ public void createMasterFinacialStatements(FinancialStatement masterFinancialStatements) {
+ FinancialStatementTopiaDao financialStatementTopiaDao = getDaoHelper().getFinancialStatementDao();
+ financialStatementTopiaDao.create(masterFinancialStatements);
+ }
+
+ @Override
+ public FinancialStatement createFinancialStatement(FinancialStatement masterFinancialStatement,
+ FinancialStatement financialStatement) throws AlreadyExistFinancialTransaction {
+
+ validateNewFinancialStatement(masterFinancialStatement, financialStatement);
+
+ FinancialStatementTopiaDao financialStatementTopiaDao = getDaoHelper().getFinancialStatementDao();
+
+ FinancialStatement result;
+ if (!financialStatement.isPersisted()) {
+ result = financialStatementTopiaDao.create(financialStatement);
+ } else {
+ result = financialStatement;
+ }
+
+ addFinancialStatementToMaster(masterFinancialStatement, result);
+
+ return result;
+ }
+
+ @Override
public void removeFinancialStatement(FinancialStatement financialStatement) {
FinancialStatementTopiaDao financialStatementTopiaDao = getDaoHelper().getFinancialStatementDao();
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewExportServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewExportServiceImpl.java 2014-07-30 15:38:53 UTC (rev 3875)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewExportServiceImpl.java 2014-07-30 21:28:07 UTC (rev 3876)
@@ -257,7 +257,7 @@
List<FinancialStatement> rootFinancialStatements = financialStatementService.getRootFinancialStatements();
if (rootFinancialStatements != null) {
FinancialStatementModel model = new FinancialStatementModel();
- List<FinancialStatement> financialStatements = new ArrayList<FinancialStatement>();
+ List<FinancialStatement> financialStatements = new ArrayList<>();
getAllSubFinancialStatements(financialStatements, rootFinancialStatements);
Export.exportToFile(model, financialStatements, fileResult, Charset.forName(charset));
FileInputStream inputStream = new FileInputStream(fileResult);
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java 2014-07-30 15:38:53 UTC (rev 3875)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/NewImportServiceImpl.java 2014-07-30 21:28:07 UTC (rev 3876)
@@ -22,6 +22,7 @@
* #L%
*/
+import com.google.common.base.Predicate;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.chorem.lima.beans.FinancialStatementImport;
@@ -50,7 +51,6 @@
import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.entity.FinancialStatement;
-import org.chorem.lima.entity.FinancialStatementImpl;
import org.chorem.lima.entity.FinancialTransaction;
import org.chorem.lima.entity.FiscalPeriod;
import org.nuiton.csv.Import;
@@ -64,8 +64,10 @@
import javax.ejb.TransactionAttribute;
import java.io.InputStream;
import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
import java.util.List;
-
+import java.util.Map;
/**
* Created by davidcosse on 03/06/14.
*/
@@ -92,6 +94,14 @@
@EJB
protected FinancialStatementService financialStatementService;
+ protected static final Predicate<FinancialStatement> IS_ROOT_FINANCIAL_STATEMENT = new Predicate<FinancialStatement>() {
+
+ @Override
+ public boolean apply(FinancialStatement financialStatement) {
+ return financialStatement.getMasterFinancialStatement()==null;
+ }
+ };
+
@Override
public ImportResult importAccountAsCSV(String contents) {
InputStream contentStream = IOUtils.toInputStream(contents);
@@ -218,6 +228,44 @@
return result;
}
+ protected FinancialStatement returnFinancialStatement (FinancialStatement rootFinancialStatement, String subFinancialStatementLabel) throws AlreadyExistFinancialTransaction {
+ Collection<FinancialStatement> subFinancialStatements = rootFinancialStatement.getSubFinancialStatements();
+ FinancialStatement targetedFinancialStatement = null;
+
+ // look for financial statement from tree range
+ if (subFinancialStatements != null) {
+ for (FinancialStatement subFinancialStatement : subFinancialStatements) {
+ if(subFinancialStatement.getLabel().equals(subFinancialStatementLabel)){
+ targetedFinancialStatement = subFinancialStatement;
+ break;
+ }
+ }
+ }
+
+ //
+ if (targetedFinancialStatement == null) {
+ // not found, we need to create it
+ targetedFinancialStatement = financialStatementService.newFinancialStatement();
+ targetedFinancialStatement.setLabel(subFinancialStatementLabel);
+ // create targetedFinancialStatement and rootFinancialStatement if needed
+ targetedFinancialStatement = financialStatementService.createFinancialStatement(rootFinancialStatement, targetedFinancialStatement);
+ targetedFinancialStatement.getMasterFinancialStatement();
+ }
+ return targetedFinancialStatement;
+ }
+
+ protected FinancialStatement returnRootFinancialStatement(FinancialStatement financialStatement) {
+ FinancialStatement rootFinancialStatement = null;
+ while (rootFinancialStatement == null) {
+ if (financialStatement.getMasterFinancialStatement() == null){
+ rootFinancialStatement = financialStatement;
+ } else {
+ financialStatement = financialStatement.getMasterFinancialStatement();
+ }
+ }
+ return rootFinancialStatement;
+ }
+
@Override
public ImportResult importFinancialStatementsAsCSV(String contents) {
ImportResult result = new ImportResult();
@@ -229,35 +277,67 @@
Import<FinancialStatementImport> financialStatementImports = Import.newImport(model, contentStream);
- List<FinancialStatement> allFinancialStatements = new ArrayList<>();
+ // path, FinancialStatement
+ Map<String, FinancialStatement> orderedFinancialStatements = new HashMap<>();
+
+ List<FinancialStatement> rootFinancialStatements = financialStatementService.getRootFinancialStatements();
+ for (FinancialStatement rootFinancialStatement : rootFinancialStatements) {
+ orderedFinancialStatements.put(rootFinancialStatement.getLabel(), rootFinancialStatement);
+ }
+
int lineIndex = 0;
for (FinancialStatementImport financialStatementBean : financialStatementImports) {
- try {
- Binder<FinancialStatementImport, FinancialStatement> binder = BinderFactory.newBinder(FinancialStatementImport.class, FinancialStatement.class);
- FinancialStatement financialStatement = new FinancialStatementImpl();
- binder.copyExcluding(financialStatementBean, financialStatement, FinancialStatement.PROPERTY_MASTER_FINANCIAL_STATEMENT);
+ Binder<FinancialStatementImport, FinancialStatement> binder = BinderFactory.newBinder(FinancialStatementImport.class, FinancialStatement.class);
+ FinancialStatement financialStatement = financialStatementService.newFinancialStatement();
+ binder.copyExcluding(financialStatementBean, financialStatement, FinancialStatement.PROPERTY_MASTER_FINANCIAL_STATEMENT);
- FinancialStatement masterFinancialStatement = null;
+ try{
+ // full path to master
+ String masterPath = financialStatementBean.getMasterFinancialStatement();
- if (StringUtils.isNotBlank(financialStatementBean.getMasterFinancialStatement())) {
- // look for master financial statement
- // the last financialStatement is the current one.
- int index = allFinancialStatements.size() - 1;
- while (index >= 0) {
- FinancialStatement mfs = allFinancialStatements.get(index);
- if (StringUtils.isNotBlank(mfs.getLabel()) && mfs.getLabel().equals(financialStatementBean.getMasterFinancialStatement())) {
- masterFinancialStatement = mfs;
- masterFinancialStatement.addSubFinancialStatements(financialStatement);
- break;
- }
- index --;
+ if (StringUtils.isBlank(masterPath)) {
+ // case of financialStatement is root
+ // look if root exists
+ // It can not have several FinancialStatement with the same from same path
+ FinancialStatement rootFinancialStatement = orderedFinancialStatements.get(financialStatementBean.getLabel());
+
+ if (rootFinancialStatement == null) {
+ rootFinancialStatement = financialStatement;
+ rootFinancialStatement = financialStatementService.createFinancialStatement(null, rootFinancialStatement);
}
+ orderedFinancialStatements.put(rootFinancialStatement.getLabel(), rootFinancialStatement);
+ } else {
+ String[] masterNames = masterPath.split("/");
+ String rootMasterName = masterNames[0];
+
+ FinancialStatement rootFinancialStatement = orderedFinancialStatements.get(rootMasterName);
+
+ if (rootFinancialStatement == null) {
+ rootFinancialStatement = financialStatementService.newFinancialStatement();
+ rootFinancialStatement.setLabel(rootMasterName);
+ rootFinancialStatement = financialStatementService.createFinancialStatement(null, rootFinancialStatement);
+ orderedFinancialStatements.put(rootMasterName, rootFinancialStatement);
+ }
+
+ // 0 is root
+ // explore branches
+ FinancialStatement branchesFinancialStatement = rootFinancialStatement;
+ for (int i = 1; i < masterNames.length; i++) {
+ String masterName = masterNames[i];
+ branchesFinancialStatement = returnFinancialStatement(branchesFinancialStatement, masterName);
+ }
+
+ // if the master finacial statement has been modified then the current one is replace by the new one.
+ financialStatement = financialStatementService.createFinancialStatement(branchesFinancialStatement, financialStatement);
+ FinancialStatement targetedRootFinancialStatement = returnRootFinancialStatement(financialStatement);
+
+ // replace modified root financial statement with new one
+ if (orderedFinancialStatements.get(targetedRootFinancialStatement.getLabel()) != null) {
+ orderedFinancialStatements.put(targetedRootFinancialStatement.getLabel(), targetedRootFinancialStatement);
+ }
}
- allFinancialStatements.add(financialStatement);
-
- financialStatementService.createFinancialStatement(masterFinancialStatement, financialStatement);
+ result.increaseCreated();
lineIndex++;
- result.increaseCreated();
} catch (AlreadyExistFinancialTransaction e) {
result.getException().addException(lineIndex, e);
}
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java 2014-07-30 15:38:53 UTC (rev 3875)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/csv/AbstractLimaModel.java 2014-07-30 21:28:07 UTC (rev 3876)
@@ -382,8 +382,13 @@
@Override
public String format(FinancialStatement value) {
- String result = value == null ? "" : value.getLabel();
+ String result = value == null ? "" : getFullPath(value);
return result;
}
};
+
+ protected static final String getFullPath(FinancialStatement value) {
+ String result = value.getMasterFinancialStatement() != null ? getFullPath(value.getMasterFinancialStatement()) + "/" + value.getLabel() : value.getLabel();
+ return result;
+ }
}
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java 2014-07-30 15:38:53 UTC (rev 3875)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/AbstractLimaTest.java 2014-07-30 21:28:07 UTC (rev 3876)
@@ -32,6 +32,7 @@
import org.chorem.lima.business.api.EntryBookService;
import org.chorem.lima.business.api.EntryService;
import org.chorem.lima.business.api.FinancialPeriodService;
+import org.chorem.lima.business.api.FinancialStatementService;
import org.chorem.lima.business.api.FinancialTransactionService;
import org.chorem.lima.business.api.FiscalPeriodService;
import org.chorem.lima.business.api.ImportService;
@@ -97,6 +98,7 @@
protected EntryService entryService;
protected NewImportService newImportService;
protected NewExportService newExportService;
+ protected FinancialStatementService financialStatementService;
protected LimaCallaoTopiaApplicationContext context;
@@ -134,6 +136,7 @@
reportService = LimaServiceFactory.getService(ReportService.class);
importService = LimaServiceFactory.getService(ImportService.class);
entryService = LimaServiceFactory.getService(EntryService.class);
+ financialStatementService = LimaServiceFactory.getService(FinancialStatementService.class);
newImportService = LimaServiceFactory.getService(NewImportService.class);
newExportService = LimaServiceFactory.getService(NewExportService.class);
Modified: trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java
===================================================================
--- trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java 2014-07-30 15:38:53 UTC (rev 3875)
+++ trunk/lima-business/src/test/java/org/chorem/lima/business/NewImportExportServiceTest.java 2014-07-30 21:28:07 UTC (rev 3876)
@@ -304,7 +304,8 @@
result = newImportService.importFinancialStatementsAsCSV(bcr_developed);
+ Assert.assertTrue(result.getException().getAllExceptionsByLine().isEmpty());
Assert.assertEquals(162, result.getNbCreated());
- Assert.assertTrue(result.getException().getAllExceptionsByLine().isEmpty());
+ Assert.assertEquals(162, financialStatementService.getAllFinancialStatements().size());
}
}
Added: trunk/lima-business/src/test/resources/import/bcr_developed.csv
===================================================================
--- trunk/lima-business/src/test/resources/import/bcr_developed.csv (rev 0)
+++ trunk/lima-business/src/test/resources/import/bcr_developed.csv 2014-07-30 21:28:07 UTC (rev 3876)
@@ -0,0 +1,163 @@
+label;header;accounts;debitAccounts;creditAccounts;provisionDeprecationAccounts;subAmount;headerAmount;masterFinancialStatement;financialStatementWay
+BILAN ACTIF;O;;;;;O;N;;BOTH
+Capital Souscrit non appelé;N;109; ; ; ;N;N;BILAN ACTIF;
+ACTIF IMMOBILISÉ;O; ; ; ; ;O;N;BILAN ACTIF;BOTH
+Immobilisations incorporelles;O;;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ;BOTH
+Frais d'établissement;N;201;;;2801;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Frais de recherche et développement;N;203;;;2803;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+"Concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires";N;205;;;"2805, 2905";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Fonds commercial;N;"206, 207";;;"2807, 2906, 2907";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Autres;N;208;;;"2808, 2908";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Immobilisations incorporelles en cours;N;232;;;2932;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Avances et acomptes;N;237;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Immobilisations financières;O;;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ;BOTH
+Participations;N;"261, 266";;;"2961, 2966";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Créances rattachées à des participations;N;"267, 268";;;"2967, 2968";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Titres immobilisés de l'activité de portefeuille;N;273;;;2973;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Autres titres immobilisés;N;"271, 272, 27682";;;"2971, 2972";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Prêts;N;"274, 27684";;;2974;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Autres;N;"275, 2761, 27685, 27688";;;"2975, 2976";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Immobilisations corporelles;O;;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ;BOTH
+Terrains;N;"211, 212";;;"2811, 2812, 2911";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+Constructions;N;"213, 214";;;"2813, 2814";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+"Installations techniques, matériels, et outillage industriels";N;215;;;2815;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+Immobilisations corporelles en cours;N;231;;;2931;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+Autres;N;218;;;2818;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+Avances et acomptes;N;238;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+ACTIF CIRCULANT;O;;;;;O;N;BILAN ACTIF;BOTH
+Stocks et en-cours;O;;;;;N;O;BILAN ACTIF/ACTIF CIRCULANT;BOTH
+Marchandises;N;37;;;397;N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+Matières premières et autres approvisionnements;N;"31, 32";;;"391, 392";N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+En cours de production (biens et services);N;"33, 34";;;"393, 394";N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+Produits intermédiaires et finis;N;35;;;395;N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+Avances et acomptes versés sur commandes;N;4091;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;
+Disponibilités;N;"53, 54 -5181 -519";51;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;
+Charges constatées d'avance;N;486;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;
+Valeurs mobilières de placement;O;;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;BOTH
+Actions propres;N;502;;;59;N;N;BILAN ACTIF/ACTIF CIRCULANT/Valeurs mobilières de placement;
+Autres titres;N;50 -502 -509;;;59;N;N;BILAN ACTIF/ACTIF CIRCULANT/Valeurs mobilières de placement;
+Instrument de trésorerie;N;;52;;;N;N;BILAN ACTIF/ACTIF CIRCULANT/Valeurs mobilières de placement;
+Créances;O;;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;BOTH
+Créances diverses;N;"4411, 4418, 462, 465, 4687";"443, 444, 451, 456, 458, 467 -4562";;;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances;
+"Capital souscrit et appelé, non versé";N;4562;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances;
+Créance d'exploitation;O;;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances;BOTH
+Créances clients et Comptes rattachés;N;"410, 411, 413, 416, 418";;;491;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances/Créance d'exploitation;
+Autres;N;"4096, 4097, 4098, 425, 4287, 4387, 4417, 4452, 4456, 4487";4458;;"495, 496";N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances/Créance d'exploitation;
+Charges à répartir sur plusieurs exercices;N;481;;;;N;N;BILAN ACTIF;
+Primes de remboursement des emprunts;N;169;;;;N;N;BILAN ACTIF;
+Ecarts de conversion Actif;N;476;;;;N;N;BILAN ACTIF;
+BILAN PASSIF;O;;;;;O;N;;BOTH
+CAPITAUX PROPRES;O;;;;;O;N;BILAN PASSIF;CREDIT
+Capital (dont versé?);N;"101, 108";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+"Primes d'émission, de fusion, d'apport";N;104;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Ecart de réévaluation;N;105;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Ecart d'équivalence;N;107;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Report à nouveau;N;"110,119";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+RÉSULTAT DE L'EXERCICE (BÉNÉFICE OU PERTE);N;"7,6";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Subventions d'investissement;N;13;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Provisions réglementées;N;14;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Réserves;O;;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;BOTH
+Réserve légale;N;1061;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
+Réserves statutaires ou contractuelles;N;1063;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
+Réserves réglementées;N;"1062, 1064";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
+Autres;N;1068;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
+PROVISIONS POUR RISQUES ET CHARGES;O;;;;;O;N;BILAN PASSIF;BOTH
+Provisions pour risques;N;151;;;;N;N;BILAN PASSIF/PROVISIONS POUR RISQUES ET CHARGES;
+Provisions pour charges;N;15 -151;;;;N;N;BILAN PASSIF/PROVISIONS POUR RISQUES ET CHARGES;
+Ecarts de conversion passif;N;477;;;;N;N;BILAN PASSIF;
+DETTES;O;;;;;O;N;BILAN PASSIF;BOTH
+Emprunts obligataires convertibles;N;"161, 16881";;;;N;N;BILAN PASSIF/DETTES;
+Autres emprunts obligataires;N;"163, 16683";;;;N;N;BILAN PASSIF/DETTES;
+Emprunts et dettes auprès établissements de crédits;N;"164, 16684, 5181, 519";;"512, 514, 517";;N;N;BILAN PASSIF/DETTES;
+Emprunts et dettes financières diverses;N;"165, 166, 1675, 168, 16883, 17, 426 -16881 -457";;45;;N;N;BILAN PASSIF/DETTES;
+Avances et acomptes reçues sur commandes en cours;N;4191;;;;N;N;BILAN PASSIF/DETTES;
+Produits constatés d'avance;N;487;;;;N;N;BILAN PASSIF/DETTES;
+Dettes d'exploitation;O;;;;;N;N;BILAN PASSIF/DETTES;BOTH
+Dettes fournisseurs et comptes rattachés;N;"400, 401, 403, 4081, 4088";;;;N;N;BILAN PASSIF/DETTES/Dettes d'exploitation;
+Dettes fiscales et sociales;N;"421, 422, 424, 427, 4282, 4286, 431, 437, 4386, 4455, 4457, 446, 447, 4486";;4458;;N;N;BILAN PASSIF/DETTES/Dettes d'exploitation;
+Autres;N;"4196, 4197, 4198, 4419";;;;N;N;BILAN PASSIF/DETTES/Dettes d'exploitation;
+Dettes diverses;O;;;;;N;N;BILAN PASSIF/DETTES;BOTH
+Dettes sur immobilisations et Comptes rattachés;N;"269, 279, 404, 405, 4084";;;;N;N;BILAN PASSIF/DETTES/Dettes diverses;
+Dettes fiscales (impôts sur les bénéfices);N;;;444;;N;N;BILAN PASSIF/DETTES/Dettes diverses;
+Autres;N;"424, 426, 4284, 4419, 442, 4486, 457, 464, 467, 4686, 509";;"443, 451, 455, 456, 458";;N;N;BILAN PASSIF/DETTES/Dettes diverses;
+AUTRES FONDS PROPRES;O;;;;;O;N;BILAN PASSIF;BOTH
+Produits des émissions de titres participatifs;N;1671;;;;N;N;BILAN PASSIF/AUTRES FONDS PROPRES;
+Avances conditionnées;N;1674;;;;N;N;BILAN PASSIF/AUTRES FONDS PROPRES;
+Autres;N;;;;;N;N;BILAN PASSIF/AUTRES FONDS PROPRES;
+COMPTE DE RESULTAT;O;;;;;N;N;;BOTH
+CHARGES;O; ; ; ; ;O;N;COMPTE DE RESULTAT;DEBIT
+Quotes-parts de résultat sur opérations faites en commun;N;655;;;;N;N;COMPTE DE RESULTAT/CHARGES;
+Charges financières;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES;DEBIT
+Dotations aux amortissements et provisions;N;686;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges financières;
+Intérêts et charges assimilées;N;"661, 664, 665, 668";;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges financières;
+Différences négatives de change;N;666;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges financières;
+Charges nettes sur cessions de valeurs mobilières de placement;N;667;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges financières;
+Participation des salariés aux résultats;N;691;;;;N;N;COMPTE DE RESULTAT/CHARGES;
+Impôts sur les bénéfices;N;"695, 697, 689, 698, 699, 789";;;;N;N;COMPTE DE RESULTAT/CHARGES;
+CHARGES D'EXPLOITATION;O;;;;;O;N;COMPTE DE RESULTAT/CHARGES;DEBIT
+Coût d'achat des marchandises;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+Variations de stocks de march.;N;6037;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achat des marchandises;
+Achat de marchandises;N;"607, 6087, 6097";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achat des marchandises;
+Salaires et traitements;N;"641, 644, 648";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;
+Charges sociales;N;"645, 646, 647";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;
+Autres charges;N;65 -655;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;
+Dotations aux amortis. & provisions;O; ; ; ; ;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+Sur immobilisations : dotations aux amortissements;N;"6811, 6812";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Dotations aux amortis. & provisions;
+Sur immobilisations : dotations aux provisions;N;6816;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Dotations aux amortis. & provisions;
+Sur actif circulant : dotations aux provisions;N;6817;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Dotations aux amortis. & provisions;
+Pour risques et charges : dotations aux provisions;N;6815;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Dotations aux amortis. & provisions;
+Coût d'achats de matières premières et autres approvisionnements;O;;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+Achats de matières premières et autres approvisionnements;N;"601, 6081, 6091";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achats de matières premières et autres approvisionnements;
+Variation des stock;N;"6031, 6032";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achats de matières premières et autres approvisionnements;
+Autres approvisionnements;N;"602, 6082, 6092";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achats de matières premières et autres approvisionnements;
+Autres charges et charges externes;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+Achats de sous-traitance;N;"604, 6084, 6094, 6095";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes;
+Achats non stockés de matières et fournitures;N;"605, 606, 6085, 6086, 6096";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes;
+Services extérieurs;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes;DEBIT
+Personnel extérieur;N;621;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes/Services extérieurs;
+Loyers en crédit-bail mobilier;N;6122;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes/Services extérieurs;
+Loyers en crédit-bail immobilier;N;;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes/Services extérieurs;
+Autres;N;"61, 62 -6122 -6125 -621";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes/Services extérieurs;
+"Impôts, taxes et versements assimilés";O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+sur rémunérations;N;"631, 633";;;;N;N;"COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Impôts, taxes et versements assimilés";
+autres;N;"635, 637";;;;N;N;"COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Impôts, taxes et versements assimilés";
+Charges exceptionnelles;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES;DEBIT
+Sur opérations de gestion;N;671;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles;
+Dotations aux amortissements et aux provisions;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles;DEBIT
+Dotations aux provisions réglementées;N;"6872, 6873, 6874";;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles/Dotations aux amortissements et aux provisions;
+dotations aux amortissements et aux provisions;N;"6871, 6875, 6876";;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles/Dotations aux amortissements et aux provisions;
+sur opération en capital;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles;DEBIT
+valeurs comptables des éléments immobiliers et financiers cédés;N;675;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles/sur opération en capital;
+autres;N;678;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles/sur opération en capital;
+PRODUITS;O;;;;;O;N;COMPTE DE RESULTAT;CREDIT
+Produits d'exploitation;O;;;;;O;N;COMPTE DE RESULTAT/PRODUITS;CREDIT
+Production vendue;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation;CREDIT
+Ventes;N;"701, 702, 703, 707, 708, 7091, 7092, 7097, 7098";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Production vendue;
+Travaux;N;"704, 708, 7094, 7098";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Production vendue;
+Prestation de services;N;"705, 706, 708, 7095, 7096, 7098";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Production vendue;
+Autres produits d'exploitation;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation;CREDIT
+Production stockée;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;CREDIT
+En-cours de production de biens;N;7133;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production stockée;
+En-cours de production de services;N;7134;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production stockée;
+Produits;N;7135;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production stockée;
+"Reprises sur provisions (et amortissements), transferts de charges";O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;CREDIT
+Reprises sur provisions (et amortissements);N;781;;;;N;N;"COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Reprises sur provisions (et amortissements), transferts de charges";
+Transferts de charges;N;791;;;;N;N;"COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Reprises sur provisions (et amortissements), transferts de charges";
+Production exceptionnels sur opérations en capital;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;CREDIT
+Produits des cessions d'éléments d'actif;N;775;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production exceptionnels sur opérations en capital;
+Subvention d'investissement virées au résultat de l'exercice;N;778;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production exceptionnels sur opérations en capital;
+Production immobilisée;N;"72, 73";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;
+Subventions d'exploitation;N;74;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;
+Autres;N;75 - 755;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;
+Quote-parts de résultat sur opérations faites en commun;N;755;;;;N;N;COMPTE DE RESULTAT/PRODUITS;
+Produits financiers;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS;CREDIT
+De participations;N;761;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+D'autres valeurs mobilières et créances de l'actif immobilisé;N;762;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Autres intérêts et produits assimilés;N;"763, 764, 765, 768";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Reprises sur provisions et transfers de charges;N;"786, 796";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Différences positives de change;N;766;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Produits nets sur cessions de valeurs mobilières de placement;N;767;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Produits exceptionnels;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS;CREDIT
+Reprises sur provisions et transferts de charges;N;"787, 797";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits exceptionnels;
+Sur opérations en capital;N;"775, 777, 778";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits exceptionnels;
+Sur opérations de gestion;N;771;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits exceptionnels;
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java 2014-07-30 15:38:53 UTC (rev 3875)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialStatementService.java 2014-07-30 21:28:07 UTC (rev 3876)
@@ -36,8 +36,15 @@
public interface FinancialStatementService {
+ /**
+ * Create a new FinancialStatement not persisted yet
+ * @return
+ */
+ FinancialStatement newFinancialStatement();
- void createFinancialStatement(FinancialStatement masterFinancialStatement,
+ void createMasterFinacialStatements(FinancialStatement masterFinancialStatements);
+
+ FinancialStatement createFinancialStatement(FinancialStatement masterFinancialStatement,
FinancialStatement financialStatement) throws AlreadyExistFinancialTransaction;
void updateFinancialStatement(FinancialStatement financialStatement);
Modified: trunk/lima-swing/src/main/resources/import/bcr_base.csv
===================================================================
--- trunk/lima-swing/src/main/resources/import/bcr_base.csv 2014-07-30 15:38:53 UTC (rev 3875)
+++ trunk/lima-swing/src/main/resources/import/bcr_base.csv 2014-07-30 21:28:07 UTC (rev 3876)
@@ -2,162 +2,162 @@
BILAN ACTIF;O;;;;;O;N;;BOTH
Capital Souscrit non appelé;N;109; ; ; ;N;N;BILAN ACTIF;
ACTIF IMMOBILISÉ;O; ; ; ; ;O;N;BILAN ACTIF;BOTH
-Immobilisations incorporelles;O;;;;;N;N;ACTIF IMMOBILISÉ;BOTH
-Frais d'établissement;N;201;;;2801;N;N;Immobilisations incorporelles;
-Frais de recherche et développement;N;203;;;2803;N;N;Immobilisations incorporelles;
-"Concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires";N;205;;;"2805, 2905";N;N;Immobilisations incorporelles;
-Fonds commercial;N;"206, 207";;;"2807, 2906, 2907";N;N;Immobilisations incorporelles;
-Autres;N;208;;;"2808, 2908";N;N;Immobilisations incorporelles;
-Immobilisations incorporelles en cours;N;232;;;2932;N;N;Immobilisations incorporelles;
-Avances et acomptes;N;237;;;;N;N;Immobilisations incorporelles;
-Immobilisations financières;O;;;;;N;N;ACTIF IMMOBILISÉ;BOTH
-Participations;N;"261, 266";;;"2961, 2966";N;N;Immobilisations financières;
-Créances rattachées à des participations;N;"267, 268";;;"2967, 2968";N;N;Immobilisations financières;
-Titres immobilisés de l'activité de portefeuille;N;273;;;2973;N;N;Immobilisations financières;
-Autres titres immobilisés;N;"271, 272, 27682";;;"2971, 2972";N;N;Immobilisations financières;
-Prêts;N;"274, 27684";;;2974;N;N;Immobilisations financières;
-Autres;N;"275, 2761, 27685, 27688";;;"2975, 2976";N;N;Immobilisations financières;
-Immobilisations corporelles;O;;;;;N;N;ACTIF IMMOBILISÉ;BOTH
-Terrains;N;"211, 212";;;"2811, 2812, 2911";N;N;Immobilisations corporelles;
-Constructions;N;"213, 214";;;"2813, 2814";N;N;Immobilisations corporelles;
-"Installations techniques, matériels, et outillage industriels";N;215;;;2815;N;N;Immobilisations corporelles;
-Immobilisations corporelles en cours;N;231;;;2931;N;N;Immobilisations corporelles;
-Autres;N;218;;;2818;N;N;Immobilisations corporelles;
-Avances et acomptes;N;238;;;;N;N;Immobilisations corporelles;
+Immobilisations incorporelles;O;;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ;BOTH
+Frais d'établissement;N;201;;;2801;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Frais de recherche et développement;N;203;;;2803;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+"Concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires";N;205;;;"2805, 2905";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Fonds commercial;N;"206, 207";;;"2807, 2906, 2907";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Autres;N;208;;;"2808, 2908";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Immobilisations incorporelles en cours;N;232;;;2932;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Avances et acomptes;N;237;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Immobilisations financières;O;;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ;BOTH
+Participations;N;"261, 266";;;"2961, 2966";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Créances rattachées à des participations;N;"267, 268";;;"2967, 2968";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Titres immobilisés de l'activité de portefeuille;N;273;;;2973;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Autres titres immobilisés;N;"271, 272, 27682";;;"2971, 2972";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Prêts;N;"274, 27684";;;2974;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Autres;N;"275, 2761, 27685, 27688";;;"2975, 2976";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Immobilisations corporelles;O;;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ;BOTH
+Terrains;N;"211, 212";;;"2811, 2812, 2911";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+Constructions;N;"213, 214";;;"2813, 2814";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+"Installations techniques, matériels, et outillage industriels";N;215;;;2815;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+Immobilisations corporelles en cours;N;231;;;2931;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+Autres;N;218;;;2818;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+Avances et acomptes;N;238;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
ACTIF CIRCULANT;O;;;;;O;N;BILAN ACTIF;BOTH
-Stocks et en-cours;O;;;;;N;O;ACTIF CIRCULANT;BOTH
-Marchandises;N;37;;;397;N;N;Stocks et en-cours;
-Matières premières et autres approvisionnements;N;"31, 32";;;"391, 392";N;N;Stocks et en-cours;
-En cours de production (biens et services);N;"33, 34";;;"393, 394";N;N;Stocks et en-cours;
-Produits intermédiaires et finis;N;35;;;395;N;N;Stocks et en-cours;
-Avances et acomptes versés sur commandes;N;4091;;;;N;N;ACTIF CIRCULANT;
-Disponibilités;N;"53, 54 -5181 -519";51;;;N;N;ACTIF CIRCULANT;
-Charges constatées d'avance;N;486;;;;N;N;ACTIF CIRCULANT;
-Valeurs mobilières de placement;O;;;;;N;N;ACTIF CIRCULANT;BOTH
-Actions propres;N;502;;;59;N;N;Valeurs mobilières de placement;
-Autres titres;N;50 -502 -509;;;59;N;N;Valeurs mobilières de placement;
-Instrument de trésorerie;N;;52;;;N;N;Valeurs mobilières de placement;
-Créances;O;;;;;N;N;ACTIF CIRCULANT;BOTH
-Créances diverses;N;"4411, 4418, 462, 465, 4687";"443, 444, 451, 456, 458, 467 -4562";;;N;N;Créances;
-"Capital souscrit et appelé, non versé";N;4562;;;;N;N;Créances;
-Créance d'exploitation;O;;;;;N;N;Créances;BOTH
-Créances clients et Comptes rattachés;N;"410, 411, 413, 416, 418";;;491;N;N;Créance d'exploitation;
-Autres;N;"4096, 4097, 4098, 425, 4287, 4387, 4417, 4452, 4456, 4487";4458;;"495, 496";N;N;Créance d'exploitation;
+Stocks et en-cours;O;;;;;N;O;BILAN ACTIF/ACTIF CIRCULANT;BOTH
+Marchandises;N;37;;;397;N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+Matières premières et autres approvisionnements;N;"31, 32";;;"391, 392";N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+En cours de production (biens et services);N;"33, 34";;;"393, 394";N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+Produits intermédiaires et finis;N;35;;;395;N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+Avances et acomptes versés sur commandes;N;4091;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;
+Disponibilités;N;"53, 54 -5181 -519";51;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;
+Charges constatées d'avance;N;486;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;
+Valeurs mobilières de placement;O;;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;BOTH
+Actions propres;N;502;;;59;N;N;BILAN ACTIF/ACTIF CIRCULANT/Valeurs mobilières de placement;
+Autres titres;N;50 -502 -509;;;59;N;N;BILAN ACTIF/ACTIF CIRCULANT/Valeurs mobilières de placement;
+Instrument de trésorerie;N;;52;;;N;N;BILAN ACTIF/ACTIF CIRCULANT/Valeurs mobilières de placement;
+Créances;O;;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;BOTH
+Créances diverses;N;"4411, 4418, 462, 465, 4687";"443, 444, 451, 456, 458, 467 -4562";;;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances;
+"Capital souscrit et appelé, non versé";N;4562;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances;
+Créance d'exploitation;O;;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances;BOTH
+Créances clients et Comptes rattachés;N;"410, 411, 413, 416, 418";;;491;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances/Créance d'exploitation;
+Autres;N;"4096, 4097, 4098, 425, 4287, 4387, 4417, 4452, 4456, 4487";4458;;"495, 496";N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances/Créance d'exploitation;
Charges à répartir sur plusieurs exercices;N;481;;;;N;N;BILAN ACTIF;
Primes de remboursement des emprunts;N;169;;;;N;N;BILAN ACTIF;
Ecarts de conversion Actif;N;476;;;;N;N;BILAN ACTIF;
BILAN PASSIF;O;;;;;O;N;;BOTH
CAPITAUX PROPRES;O;;;;;O;N;BILAN PASSIF;CREDIT
-Capital (dont versé?);N;"101, 108";;;;N;N;CAPITAUX PROPRES;
-"Primes d'émission, de fusion, d'apport";N;104;;;;N;N;CAPITAUX PROPRES;
-Ecart de réévaluation;N;105;;;;N;N;CAPITAUX PROPRES;
-Ecart d'équivalence;N;107;;;;N;N;CAPITAUX PROPRES;
-Report à nouveau;N;"110,119";;;;N;N;CAPITAUX PROPRES;
-RÉSULTAT DE L'EXERCICE (BÉNÉFICE OU PERTE);N;"7,6";;;;N;N;CAPITAUX PROPRES;
-Subventions d'investissement;N;13;;;;N;N;CAPITAUX PROPRES;
-Provisions réglementées;N;14;;;;N;N;CAPITAUX PROPRES;
-Réserves;O;;;;;N;N;CAPITAUX PROPRES;BOTH
-Réserve légale;N;1061;;;;N;N;Réserves;
-Réserves statutaires ou contractuelles;N;1063;;;;N;N;Réserves;
-Réserves réglementées;N;"1062, 1064";;;;N;N;Réserves;
-Autres;N;1068;;;;N;N;Réserves;
+Capital (dont versé?);N;"101, 108";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+"Primes d'émission, de fusion, d'apport";N;104;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Ecart de réévaluation;N;105;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Ecart d'équivalence;N;107;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Report à nouveau;N;"110,119";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+RÉSULTAT DE L'EXERCICE (BÉNÉFICE OU PERTE);N;"7,6";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Subventions d'investissement;N;13;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Provisions réglementées;N;14;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Réserves;O;;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;BOTH
+Réserve légale;N;1061;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
+Réserves statutaires ou contractuelles;N;1063;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
+Réserves réglementées;N;"1062, 1064";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
+Autres;N;1068;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
PROVISIONS POUR RISQUES ET CHARGES;O;;;;;O;N;BILAN PASSIF;BOTH
-Provisions pour risques;N;151;;;;N;N;PROVISIONS POUR RISQUES ET CHARGES;
-Provisions pour charges;N;15 -151;;;;N;N;PROVISIONS POUR RISQUES ET CHARGES;
+Provisions pour risques;N;151;;;;N;N;BILAN PASSIF/PROVISIONS POUR RISQUES ET CHARGES;
+Provisions pour charges;N;15 -151;;;;N;N;BILAN PASSIF/PROVISIONS POUR RISQUES ET CHARGES;
Ecarts de conversion passif;N;477;;;;N;N;BILAN PASSIF;
DETTES;O;;;;;O;N;BILAN PASSIF;BOTH
-Emprunts obligataires convertibles;N;"161, 16881";;;;N;N;DETTES;
-Autres emprunts obligataires;N;"163, 16683";;;;N;N;DETTES;
-Emprunts et dettes auprès établissements de crédits;N;"164, 16684, 5181, 519";;"512, 514, 517";;N;N;DETTES;
-Emprunts et dettes financières diverses;N;"165, 166, 1675, 168, 16883, 17, 426 -16881 -457";;45;;N;N;DETTES;
-Avances et acomptes reçues sur commandes en cours;N;4191;;;;N;N;DETTES;
-Produits constatés d'avance;N;487;;;;N;N;DETTES;
-Dettes d'exploitation;O;;;;;N;N;DETTES;BOTH
-Dettes fournisseurs et comptes rattachés;N;"400, 401, 403, 4081, 4088";;;;N;N;Dettes d'exploitation;
-Dettes fiscales et sociales;N;"421, 422, 424, 427, 4282, 4286, 431, 437, 4386, 4455, 4457, 446, 447, 4486";;4458;;N;N;Dettes d'exploitation;
-Autres;N;"4196, 4197, 4198, 4419";;;;N;N;Dettes d'exploitation;
-Dettes diverses;O;;;;;N;N;DETTES;BOTH
-Dettes sur immobilisations et Comptes rattachés;N;"269, 279, 404, 405, 4084";;;;N;N;Dettes diverses;
-Dettes fiscales (impôts sur les bénéfices);N;;;444;;N;N;Dettes diverses;
-Autres;N;"424, 426, 4284, 4419, 442, 4486, 457, 464, 467, 4686, 509";;"443, 451, 455, 456, 458";;N;N;Dettes diverses;
+Emprunts obligataires convertibles;N;"161, 16881";;;;N;N;BILAN PASSIF/DETTES;
+Autres emprunts obligataires;N;"163, 16683";;;;N;N;BILAN PASSIF/DETTES;
+Emprunts et dettes auprès établissements de crédits;N;"164, 16684, 5181, 519";;"512, 514, 517";;N;N;BILAN PASSIF/DETTES;
+Emprunts et dettes financières diverses;N;"165, 166, 1675, 168, 16883, 17, 426 -16881 -457";;45;;N;N;BILAN PASSIF/DETTES;
+Avances et acomptes reçues sur commandes en cours;N;4191;;;;N;N;BILAN PASSIF/DETTES;
+Produits constatés d'avance;N;487;;;;N;N;BILAN PASSIF/DETTES;
+Dettes d'exploitation;O;;;;;N;N;BILAN PASSIF/DETTES;BOTH
+Dettes fournisseurs et comptes rattachés;N;"400, 401, 403, 4081, 4088";;;;N;N;BILAN PASSIF/DETTES/Dettes d'exploitation;
+Dettes fiscales et sociales;N;"421, 422, 424, 427, 4282, 4286, 431, 437, 4386, 4455, 4457, 446, 447, 4486";;4458;;N;N;BILAN PASSIF/DETTES/Dettes d'exploitation;
+Autres;N;"4196, 4197, 4198, 4419";;;;N;N;BILAN PASSIF/DETTES/Dettes d'exploitation;
+Dettes diverses;O;;;;;N;N;BILAN PASSIF/DETTES;BOTH
+Dettes sur immobilisations et Comptes rattachés;N;"269, 279, 404, 405, 4084";;;;N;N;BILAN PASSIF/DETTES/Dettes diverses;
+Dettes fiscales (impôts sur les bénéfices);N;;;444;;N;N;BILAN PASSIF/DETTES/Dettes diverses;
+Autres;N;"424, 426, 4284, 4419, 442, 4486, 457, 464, 467, 4686, 509";;"443, 451, 455, 456, 458";;N;N;BILAN PASSIF/DETTES/Dettes diverses;
AUTRES FONDS PROPRES;O;;;;;O;N;BILAN PASSIF;BOTH
-Produits des émissions de titres participatifs;N;1671;;;;N;N;AUTRES FONDS PROPRES;
-Avances conditionnées;N;1674;;;;N;N;AUTRES FONDS PROPRES;
-Autres;N;;;;;N;N;AUTRES FONDS PROPRES;
+Produits des émissions de titres participatifs;N;1671;;;;N;N;BILAN PASSIF/AUTRES FONDS PROPRES;
+Avances conditionnées;N;1674;;;;N;N;BILAN PASSIF/AUTRES FONDS PROPRES;
+Autres;N;;;;;N;N;BILAN PASSIF/AUTRES FONDS PROPRES;
COMPTE DE RESULTAT;O;;;;;N;N;;BOTH
CHARGES;O; ; ; ; ;O;N;COMPTE DE RESULTAT;DEBIT
-Quotes-parts de résultat sur opérations faites en commun;N;655;;;;N;N;CHARGES;
-Charges financières;O;;;;;N;O;CHARGES;DEBIT
-Dotations aux amortissements et provisions;N;686;;;;N;N;Charges financières;
-Intérêts et charges assimilées;N;"661, 664, 665, 668";;;;N;N;Charges financières;
-Différences négatives de change;N;666;;;;N;N;Charges financières;
-Charges nettes sur cessions de valeurs mobilières de placement;N;667;;;;N;N;Charges financières;
-Participation des salariés aux résultats;N;691;;;;N;N;CHARGES;
-Impôts sur les bénéfices;N;"695, 697, 689, 698, 699, 789";;;;N;N;CHARGES;
-CHARGES D'EXPLOITATION;O;;;;;O;N;CHARGES;DEBIT
-Coût d'achat des marchandises;O;;;;;N;O;CHARGES D'EXPLOITATION;DEBIT
-Variations de stocks de march.;N;6037;;;;N;N;Coût d'achat des marchandises;
-Achat de marchandises;N;"607, 6087, 6097";;;;N;N;Coût d'achat des marchandises;
-Salaires et traitements;N;"641, 644, 648";;;;N;N;CHARGES D'EXPLOITATION;
-Charges sociales;N;"645, 646, 647";;;;N;N;CHARGES D'EXPLOITATION;
-Autres charges;N;65 -655;;;;N;N;CHARGES D'EXPLOITATION;
-Dotations aux amortis. & provisions;O; ; ; ; ;N;O;CHARGES D'EXPLOITATION;DEBIT
-Sur immobilisations : dotations aux amortissements;N;"6811, 6812";;;;N;N;Dotations aux amortis. & provisions;
-Sur immobilisations : dotations aux provisions;N;6816;;;;N;N;Dotations aux amortis. & provisions;
-Sur actif circulant : dotations aux provisions;N;6817;;;;N;N;Dotations aux amortis. & provisions;
-Pour risques et charges : dotations aux provisions;N;6815;;;;N;N;Dotations aux amortis. & provisions;
-Coût d'achats de matières premières et autres approvisionnements;O;;;;;N;N;CHARGES D'EXPLOITATION;DEBIT
-Achats de matières premières et autres approvisionnements;N;"601, 6081, 6091";;;;N;N;Coût d'achats de matières premières et autres approvisionnements;
-Variation des stock;N;"6031, 6032";;;;N;N;Coût d'achats de matières premières et autres approvisionnements;
-Autres approvisionnements;N;"602, 6082, 6092";;;;N;N;Coût d'achats de matières premières et autres approvisionnements;
-Autres charges et charges externes;O;;;;;N;O;CHARGES D'EXPLOITATION;DEBIT
-Achats de sous-traitance;N;"604, 6084, 6094, 6095";;;;N;N;Autres charges et charges externes;
-Achats non stockés de matières et fournitures;N;"605, 606, 6085, 6086, 6096";;;;N;N;Autres charges et charges externes;
-Services extérieurs;O;;;;;N;O;Autres charges et charges externes;DEBIT
-Personnel extérieur;N;621;;;;N;N;Services extérieurs;
-Loyers en crédit-bail mobilier;N;6122;;;;N;N;Services extérieurs;
-Loyers en crédit-bail immobilier;N;;;;;N;N;Services extérieurs;
-Autres;N;"61, 62 -6122 -6125 -621";;;;N;N;Services extérieurs;
-"Impôts, taxes et versements assimilés";O;;;;;N;O;CHARGES D'EXPLOITATION;DEBIT
-sur rémunérations;N;"631, 633";;;;N;N;"Impôts, taxes et versements assimilés";
-autres;N;"635, 637";;;;N;N;"Impôts, taxes et versements assimilés";
-Charges exceptionnelles;O;;;;;N;O;CHARGES;DEBIT
-Sur opérations de gestion;N;671;;;;N;N;Charges exceptionnelles;
-Dotations aux amortissements et aux provisions;O;;;;;N;O;Charges exceptionnelles;DEBIT
-Dotations aux provisions réglementées;N;"6872, 6873, 6874";;;;N;N;Dotations aux amortissements et aux provisions;
-dotations aux amortissements et aux provisions;N;"6871, 6875, 6876";;;;N;N;Dotations aux amortissements et aux provisions;
-sur opération en capital;O;;;;;N;O;Charges exceptionnelles;DEBIT
-valeurs comptables des éléments immobiliers et financiers cédés;N;675;;;;N;N;sur opération en capital;
-autres;N;678;;;;N;N;sur opération en capital;
+Quotes-parts de résultat sur opérations faites en commun;N;655;;;;N;N;COMPTE DE RESULTAT/CHARGES;
+Charges financières;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES;DEBIT
+Dotations aux amortissements et provisions;N;686;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges financières;
+Intérêts et charges assimilées;N;"661, 664, 665, 668";;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges financières;
+Différences négatives de change;N;666;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges financières;
+Charges nettes sur cessions de valeurs mobilières de placement;N;667;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges financières;
+Participation des salariés aux résultats;N;691;;;;N;N;COMPTE DE RESULTAT/CHARGES;
+Impôts sur les bénéfices;N;"695, 697, 689, 698, 699, 789";;;;N;N;COMPTE DE RESULTAT/CHARGES;
+CHARGES D'EXPLOITATION;O;;;;;O;N;COMPTE DE RESULTAT/CHARGES;DEBIT
+Coût d'achat des marchandises;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+Variations de stocks de march.;N;6037;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achat des marchandises;
+Achat de marchandises;N;"607, 6087, 6097";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achat des marchandises;
+Salaires et traitements;N;"641, 644, 648";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;
+Charges sociales;N;"645, 646, 647";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;
+Autres charges;N;65 -655;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;
+Dotations aux amortis. & provisions;O; ; ; ; ;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+Sur immobilisations : dotations aux amortissements;N;"6811, 6812";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Dotations aux amortis. & provisions;
+Sur immobilisations : dotations aux provisions;N;6816;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Dotations aux amortis. & provisions;
+Sur actif circulant : dotations aux provisions;N;6817;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Dotations aux amortis. & provisions;
+Pour risques et charges : dotations aux provisions;N;6815;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Dotations aux amortis. & provisions;
+Coût d'achats de matières premières et autres approvisionnements;O;;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+Achats de matières premières et autres approvisionnements;N;"601, 6081, 6091";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achats de matières premières et autres approvisionnements;
+Variation des stock;N;"6031, 6032";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achats de matières premières et autres approvisionnements;
+Autres approvisionnements;N;"602, 6082, 6092";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achats de matières premières et autres approvisionnements;
+Autres charges et charges externes;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+Achats de sous-traitance;N;"604, 6084, 6094, 6095";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes;
+Achats non stockés de matières et fournitures;N;"605, 606, 6085, 6086, 6096";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes;
+Services extérieurs;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes;DEBIT
+Personnel extérieur;N;621;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes/Services extérieurs;
+Loyers en crédit-bail mobilier;N;6122;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes/Services extérieurs;
+Loyers en crédit-bail immobilier;N;;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes/Services extérieurs;
+Autres;N;"61, 62 -6122 -6125 -621";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes/Services extérieurs;
+"Impôts, taxes et versements assimilés";O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+sur rémunérations;N;"631, 633";;;;N;N;"COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Impôts, taxes et versements assimilés";
+autres;N;"635, 637";;;;N;N;"COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Impôts, taxes et versements assimilés";
+Charges exceptionnelles;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES;DEBIT
+Sur opérations de gestion;N;671;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles;
+Dotations aux amortissements et aux provisions;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles;DEBIT
+Dotations aux provisions réglementées;N;"6872, 6873, 6874";;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles/Dotations aux amortissements et aux provisions;
+dotations aux amortissements et aux provisions;N;"6871, 6875, 6876";;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles/Dotations aux amortissements et aux provisions;
+sur opération en capital;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles;DEBIT
+valeurs comptables des éléments immobiliers et financiers cédés;N;675;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles/sur opération en capital;
+autres;N;678;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles/sur opération en capital;
PRODUITS;O;;;;;O;N;COMPTE DE RESULTAT;CREDIT
-Produits d'exploitation;O;;;;;O;N;PRODUITS;CREDIT
-Production vendue;O;;;;;N;O;Produits d'exploitation;CREDIT
-Ventes;N;"701, 702, 703, 707, 708, 7091, 7092, 7097, 7098";;;;N;N;Production vendue;
-Travaux;N;"704, 708, 7094, 7098";;;;N;N;Production vendue;
-Prestation de services;N;"705, 706, 708, 7095, 7096, 7098";;;;N;N;Production vendue;
-Autres produits d'exploitation;O;;;;;N;O;Produits d'exploitation;CREDIT
-Production stockée;O;;;;;N;O;Autres produits d'exploitation;CREDIT
-En-cours de production de biens;N;7133;;;;N;N;Production stockée;
-En-cours de production de services;N;7134;;;;N;N;Production stockée;
-Produits;N;7135;;;;N;N;Production stockée;
-"Reprises sur provisions (et amortissements), transferts de charges";O;;;;;N;O;Autres produits d'exploitation;CREDIT
-Reprises sur provisions (et amortissements);N;781;;;;N;N;"Reprises sur provisions (et amortissements), transferts de charges";
-Transferts de charges;N;791;;;;N;N;"Reprises sur provisions (et amortissements), transferts de charges";
-Production exceptionnels sur opérations en capital;O;;;;;N;O;Autres produits d'exploitation;CREDIT
-Produits des cessions d'éléments d'actif;N;775;;;;N;N;Production exceptionnels sur opérations en capital;
-Subvention d'investissement virées au résultat de l'exercice;N;778;;;;N;N;Production exceptionnels sur opérations en capital;
-Production immobilisée;N;"72, 73";;;;N;N;Autres produits d'exploitation;
-Subventions d'exploitation;N;74;;;;N;N;Autres produits d'exploitation;
-Autres;N;75 - 755;;;;N;N;Autres produits d'exploitation;
-Quote-parts de résultat sur opérations faites en commun;N;755;;;;N;N;PRODUITS;
-Produits financiers;O;;;;;N;O;PRODUITS;CREDIT
-De participations;N;761;;;;N;N;Produits financiers;
-D'autres valeurs mobilières et créances de l'actif immobilisé;N;762;;;;N;N;Produits financiers;
-Autres intérêts et produits assimilés;N;"763, 764, 765, 768";;;;N;N;Produits financiers;
-Reprises sur provisions et transfers de charges;N;"786, 796";;;;N;N;Produits financiers;
-Différences positives de change;N;766;;;;N;N;Produits financiers;
-Produits nets sur cessions de valeurs mobilières de placement;N;767;;;;N;N;Produits financiers;
-Produits exceptionnels;O;;;;;N;O;PRODUITS;CREDIT
-Reprises sur provisions et transferts de charges;N;"787, 797";;;;N;N;Produits exceptionnels;
-Sur opérations en capital;N;"775, 777, 778";;;;N;N;Produits exceptionnels;
-Sur opérations de gestion;N;771;;;;N;N;Produits exceptionnels;
+Produits d'exploitation;O;;;;;O;N;COMPTE DE RESULTAT/PRODUITS;CREDIT
+Production vendue;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation;CREDIT
+Ventes;N;"701, 702, 703, 707, 708, 7091, 7092, 7097, 7098";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Production vendue;
+Travaux;N;"704, 708, 7094, 7098";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Production vendue;
+Prestation de services;N;"705, 706, 708, 7095, 7096, 7098";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Production vendue;
+Autres produits d'exploitation;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation;CREDIT
+Production stockée;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;CREDIT
+En-cours de production de biens;N;7133;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production stockée;
+En-cours de production de services;N;7134;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production stockée;
+Produits;N;7135;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production stockée;
+"Reprises sur provisions (et amortissements), transferts de charges";O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;CREDIT
+Reprises sur provisions (et amortissements);N;781;;;;N;N;"COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Reprises sur provisions (et amortissements), transferts de charges";
+Transferts de charges;N;791;;;;N;N;"COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Reprises sur provisions (et amortissements), transferts de charges";
+Production exceptionnels sur opérations en capital;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;CREDIT
+Produits des cessions d'éléments d'actif;N;775;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production exceptionnels sur opérations en capital;
+Subvention d'investissement virées au résultat de l'exercice;N;778;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production exceptionnels sur opérations en capital;
+Production immobilisée;N;"72, 73";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;
+Subventions d'exploitation;N;74;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;
+Autres;N;75 - 755;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;
+Quote-parts de résultat sur opérations faites en commun;N;755;;;;N;N;COMPTE DE RESULTAT/PRODUITS;
+Produits financiers;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS;CREDIT
+De participations;N;761;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+D'autres valeurs mobilières et créances de l'actif immobilisé;N;762;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Autres intérêts et produits assimilés;N;"763, 764, 765, 768";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Reprises sur provisions et transfers de charges;N;"786, 796";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Différences positives de change;N;766;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Produits nets sur cessions de valeurs mobilières de placement;N;767;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Produits exceptionnels;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS;CREDIT
+Reprises sur provisions et transferts de charges;N;"787, 797";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits exceptionnels;
+Sur opérations en capital;N;"775, 777, 778";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits exceptionnels;
+Sur opérations de gestion;N;771;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits exceptionnels;
Modified: trunk/lima-swing/src/main/resources/import/bcr_developed.csv
===================================================================
--- trunk/lima-swing/src/main/resources/import/bcr_developed.csv 2014-07-30 15:38:53 UTC (rev 3875)
+++ trunk/lima-swing/src/main/resources/import/bcr_developed.csv 2014-07-30 21:28:07 UTC (rev 3876)
@@ -1,163 +1,163 @@
label;header;accounts;debitAccounts;creditAccounts;provisionDeprecationAccounts;subAmount;headerAmount;masterFinancialStatement;financialStatementWay
-BILAN ACTIF;true;;;;;true;false;;BOTH
-Capital Souscrit non appelé;false;109; ; ; ;false;false;BILAN ACTIF;
-BILAN PASSIF;true;;;;;true;false;;BOTH
-CAPITAUX PROPRES;true;;;;;true;false;BILAN PASSIF;CREDIT
-COMPTE DE RESULTAT;true;;;;;false;false;;BOTH
-Capital (dont versé?);false;101, 108;;;;false;false;CAPITAUX PROPRES;
-CHARGES;true; ; ; ; ;true;false;COMPTE DE RESULTAT;DEBIT
-PRODUITS;true;;;;;true;false;COMPTE DE RESULTAT;CREDIT
-ACTIF IMMOBILISÉ;true; ; ; ; ;true;false;BILAN ACTIF;BOTH
-ACTIF CIRCULANT;true;;;;;true;false;BILAN ACTIF;BOTH
-CHARGES D'EXPLOITATION;true;;;;;true;false;CHARGES;DEBIT
-Coût d'achat des marchandises;true;;;;;false;true;CHARGES D'EXPLOITATION;DEBIT
-Stocks et en-cours;true;;;;;false;true;ACTIF CIRCULANT;BOTH
-Marchandises;false;37;;;397;false;false;Stocks et en-cours;
-Variations de stocks de march.;false;6037;;;;false;false;Coût d'achat des marchandises;
-Achat de marchandises;false;607, 6087, 6097;;;;false;false;Coût d'achat des marchandises;
-Immobilisations incorporelles;true;;;;;false;false;ACTIF IMMOBILISÉ;BOTH
-Frais d'établissement;false;201;;;2801;false;false;Immobilisations incorporelles;
-Frais de recherche et développement;false;203;;;2803;false;false;Immobilisations incorporelles;
-Concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires;false;205;;;2805, 2905;false;false;Immobilisations incorporelles;
-Fonds commercial;false;206, 207;;;2807, 2906, 2907;false;false;Immobilisations incorporelles;
-Autres;false;208;;;2808, 2908;false;false;Immobilisations incorporelles;
-Immobilisations incorporelles en cours;false;232;;;2932;false;false;Immobilisations incorporelles;
-Avances et acomptes;false;237;;;;false;false;Immobilisations incorporelles;
-Immobilisations corporelles;true;;;;;false;false;ACTIF IMMOBILISÉ;BOTH
-Terrains;false;211, 212;;;2811, 2812, 2911;false;false;Immobilisations corporelles;
-Constructions;false;213, 214;;;2813, 2814;false;false;Immobilisations corporelles;
-Installations techniques, matériels, et outillage industriels;false;215;;;2815;false;false;Immobilisations corporelles;
-Immobilisations corporelles en cours;false;231;;;2931;false;false;Immobilisations corporelles;
-Immobilisations financières;true;;;;;false;false;ACTIF IMMOBILISÉ;BOTH
-Participations;false;261, 266;;;2961, 2966;false;false;Immobilisations financières;
-Créances rattachées à des participations;false;267, 268;;;2967, 2968;false;false;Immobilisations financières;
-Titres immobilisés de l'activité de portefeuille;false;273;;;2973;false;false;Immobilisations financières;
-Autres titres immobilisés;false;271, 272, 27682;;;2971, 2972;false;false;Immobilisations financières;
-Prêts;false;274, 27684;;;2974;false;false;Immobilisations financières;
-Matières premières et autres approvisionnements;false;31, 32;;;391, 392;false;false;Stocks et en-cours;
-En cours de production (biens et services);false;33, 34;;;393, 394;false;false;Stocks et en-cours;
-Produits intermédiaires et finis;false;35;;;395;false;false;Stocks et en-cours;
-Avances et acomptes versés sur commandes;false;4091;;;;false;false;ACTIF CIRCULANT;
-Créances;true;;;;;false;false;ACTIF CIRCULANT;BOTH
-Valeurs mobilières de placement;true;;;;;false;false;ACTIF CIRCULANT;BOTH
-Actions propres;false;502;;;59;false;false;Valeurs mobilières de placement;
-Autres titres;false;50 -502 -509;;;59;false;false;Valeurs mobilières de placement;
-Disponibilités;false;53, 54 -5181 -519;51;;;false;false;ACTIF CIRCULANT;
-Charges constatées d'avance;false;486;;;;false;false;ACTIF CIRCULANT;
-Instrument de trésorerie;false;;52;;;false;false;Valeurs mobilières de placement;
-Charges à répartir sur plusieurs exercices;false;481;;;;false;false;BILAN ACTIF;
-Primes de remboursement des emprunts;false;169;;;;false;false;BILAN ACTIF;
-Ecarts de conversion Actif;false;476;;;;false;false;BILAN ACTIF;
-Primes d'émission, de fusion, d'apport;false;104;;;;false;false;CAPITAUX PROPRES;
-Ecart de réévaluation;false;105;;;;false;false;CAPITAUX PROPRES;
-Ecart d'équivalence;false;107;;;;false;false;CAPITAUX PROPRES;
-Réserves;true;;;;;false;false;CAPITAUX PROPRES;BOTH
-Réserve légale;false;1061;;;;false;false;Réserves;
-Réserves statutaires ou contractuelles;false;1063;;;;false;false;Réserves;
-Réserves réglementées;false;1062, 1064;;;;false;false;Réserves;
-Report à nouveau;false;110,119;;;;false;false;CAPITAUX PROPRES;
-RÉSULTAT DE L'EXERCICE (BÉNÉFICE OU PERTE);false;7,6;;;;false;false;CAPITAUX PROPRES;
-Subventions d'investissement;false;13;;;;false;false;CAPITAUX PROPRES;
-Provisions réglementées;false;14;;;;false;false;CAPITAUX PROPRES;
-AUTRES FONDS PROPRES;true;;;;;true;false;BILAN PASSIF;BOTH
-Produits des émissions de titres participatifs;false;1671;;;;false;false;AUTRES FONDS PROPRES;
-Avances conditionnées;false;1674;;;;false;false;AUTRES FONDS PROPRES;
-PROVISIONS POUR RISQUES ET CHARGES;true;;;;;true;false;BILAN PASSIF;BOTH
-Provisions pour risques;false;151;;;;false;false;PROVISIONS POUR RISQUES ET CHARGES;
-Provisions pour charges;false;15 -151;;;;false;false;PROVISIONS POUR RISQUES ET CHARGES;
-DETTES;true;;;;;true;false;BILAN PASSIF;BOTH
-Emprunts obligataires convertibles;false;161, 16881;;;;false;false;DETTES;
-Autres emprunts obligataires;false;163, 16683;;;;false;false;DETTES;
-Emprunts et dettes auprès établissements de crédits;false;164, 16684, 5181, 519;;512, 514, 517;;false;false;DETTES;
-Emprunts et dettes financières diverses;false;165, 166, 1675, 168, 16883, 17, 426 -16881 -457;;45;;false;false;DETTES;
-Avances et acomptes reçues sur commandes en cours;false;4191;;;;false;false;DETTES;
-Ecarts de conversion passif;false;477;;;;false;false;BILAN PASSIF;
-Coût d'achats de matières premières et autres approvisionnements;true;;;;;false;false;CHARGES D'EXPLOITATION;DEBIT
-Achats de matières premières et autres approvisionnements;false;601, 6081, 6091;;;;false;false;Coût d'achats de matières premières et autres approvisionnements;
-Variation des stock;false;6031, 6032;;;;false;false;Coût d'achats de matières premières et autres approvisionnements;
-Salaires et traitements;false;641, 644, 648;;;;false;false;CHARGES D'EXPLOITATION;
-Charges sociales;false;645, 646, 647;;;;false;false;CHARGES D'EXPLOITATION;
-Dotations aux amortis. & provisions;true; ; ; ; ;false;true;CHARGES D'EXPLOITATION;DEBIT
-Autres charges;false;65 -655;;;;false;false;CHARGES D'EXPLOITATION;
-Quotes-parts de résultat sur opérations faites en commun;false;655;;;;false;false;CHARGES;
-Charges financières;true;;;;;false;true;CHARGES;DEBIT
-Dotations aux amortissements et provisions;false;686;;;;false;false;Charges financières;
-Intérêts et charges assimilées;false;661, 664, 665, 668;;;;false;false;Charges financières;
-Différences négatives de change;false;666;;;;false;false;Charges financières;
-Charges nettes sur cessions de valeurs mobilières de placement;false;667;;;;false;false;Charges financières;
-Charges exceptionnelles;true;;;;;false;true;CHARGES;DEBIT
-Sur opérations de gestion;false;671;;;;false;false;Charges exceptionnelles;
-Participation des salariés aux résultats;false;691;;;;false;false;CHARGES;
-Impôts sur les bénéfices;false;695, 697, 689, 698, 699, 789;;;;false;false;CHARGES;
-Produits d'exploitation;true;;;;;true;false;PRODUITS;CREDIT
-Production vendue;true;;;;;false;true;Produits d'exploitation;CREDIT
-Ventes;false;701, 702, 703, 707, 708, 7091, 7092, 7097, 7098;;;;false;false;Production vendue;
-Travaux;false;704, 708, 7094, 7098;;;;false;false;Production vendue;
-Autres produits d'exploitation;true;;;;;false;true;Produits d'exploitation;CREDIT
-Quote-parts de résultat sur opérations faites en commun;false;755;;;;false;false;PRODUITS;
-Produits financiers;true;;;;;false;true;PRODUITS;CREDIT
-De participations;false;761;;;;false;false;Produits financiers;
-D'autres valeurs mobilières et créances de l'actif immobilisé;false;762;;;;false;false;Produits financiers;
-Autres intérêts et produits assimilés;false;763, 764, 765, 768;;;;false;false;Produits financiers;
-Reprises sur provisions et transfers de charges;false;786, 796;;;;false;false;Produits financiers;
-Différences positives de change;false;766;;;;false;false;Produits financiers;
-Produits nets sur cessions de valeurs mobilières de placement;false;767;;;;false;false;Produits financiers;
-Produits exceptionnels;true;;;;;false;true;PRODUITS;CREDIT
-Reprises sur provisions et transferts de charges;false;787, 797;;;;false;false;Produits exceptionnels;
-Sur immobilisations : dotations aux amortissements;false;6811, 6812;;;;false;false;Dotations aux amortis. & provisions;
-Sur immobilisations : dotations aux provisions;false;6816;;;;false;false;Dotations aux amortis. & provisions;
-Sur actif circulant : dotations aux provisions;false;6817;;;;false;false;Dotations aux amortis. & provisions;
-Pour risques et charges : dotations aux provisions;false;6815;;;;false;false;Dotations aux amortis. & provisions;
-Créance d'exploitation;true;;;;;false;false;Créances;BOTH
-Créances clients et Comptes rattachés;false;410, 411, 413, 416, 418;;;491;false;false;Créance d'exploitation;
-Créances diverses;false;4411, 4418, 462, 465, 4687;443, 444, 451, 456, 458, 467 -4562;;;false;false;Créances;
-Capital souscrit et appelé, non versé;false;4562;;;;false;false;Créances;
-Dettes d'exploitation;true;;;;;false;false;DETTES;BOTH
-Dettes fournisseurs et comptes rattachés;false;400, 401, 403, 4081, 4088;;;;false;false;Dettes d'exploitation;
-Dettes fiscales et sociales;false;421, 422, 424, 427, 4282, 4286, 431, 437, 4386, 4455, 4457, 446, 447, 4486;;4458;;false;false;Dettes d'exploitation;
-Dettes diverses;true;;;;;false;false;DETTES;BOTH
-Dettes sur immobilisations et Comptes rattachés;false;269, 279, 404, 405, 4084;;;;false;false;Dettes diverses;
-Dettes fiscales (impôts sur les bénéfices);false;;;444;;false;false;Dettes diverses;
-Sur opérations en capital;false;775, 777, 778;;;;false;false;Produits exceptionnels;
-Prestation de services;false;705, 706, 708, 7095, 7096, 7098;;;;false;false;Production vendue;
-Production stockée;true;;;;;false;true;Autres produits d'exploitation;CREDIT
-En-cours de production de biens;false;7133;;;;false;false;Production stockée;
-En-cours de production de services;false;7134;;;;false;false;Production stockée;
-Produits;false;7135;;;;false;false;Production stockée;
-Reprises sur provisions (et amortissements), transferts de charges;true;;;;;false;true;Autres produits d'exploitation;CREDIT
-Reprises sur provisions (et amortissements);false;781;;;;false;false;Reprises sur provisions (et amortissements), transferts de charges;
-Transferts de charges;false;791;;;;false;false;Reprises sur provisions (et amortissements), transferts de charges;
-Production exceptionnels sur opérations en capital;true;;;;;false;true;Autres produits d'exploitation;CREDIT
-Produits des cessions d'éléments d'actif;false;775;;;;false;false;Production exceptionnels sur opérations en capital;
-Subvention d'investissement virées au résultat de l'exercice;false;778;;;;false;false;Production exceptionnels sur opérations en capital;
-Autres approvisionnements;false;602, 6082, 6092;;;;false;false;Coût d'achats de matières premières et autres approvisionnements;
-Autres charges et charges externes;true;;;;;false;true;CHARGES D'EXPLOITATION;DEBIT
-Achats de sous-traitance;false;604, 6084, 6094, 6095;;;;false;false;Autres charges et charges externes;
-Achats non stockés de matières et fournitures;false;605, 606, 6085, 6086, 6096;;;;false;false;Autres charges et charges externes;
-Services extérieurs;true;;;;;false;true;Autres charges et charges externes;DEBIT
-Personnel extérieur;false;621;;;;false;false;Services extérieurs;
-Loyers en crédit-bail mobilier;false;6122;;;;false;false;Services extérieurs;
-Loyers en crédit-bail immobilier;false;;;;;false;false;Services extérieurs;
-Impôts, taxes et versements assimilés;true;;;;;false;true;CHARGES D'EXPLOITATION;DEBIT
-sur rémunérations;false;631, 633;;;;false;false;Impôts, taxes et versements assimilés;
-autres;false;635, 637;;;;false;false;Impôts, taxes et versements assimilés;
-sur opération en capital;true;;;;;false;true;Charges exceptionnelles;DEBIT
-valeurs comptables des éléments immobiliers et financiers cédés;false;675;;;;false;false;sur opération en capital;
-Dotations aux amortissements et aux provisions;true;;;;;false;true;Charges exceptionnelles;DEBIT
-Dotations aux provisions réglementées;false;6872, 6873, 6874;;;;false;false;Dotations aux amortissements et aux provisions;
-dotations aux amortissements et aux provisions;false;6871, 6875, 6876;;;;false;false;Dotations aux amortissements et aux provisions;
-Produits constatés d'avance;false;487;;;;false;false;DETTES;
-Autres;false;275, 2761, 27685, 27688;;;2975, 2976;false;false;Immobilisations financières;
-Autres;false;218;;;2818;false;false;Immobilisations corporelles;
-Autres;false;1068;;;;false;false;Réserves;
-Autres;false;;;;;false;false;AUTRES FONDS PROPRES;
-Autres;false;4096, 4097, 4098, 425, 4287, 4387, 4417, 4452, 4456, 4487;4458;;495, 496;false;false;Créance d'exploitation;
-Autres;false;4196, 4197, 4198, 4419;;;;false;false;Dettes d'exploitation;
-Autres;false;424, 426, 4284, 4419, 442, 4486, 457, 464, 467, 4686, 509;;443, 451, 455, 456, 458;;false;false;Dettes diverses;
-Autres;false;61, 62 -6122 -6125 -621;;;;false;false;Services extérieurs;
-Avances et acomptes;false;238;;;;false;false;Immobilisations corporelles;
-Sur opérations de gestion;false;771;;;;false;false;Produits exceptionnels;
-autres;false;678;;;;false;false;sur opération en capital;
-Production immobilisée;false;72, 73;;;;false;false;Autres produits d'exploitation;
-Subventions d'exploitation;false;74;;;;false;false;Autres produits d'exploitation;
-Autres;false;75 - 755;;;;false;false;Autres produits d'exploitation;
+BILAN ACTIF;O;;;;;O;N;;BOTH
+Capital Souscrit non appelé;N;109; ; ; ;N;N;BILAN ACTIF;
+ACTIF IMMOBILISÉ;O; ; ; ; ;O;N;BILAN ACTIF;BOTH
+Immobilisations incorporelles;O;;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ;BOTH
+Frais d'établissement;N;201;;;2801;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Frais de recherche et développement;N;203;;;2803;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+"Concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires";N;205;;;"2805, 2905";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Fonds commercial;N;"206, 207";;;"2807, 2906, 2907";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Autres;N;208;;;"2808, 2908";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Immobilisations incorporelles en cours;N;232;;;2932;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Avances et acomptes;N;237;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Immobilisations financières;O;;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ;BOTH
+Participations;N;"261, 266";;;"2961, 2966";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Créances rattachées à des participations;N;"267, 268";;;"2967, 2968";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Titres immobilisés de l'activité de portefeuille;N;273;;;2973;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Autres titres immobilisés;N;"271, 272, 27682";;;"2971, 2972";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Prêts;N;"274, 27684";;;2974;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Autres;N;"275, 2761, 27685, 27688";;;"2975, 2976";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations financières;
+Immobilisations corporelles;O;;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ;BOTH
+Terrains;N;"211, 212";;;"2811, 2812, 2911";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+Constructions;N;"213, 214";;;"2813, 2814";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+"Installations techniques, matériels, et outillage industriels";N;215;;;2815;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+Immobilisations corporelles en cours;N;231;;;2931;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+Autres;N;218;;;2818;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+Avances et acomptes;N;238;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations corporelles;
+ACTIF CIRCULANT;O;;;;;O;N;BILAN ACTIF;BOTH
+Stocks et en-cours;O;;;;;N;O;BILAN ACTIF/ACTIF CIRCULANT;BOTH
+Marchandises;N;37;;;397;N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+Matières premières et autres approvisionnements;N;"31, 32";;;"391, 392";N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+En cours de production (biens et services);N;"33, 34";;;"393, 394";N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+Produits intermédiaires et finis;N;35;;;395;N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+Avances et acomptes versés sur commandes;N;4091;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;
+Disponibilités;N;"53, 54 -5181 -519";51;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;
+Charges constatées d'avance;N;486;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;
+Valeurs mobilières de placement;O;;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;BOTH
+Actions propres;N;502;;;59;N;N;BILAN ACTIF/ACTIF CIRCULANT/Valeurs mobilières de placement;
+Autres titres;N;50 -502 -509;;;59;N;N;BILAN ACTIF/ACTIF CIRCULANT/Valeurs mobilières de placement;
+Instrument de trésorerie;N;;52;;;N;N;BILAN ACTIF/ACTIF CIRCULANT/Valeurs mobilières de placement;
+Créances;O;;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;BOTH
+Créances diverses;N;"4411, 4418, 462, 465, 4687";"443, 444, 451, 456, 458, 467 -4562";;;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances;
+"Capital souscrit et appelé, non versé";N;4562;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances;
+Créance d'exploitation;O;;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances;BOTH
+Créances clients et Comptes rattachés;N;"410, 411, 413, 416, 418";;;491;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances/Créance d'exploitation;
+Autres;N;"4096, 4097, 4098, 425, 4287, 4387, 4417, 4452, 4456, 4487";4458;;"495, 496";N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances/Créance d'exploitation;
+Charges à répartir sur plusieurs exercices;N;481;;;;N;N;BILAN ACTIF;
+Primes de remboursement des emprunts;N;169;;;;N;N;BILAN ACTIF;
+Ecarts de conversion Actif;N;476;;;;N;N;BILAN ACTIF;
+BILAN PASSIF;O;;;;;O;N;;BOTH
+CAPITAUX PROPRES;O;;;;;O;N;BILAN PASSIF;CREDIT
+Capital (dont versé?);N;"101, 108";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+"Primes d'émission, de fusion, d'apport";N;104;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Ecart de réévaluation;N;105;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Ecart d'équivalence;N;107;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Report à nouveau;N;"110,119";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+RÉSULTAT DE L'EXERCICE (BÉNÉFICE OU PERTE);N;"7,6";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Subventions d'investissement;N;13;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Provisions réglementées;N;14;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Réserves;O;;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;BOTH
+Réserve légale;N;1061;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
+Réserves statutaires ou contractuelles;N;1063;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
+Réserves réglementées;N;"1062, 1064";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
+Autres;N;1068;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
+PROVISIONS POUR RISQUES ET CHARGES;O;;;;;O;N;BILAN PASSIF;BOTH
+Provisions pour risques;N;151;;;;N;N;BILAN PASSIF/PROVISIONS POUR RISQUES ET CHARGES;
+Provisions pour charges;N;15 -151;;;;N;N;BILAN PASSIF/PROVISIONS POUR RISQUES ET CHARGES;
+Ecarts de conversion passif;N;477;;;;N;N;BILAN PASSIF;
+DETTES;O;;;;;O;N;BILAN PASSIF;BOTH
+Emprunts obligataires convertibles;N;"161, 16881";;;;N;N;BILAN PASSIF/DETTES;
+Autres emprunts obligataires;N;"163, 16683";;;;N;N;BILAN PASSIF/DETTES;
+Emprunts et dettes auprès établissements de crédits;N;"164, 16684, 5181, 519";;"512, 514, 517";;N;N;BILAN PASSIF/DETTES;
+Emprunts et dettes financières diverses;N;"165, 166, 1675, 168, 16883, 17, 426 -16881 -457";;45;;N;N;BILAN PASSIF/DETTES;
+Avances et acomptes reçues sur commandes en cours;N;4191;;;;N;N;BILAN PASSIF/DETTES;
+Produits constatés d'avance;N;487;;;;N;N;BILAN PASSIF/DETTES;
+Dettes d'exploitation;O;;;;;N;N;BILAN PASSIF/DETTES;BOTH
+Dettes fournisseurs et comptes rattachés;N;"400, 401, 403, 4081, 4088";;;;N;N;BILAN PASSIF/DETTES/Dettes d'exploitation;
+Dettes fiscales et sociales;N;"421, 422, 424, 427, 4282, 4286, 431, 437, 4386, 4455, 4457, 446, 447, 4486";;4458;;N;N;BILAN PASSIF/DETTES/Dettes d'exploitation;
+Autres;N;"4196, 4197, 4198, 4419";;;;N;N;BILAN PASSIF/DETTES/Dettes d'exploitation;
+Dettes diverses;O;;;;;N;N;BILAN PASSIF/DETTES;BOTH
+Dettes sur immobilisations et Comptes rattachés;N;"269, 279, 404, 405, 4084";;;;N;N;BILAN PASSIF/DETTES/Dettes diverses;
+Dettes fiscales (impôts sur les bénéfices);N;;;444;;N;N;BILAN PASSIF/DETTES/Dettes diverses;
+Autres;N;"424, 426, 4284, 4419, 442, 4486, 457, 464, 467, 4686, 509";;"443, 451, 455, 456, 458";;N;N;BILAN PASSIF/DETTES/Dettes diverses;
+AUTRES FONDS PROPRES;O;;;;;O;N;BILAN PASSIF;BOTH
+Produits des émissions de titres participatifs;N;1671;;;;N;N;BILAN PASSIF/AUTRES FONDS PROPRES;
+Avances conditionnées;N;1674;;;;N;N;BILAN PASSIF/AUTRES FONDS PROPRES;
+Autres;N;;;;;N;N;BILAN PASSIF/AUTRES FONDS PROPRES;
+COMPTE DE RESULTAT;O;;;;;N;N;;BOTH
+CHARGES;O; ; ; ; ;O;N;COMPTE DE RESULTAT;DEBIT
+Quotes-parts de résultat sur opérations faites en commun;N;655;;;;N;N;COMPTE DE RESULTAT/CHARGES;
+Charges financières;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES;DEBIT
+Dotations aux amortissements et provisions;N;686;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges financières;
+Intérêts et charges assimilées;N;"661, 664, 665, 668";;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges financières;
+Différences négatives de change;N;666;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges financières;
+Charges nettes sur cessions de valeurs mobilières de placement;N;667;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges financières;
+Participation des salariés aux résultats;N;691;;;;N;N;COMPTE DE RESULTAT/CHARGES;
+Impôts sur les bénéfices;N;"695, 697, 689, 698, 699, 789";;;;N;N;COMPTE DE RESULTAT/CHARGES;
+CHARGES D'EXPLOITATION;O;;;;;O;N;COMPTE DE RESULTAT/CHARGES;DEBIT
+Coût d'achat des marchandises;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+Variations de stocks de march.;N;6037;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achat des marchandises;
+Achat de marchandises;N;"607, 6087, 6097";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achat des marchandises;
+Salaires et traitements;N;"641, 644, 648";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;
+Charges sociales;N;"645, 646, 647";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;
+Autres charges;N;65 -655;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;
+Dotations aux amortis. & provisions;O; ; ; ; ;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+Sur immobilisations : dotations aux amortissements;N;"6811, 6812";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Dotations aux amortis. & provisions;
+Sur immobilisations : dotations aux provisions;N;6816;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Dotations aux amortis. & provisions;
+Sur actif circulant : dotations aux provisions;N;6817;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Dotations aux amortis. & provisions;
+Pour risques et charges : dotations aux provisions;N;6815;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Dotations aux amortis. & provisions;
+Coût d'achats de matières premières et autres approvisionnements;O;;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+Achats de matières premières et autres approvisionnements;N;"601, 6081, 6091";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achats de matières premières et autres approvisionnements;
+Variation des stock;N;"6031, 6032";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achats de matières premières et autres approvisionnements;
+Autres approvisionnements;N;"602, 6082, 6092";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Coût d'achats de matières premières et autres approvisionnements;
+Autres charges et charges externes;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+Achats de sous-traitance;N;"604, 6084, 6094, 6095";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes;
+Achats non stockés de matières et fournitures;N;"605, 606, 6085, 6086, 6096";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes;
+Services extérieurs;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes;DEBIT
+Personnel extérieur;N;621;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes/Services extérieurs;
+Loyers en crédit-bail mobilier;N;6122;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes/Services extérieurs;
+Loyers en crédit-bail immobilier;N;;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes/Services extérieurs;
+Autres;N;"61, 62 -6122 -6125 -621";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Autres charges et charges externes/Services extérieurs;
+"Impôts, taxes et versements assimilés";O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION;DEBIT
+sur rémunérations;N;"631, 633";;;;N;N;"COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Impôts, taxes et versements assimilés";
+autres;N;"635, 637";;;;N;N;"COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION/Impôts, taxes et versements assimilés";
+Charges exceptionnelles;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES;DEBIT
+Sur opérations de gestion;N;671;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles;
+Dotations aux amortissements et aux provisions;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles;DEBIT
+Dotations aux provisions réglementées;N;"6872, 6873, 6874";;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles/Dotations aux amortissements et aux provisions;
+dotations aux amortissements et aux provisions;N;"6871, 6875, 6876";;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles/Dotations aux amortissements et aux provisions;
+sur opération en capital;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles;DEBIT
+valeurs comptables des éléments immobiliers et financiers cédés;N;675;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles/sur opération en capital;
+autres;N;678;;;;N;N;COMPTE DE RESULTAT/CHARGES/Charges exceptionnelles/sur opération en capital;
+PRODUITS;O;;;;;O;N;COMPTE DE RESULTAT;CREDIT
+Produits d'exploitation;O;;;;;O;N;COMPTE DE RESULTAT/PRODUITS;CREDIT
+Production vendue;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation;CREDIT
+Ventes;N;"701, 702, 703, 707, 708, 7091, 7092, 7097, 7098";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Production vendue;
+Travaux;N;"704, 708, 7094, 7098";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Production vendue;
+Prestation de services;N;"705, 706, 708, 7095, 7096, 7098";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Production vendue;
+Autres produits d'exploitation;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation;CREDIT
+Production stockée;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;CREDIT
+En-cours de production de biens;N;7133;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production stockée;
+En-cours de production de services;N;7134;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production stockée;
+Produits;N;7135;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production stockée;
+"Reprises sur provisions (et amortissements), transferts de charges";O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;CREDIT
+Reprises sur provisions (et amortissements);N;781;;;;N;N;"COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Reprises sur provisions (et amortissements), transferts de charges";
+Transferts de charges;N;791;;;;N;N;"COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Reprises sur provisions (et amortissements), transferts de charges";
+Production exceptionnels sur opérations en capital;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;CREDIT
+Produits des cessions d'éléments d'actif;N;775;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production exceptionnels sur opérations en capital;
+Subvention d'investissement virées au résultat de l'exercice;N;778;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation/Production exceptionnels sur opérations en capital;
+Production immobilisée;N;"72, 73";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;
+Subventions d'exploitation;N;74;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;
+Autres;N;75 - 755;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits d'exploitation/Autres produits d'exploitation;
+Quote-parts de résultat sur opérations faites en commun;N;755;;;;N;N;COMPTE DE RESULTAT/PRODUITS;
+Produits financiers;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS;CREDIT
+De participations;N;761;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+D'autres valeurs mobilières et créances de l'actif immobilisé;N;762;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Autres intérêts et produits assimilés;N;"763, 764, 765, 768";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Reprises sur provisions et transfers de charges;N;"786, 796";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Différences positives de change;N;766;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Produits nets sur cessions de valeurs mobilières de placement;N;767;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits financiers;
+Produits exceptionnels;O;;;;;N;O;COMPTE DE RESULTAT/PRODUITS;CREDIT
+Reprises sur provisions et transferts de charges;N;"787, 797";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits exceptionnels;
+Sur opérations en capital;N;"775, 777, 778";;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits exceptionnels;
+Sur opérations de gestion;N;771;;;;N;N;COMPTE DE RESULTAT/PRODUITS/Produits exceptionnels;
Modified: trunk/lima-swing/src/main/resources/import/bcr_shortened.csv
===================================================================
--- trunk/lima-swing/src/main/resources/import/bcr_shortened.csv 2014-07-30 15:38:53 UTC (rev 3875)
+++ trunk/lima-swing/src/main/resources/import/bcr_shortened.csv 2014-07-30 21:28:07 UTC (rev 3876)
@@ -2,68 +2,68 @@
BILAN ACTIF;O;;;;;O;N;;BOTH
Charges constatées d'avance;N;486;;;;N;N;BILAN ACTIF;
ACTIF IMMOBILISÉ;O; ; ; ; ;O;N;BILAN ACTIF;BOTH
-Immobilisations incorporelles;O;;;;;N;N;ACTIF IMMOBILISÉ;BOTH
-Fonds commercial;N;"206, 207";;;;N;N;Immobilisations incorporelles;
-Autres;N;"201, 208";;;"280, 290";N;N;Immobilisations incorporelles;
-Immobilisations corporelles;N;"21, 23";;;"281, 291";N;N;ACTIF IMMOBILISÉ;
-Immobilisations financières;N;27;;;297;N;N;ACTIF IMMOBILISÉ;
+Immobilisations incorporelles;O;;;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ;BOTH
+Fonds commercial;N;"206, 207";;;;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Autres;N;"201, 208";;;"280, 290";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ/Immobilisations incorporelles;
+Immobilisations corporelles;N;"21, 23";;;"281, 291";N;N;BILAN ACTIF/ACTIF IMMOBILISÉ;
+Immobilisations financières;N;27;;;297;N;N;BILAN ACTIF/ACTIF IMMOBILISÉ;
ACTIF CIRCULANT;O;;;;;O;N;BILAN ACTIF;BOTH
-Stocks et en-cours;O;;;;;N;O;ACTIF CIRCULANT;BOTH
-Marchandises;N;37;;;397;N;N;Stocks et en-cours;
-Autres;N;"31, 32, 33, 34, 35";;;"391, 393, 394, 395";N;N;Stocks et en-cours;
-Avances et acomptes versés sur commandes;N;409;;;;N;N;ACTIF CIRCULANT;
-Valeurs mobilières de placement;N;50;;;590;N;N;ACTIF CIRCULANT;
-Disponibilités (autres que caisse);N;"54, 58";51;;;N;N;ACTIF CIRCULANT;
-Caisse;N;53;;;;N;N;ACTIF CIRCULANT;
-Créances;O;;;;;N;N;ACTIF CIRCULANT;BOTH
-Clients et comptes rattachés;N;41 - 419;;;491;N;N;Créances;
-Autres;N;"409, 428, 46";"43, 444, 445, 455";;496;N;N;Créances;
+Stocks et en-cours;O;;;;;N;O;BILAN ACTIF/ACTIF CIRCULANT;BOTH
+Marchandises;N;37;;;397;N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+Autres;N;"31, 32, 33, 34, 35";;;"391, 393, 394, 395";N;N;BILAN ACTIF/ACTIF CIRCULANT/Stocks et en-cours;
+Avances et acomptes versés sur commandes;N;409;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;
+Valeurs mobilières de placement;N;50;;;590;N;N;BILAN ACTIF/ACTIF CIRCULANT;
+Disponibilités (autres que caisse);N;"54, 58";51;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;
+Caisse;N;53;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;
+Créances;O;;;;;N;N;BILAN ACTIF/ACTIF CIRCULANT;BOTH
+Clients et comptes rattachés;N;41 - 419;;;491;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances;
+Autres;N;"409, 428, 46";"43, 444, 445, 455";;496;N;N;BILAN ACTIF/ACTIF CIRCULANT/Créances;
BILAN PASSIF;O;;;;;O;N;;BOTH
CAPITAUX PROPRES;O;;;;;O;N;BILAN PASSIF;CREDIT
-Capital;N;"101, 108";;;;N;N;CAPITAUX PROPRES;
-Ecart de réévaluation;N;105;;;;N;N;CAPITAUX PROPRES;
-Report à nouveau;N;"110,119";;;;N;N;CAPITAUX PROPRES;
-RÉSULTAT DE L'EXERCICE (BÉNÉFICE OU PERTE);N;"7,6";;;;N;N;CAPITAUX PROPRES;
-Provisions réglementées;N;"145, 146, 147, 148";;;;N;N;CAPITAUX PROPRES;
-Réserves;O;;;;;N;N;CAPITAUX PROPRES;BOTH
-Réserve légale;N;1061;;;;N;N;Réserves;
-Réserves réglementées;N;1064;;;;N;N;Réserves;
-Autres;N;"1063, 1068";;;;N;N;Réserves;
+Capital;N;"101, 108";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Ecart de réévaluation;N;105;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Report à nouveau;N;"110,119";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+RÉSULTAT DE L'EXERCICE (BÉNÉFICE OU PERTE);N;"7,6";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Provisions réglementées;N;"145, 146, 147, 148";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;
+Réserves;O;;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES;BOTH
+Réserve légale;N;1061;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
+Réserves réglementées;N;1064;;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
+Autres;N;"1063, 1068";;;;N;N;BILAN PASSIF/CAPITAUX PROPRES/Réserves;
Provisions pour risques et charges;N;15;;;;N;N;BILAN PASSIF;
Produits constatés d'avance;N;487;;;;N;N;BILAN PASSIF;
DETTES;O;;;;;O;N;BILAN PASSIF;BOTH
-Emprunts et dettes assimilées;N;16;;;;N;N;DETTES;
-Avances et acomptes reçues sur commandes en cours;N;419;;;;N;N;DETTES;
-Fournisseurs et comptes rattachés;N;40;;;;N;N;DETTES;
-Autres;N;"419, 421, 428, 447, 46";;"43, 444, 445";;N;N;DETTES;
+Emprunts et dettes assimilées;N;16;;;;N;N;BILAN PASSIF/DETTES;
+Avances et acomptes reçues sur commandes en cours;N;419;;;;N;N;BILAN PASSIF/DETTES;
+Fournisseurs et comptes rattachés;N;40;;;;N;N;BILAN PASSIF/DETTES;
+Autres;N;"419, 421, 428, 447, 46";;"43, 444, 445";;N;N;BILAN PASSIF/DETTES;
COMPTE DE RESULTAT;O;;;;;N;N;;BOTH
CHARGES;O; ; ; ; ;O;N;COMPTE DE RESULTAT;DEBIT
-Charges exceptionnelles;N;"67, 687, 691";;;;N;N;CHARGES;
-Impôts sur les bénéfices;N;"695, 697";;;;N;N;CHARGES;
-CHARGES D'EXPLOITATION ET FINANCIERES;O;;;;;O;N;CHARGES;DEBIT
-Charges d'exploitation;O;;;;;O;N;CHARGES D'EXPLOITATION ET FINANCIERES;DEBIT
-Coût d'achat des marchandises;O;;;;;N;O;Charges d'exploitation;DEBIT
-Variations de stocks de march.;N;6037;;;;N;N;Coût d'achat des marchandises;
-Achat de marchandises;N;607;;;;N;N;Coût d'achat des marchandises;
-Coût d'achats des approvisionnements;O;;;;;N;N;Charges d'exploitation;DEBIT
-Achats d'approvisionnements;N;60 -603 -607;;;;N;N;Coût d'achats des approvisionnements;
-Variation des stock (approvisionnements);N;"6031, 6032";;;;N;N;Coût d'achats des approvisionnements;
-Autres charges externes;N;"61, 62";;;;N;N;Charges d'exploitation;
-"Impôts, taxes et versements assimilés";N;63;;;;N;N;Charges d'exploitation;
-Rémunération du personnel;N;"641, 644";;;;N;N;Charges d'exploitation;
-Charges sociales;N;"645, 646";;;;N;N;Charges d'exploitation;
-Dotations aux amortissements;N;6811;;;;N;N;Charges d'exploitation;
-Dotations aux provisions;N;"6815, 6816, 6817";;;;N;N;Charges d'exploitation;
-Autres charges;N;65;;;;N;N;Charges d'exploitation;
-Charges financières;N;"66, 686";;;;N;N;CHARGES D'EXPLOITATION ET FINANCIERES;
+Charges exceptionnelles;N;"67, 687, 691";;;;N;N;COMPTE DE RESULTAT/CHARGES;
+Impôts sur les bénéfices;N;"695, 697";;;;N;N;COMPTE DE RESULTAT/CHARGES;
+CHARGES D'EXPLOITATION ET FINANCIERES;O;;;;;O;N;COMPTE DE RESULTAT/CHARGES;DEBIT
+Charges d'exploitation;O;;;;;O;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES;DEBIT
+Coût d'achat des marchandises;O;;;;;N;O;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES/Charges d'exploitation;DEBIT
+Variations de stocks de march.;N;6037;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES/Charges d'exploitation/Coût d'achat des marchandises;
+Achat de marchandises;N;607;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES/Charges d'exploitation/Coût d'achat des marchandises;
+Coût d'achats des approvisionnements;O;;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES/Charges d'exploitation;DEBIT
+Achats d'approvisionnements;N;60 -603 -607;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES/Charges d'exploitation/Coût d'achats des approvisionnements;
+Variation des stock (approvisionnements);N;"6031, 6032";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES/Charges d'exploitation/Coût d'achats des approvisionnements;
+Autres charges externes;N;"61, 62";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES/Charges d'exploitation;
+"Impôts, taxes et versements assimilés";N;63;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES/Charges d'exploitation;
+Rémunération du personnel;N;"641, 644";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES/Charges d'exploitation;
+Charges sociales;N;"645, 646";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES/Charges d'exploitation;
+Dotations aux amortissements;N;6811;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES/Charges d'exploitation;
+Dotations aux provisions;N;"6815, 6816, 6817";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES/Charges d'exploitation;
+Autres charges;N;65;;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES/Charges d'exploitation;
+Charges financières;N;"66, 686";;;;N;N;COMPTE DE RESULTAT/CHARGES/CHARGES D'EXPLOITATION ET FINANCIERES;
PRODUITS;O;;;;;O;N;COMPTE DE RESULTAT;CREDIT
-PRODUITS D'EXPLOITATION ET FINANCIERS;O;;;;;O;N;PRODUITS;CREDIT
-Produits financiers;N;"76, 786, 79";;;;N;N;PRODUITS D'EXPLOITATION ET FINANCIERS;
-Produits d'exploitation;O;;;;;N;N;PRODUITS D'EXPLOITATION ET FINANCIERS;CREDIT
-Ventes de marchandises;N;"707, 709";;;;N;N;Produits d'exploitation;
-Production vendue (bien et services);N;"701, 706, 708, 709";;;;N;N;Produits d'exploitation;
-Production stockée;N;713;;;;N;N;Produits d'exploitation;
-Production immobilisée;N;72;;;;N;N;Produits d'exploitation;
-Subventions d'exploitation;N;74;;;;N;N;Produits d'exploitation;
-Autres produits;N;"75, 781, 79";;;;N;N;Produits d'exploitation;
-Produits exceptionnels;N;"77, 787, 79";;;;N;N;PRODUITS;
+PRODUITS D'EXPLOITATION ET FINANCIERS;O;;;;;O;N;COMPTE DE RESULTAT/PRODUITS;CREDIT
+Produits financiers;N;"76, 786, 79";;;;N;N;COMPTE DE RESULTAT/PRODUITS/PRODUITS D'EXPLOITATION ET FINANCIERS;
+Produits d'exploitation;O;;;;;N;N;COMPTE DE RESULTAT/PRODUITS/PRODUITS D'EXPLOITATION ET FINANCIERS;CREDIT
+Ventes de marchandises;N;"707, 709";;;;N;N;COMPTE DE RESULTAT/PRODUITS/PRODUITS D'EXPLOITATION ET FINANCIERS/Produits d'exploitation;
+Production vendue (bien et services);N;"701, 706, 708, 709";;;;N;N;COMPTE DE RESULTAT/PRODUITS/PRODUITS D'EXPLOITATION ET FINANCIERS/Produits d'exploitation;
+Production stockée;N;713;;;;N;N;COMPTE DE RESULTAT/PRODUITS/PRODUITS D'EXPLOITATION ET FINANCIERS/Produits d'exploitation;
+Production immobilisée;N;72;;;;N;N;COMPTE DE RESULTAT/PRODUITS/PRODUITS D'EXPLOITATION ET FINANCIERS/Produits d'exploitation;
+Subventions d'exploitation;N;74;;;;N;N;COMPTE DE RESULTAT/PRODUITS/PRODUITS D'EXPLOITATION ET FINANCIERS/Produits d'exploitation;
+Autres produits;N;"75, 781, 79";;;;N;N;COMPTE DE RESULTAT/PRODUITS/PRODUITS D'EXPLOITATION ET FINANCIERS/Produits d'exploitation;
+Produits exceptionnels;N;"77, 787, 79";;;;N;N;COMPTE DE RESULTAT/PRODUITS;
1
0
r3875 - in trunk: . lima-swing/src/main/java/org/chorem/lima/ui lima-swing/src/main/java/org/chorem/lima/ui/home lima-swing/src/main/java/org/chorem/lima/ui/opening lima-swing/src/main/resources/i18n lima-swing/src/main/resources/icons
by sbavencoff@users.chorem.org 30 Jul '14
by sbavencoff@users.chorem.org 30 Jul '14
30 Jul '14
Author: sbavencoff
Date: 2014-07-30 17:38:53 +0200 (Wed, 30 Jul 2014)
New Revision: 3875
Url: http://forge.chorem.org/projects/lima/repository/revisions/3875
Log:
refs #875 #1043 : mainview
Added:
trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.css
trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainView.css
trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalYearsPane.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/HomeView.css
trunk/lima-swing/src/main/resources/icons/action-accounts.png
trunk/lima-swing/src/main/resources/icons/action-entries.png
trunk/lima-swing/src/main/resources/icons/action-entryBooks.png
trunk/lima-swing/src/main/resources/icons/action-export.png
trunk/lima-swing/src/main/resources/icons/action-financialPeriods.png
trunk/lima-swing/src/main/resources/icons/action-financialStatements.png
trunk/lima-swing/src/main/resources/icons/action-fiscalPeriods.png
trunk/lima-swing/src/main/resources/icons/action-import.png
trunk/lima-swing/src/main/resources/icons/action-vatStatements.png
trunk/lima-swing/src/main/resources/icons/entryBooks.png
trunk/lima-swing/src/main/resources/icons/fiscalYears.png
Removed:
trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.java
trunk/lima-swing/src/main/resources/icons/action-charts-accounts.png
trunk/lima-swing/src/main/resources/icons/action-charts-entrybooks.png
trunk/lima-swing/src/main/resources/icons/action-charts-financialperiod.png
trunk/lima-swing/src/main/resources/icons/action-charts-financialstatements.png
trunk/lima-swing/src/main/resources/icons/action-charts-fiscalperiod.png
trunk/lima-swing/src/main/resources/icons/action-charts-vatstatements.png
trunk/lima-swing/src/main/resources/icons/action-entries-balanced.png
trunk/lima-swing/src/main/resources/icons/action-export-element.png
trunk/lima-swing/src/main/resources/icons/action-import-element.png
trunk/lima-swing/src/main/resources/icons/entrybooks.png
trunk/lima-swing/src/main/resources/icons/fiscalperiods.png
Modified:
trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.jaxx
trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainView.jaxx
trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/AccountsPane.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransactionsPane.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/HomeView.jaxx
trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningView.jaxx
trunk/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties
trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties
trunk/pom.xml
Added: trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.css
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.css (rev 0)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.css 2014-07-30 15:38:53 UTC (rev 3875)
@@ -0,0 +1,15 @@
+#tab {
+ opaque : false;
+}
+
+#label {
+ opaque : false;
+ font-size : 12;
+}
+
+#closeTab {
+ opaque : true;
+ border : {BorderFactory.createEmptyBorder()};
+ focusPainted : false;
+ actionIcon : closeTab;
+}
\ No newline at end of file
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.jaxx 2014-07-30 09:17:32 UTC (rev 3874)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/ClosableTabHeader.jaxx 2014-07-30 15:38:53 UTC (rev 3875)
@@ -22,32 +22,18 @@
<http://www.gnu.org/licenses/gpl-3.0.html>.
#L%
-->
-<Table insets='0,0,0,0' opaque='false'>
+<JPanel id="tab">
<import>
- java.awt.Dimension
+ javax.swing.BorderFactory
</import>
<String id="title" javaBean='null'/>
<Boolean id="canClose" javaBean='true'/>
- <row fill='both'>
- <cell anchor='west' weightx="1" insets='0,0,0,0'>
- <JLabel id='label' opaque='false' font-size='12'
- verticalAlignment='center' verticalTextPosition='0'
- text='{getTitle()}'/>
- </cell>
- <cell anchor='east' insets='2,15,0,0' weighty='0'>
- <JButton id='closeTab' preferredSize='{new Dimension(16,16)}'
- verticalAlignment='0'
- verticalTextPosition='0'
- opaque='true'
- borderPainted='false'
- focusPainted='false'
- enabled='{isCanClose()}'
- horizontalTextPosition='0'
- actionIcon='closeTab'
- />
- </cell>
- </row>
-</Table>
+
+ <JLabel id='label'
+ text='{getTitle()}'/>
+ <JButton id='closeTab'
+ enabled='{isCanClose()}'/>
+</JPanel>
Added: trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainView.css
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainView.css (rev 0)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainView.css 2014-07-30 15:38:53 UTC (rev 3875)
@@ -0,0 +1,80 @@
+
+#mainView {
+ title : "lima.ui.mainview.title";
+ width : 800;
+ height : 600;
+ resizable : true;
+ extendedState : "{this.MAXIMIZED_BOTH}" ;
+ iconImage : "puzzle_icon.png";
+}
+
+#file{ text : "lima.file"; mnemonic : "F"; }
+
+#csv { text : "lima.importExport.csv"; }
+
+#csvImport { text : "lima.importExport.import"; actionIcon : "import"; }
+#csvImportAll { text : "lima.importExport.all"; }
+#csvImportAccounts { text : "lima.accounts.plan"; actionIcon : "accounts"; }
+#csvImportEntryBooks { text : "lima.entryBooks"; actionIcon : "entryBooks"; }
+#csvImportFinancialStatements { text : "lima.financialStatements"; actionIcon : "financialStatements"; }
+#csvImportVatStatements { text : "lima.vatStatements"; actionIcon : "vatStatements"; }
+#csvImportEntries { text : "lima.entries"; actionIcon : "entries" }
+
+#csvExport { text : "lima.importExport.export"; actionIcon : "export"; }
+#csvExportAll { text : "lima.importExport.all"; }
+#csvExportAccounts { text : "lima.accounts.plan"; actionIcon : "accounts"; }
+#csvExportEntryBooks { text : "lima.entryBooks"; actionIcon : "entryBooks"; }
+#csvExportFinancialStatements { text : "lima.financialStatements"; actionIcon : "financialStatements"; }
+#csvExportVatStatements { text : "lima.vatStatements"; actionIcon : "vatStatements"; }
+#csvExportEntries { text : "lima.entries"; actionIcon : "entries" }
+
+
+#ebp { text : "lima.importExport.ebp"; }
+
+#ebpImport { text : "lima.importExport.import"; actionIcon : "import"; }
+#ebpImportAccounts { text : "lima.accounts.plan"; actionIcon : "accounts"; }
+#ebpImportEntryBooks { text : "lima.entryBooks"; actionIcon : "entryBooks"; }
+#ebpImportEntries { text : "lima.entries"; actionIcon : "entries" }
+
+#ebpExport { text : "lima.importExport.export"; actionIcon : "export"; }
+#ebpExportAccounts { text : "lima.accounts.plan"; actionIcon : "accounts"; }
+#ebpExportEntryBooks { text : "lima.entryBooks"; actionIcon : "entryBooks"; }
+#ebpExportEntries { text : "lima.entries"; actionIcon : "entries" }
+
+#documents { text : "lima.documents" }
+#identity { text : "lima.identity"; actionIcon : "identity"; }
+#preferences { text : "lima.preferences"; actionIcon : "config"; }
+#quit { text : "lima.common.quit"; actionIcon : "quit"; mnemonic : "Q"; }
+
+
+#structure { text : "lima.structure"; mnemonic : "S"; }
+
+#accounts { text : "lima.accounts.plan"; actionIcon : "accounts"; }
+#entryBooks { text : "lima.entryBooks"; actionIcon : "entryBooks"; }
+#fiscalYears { text : "lima.fiscalYears"; actionIcon : "fiscalPeriods"; }
+#financialPeriods { text : "lima.financialPeriods"; actionIcon : "financialPeriods"; }
+#financialStatements { text : "lima.financialStatements"; actionIcon : "financialStatements"; }
+#vatStatements { text : "lima.vatStatements"; actionIcon : "vatStatements"; }
+
+
+#enter { text : "lima.enterEntries"; mnemonic : "E"; }
+
+#entries { text : "lima.entries.enter"; actionIcon : "entries"; }
+#unbalanced { text : "lima.entries.unbalanced"; actionIcon : "entries-unbalanced"; }
+#search { text : "lima.entries.search"; actionIcon : "entries-search"; }
+#lettering { text : "lima.entries.lettering"; actionIcon : "lettering"; }
+
+
+#help { text : "lima.help"; mnemonic : "H"; }
+
+#site { text : "lima.help.site"; actionIcon : "site"; }
+#about { text : "lima.help.about"; actionIcon : "about"; }
+#i18n { text : "lima.help.i18n"; actionIcon : "translate"; mnemonic : "L"; }
+#fr { text : "lima.help.i18n.fr"; actionIcon : "i18n-fr"; }
+#uk { text : "lima.help.i18n.uk"; actionIcon : "i18n-uk"; }
+
+
+
+
+
+
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainView.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainView.jaxx 2014-07-30 09:17:32 UTC (rev 3874)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainView.jaxx 2014-07-30 15:38:53 UTC (rev 3875)
@@ -23,11 +23,9 @@
#L%
-->
-<JFrame title="lima.ui.mainview.title" onWindowClosing="getHandler().close(this)"
- defaultCloseOperation="do_nothing_on_close"
- resizable="true" width="800" height="600"
- extendedState='{this.MAXIMIZED_BOTH}'
- iconImage='puzzle_icon.png'>
+<JFrame id="mainView"
+ onWindowClosing="getHandler().close(this)"
+ defaultCloseOperation="do_nothing_on_close">
<import>
java.util.Locale
@@ -60,142 +58,119 @@
<JMenuBar>
- <JMenu text="lima.menu.file">
- <JMenu text="lima.ui.importexport.csv">
- <JMenu text="lima.ui.importexport.import" actionIcon='import-element'>
- <JMenuItem text="lima.ui.importexport.all"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.CSV_ALL_IMPORT)'/>
- <JMenuItem text="lima.ui.importexport.entrybooks"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.CSV_ENTRYBOOKS_IMPORT)'/>
- <JMenuItem text="lima.ui.importexport.accountcharts"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.CSV_ACCOUNTCHARTS_IMPORT)'/>
- <JMenuItem text="lima.ui.importexport.financialtransactions"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.CSV_ENTRIES_IMPORT)'/>
- <JMenuItem text="lima.ui.importexport.financialstatements"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.CSV_FINANCIALSTATEMENTS_IMPORT)'/>
- <JMenuItem text="lima.ui.importexport.vatstatements"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.CSV_VAT_IMPORT)'/>
+ <JMenu id="file">
+ <JMenu id="csv">
+ <JMenu id="csvImport">
+ <JMenuItem id="csvImportAll"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.CSV_ALL_IMPORT)"/>
+ <JMenuItem id="csvImportaccounts"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.CSV_ACCOUNTCHARTS_IMPORT)"/>
+ <JMenuItem id="csvImportEntryBooks"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.CSV_ENTRYBOOKS_IMPORT)"/>
+ <JMenuItem id="csvImportFinancialStatements"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.CSV_FINANCIALSTATEMENTS_IMPORT)"/>
+ <JMenuItem id="csvImportVatStatements"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.CSV_VAT_IMPORT)"/>
+ <JMenuItem id="csvImportEntries"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.CSV_ENTRIES_IMPORT)"/>
</JMenu>
- <JMenu text="lima.ui.importexport.export" actionIcon='export-element'>
- <JMenuItem text="lima.ui.importexport.all"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.CSV_ALL_EXPORT)'/>
- <JMenuItem text="lima.ui.importexport.entrybooks"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.CSV_ENTRYBOOKS_EXPORT)'/>
- <JMenuItem text="lima.ui.importexport.accountcharts"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.CSV_ACCOUNTCHARTS_EXPORT)'/>
- <JMenuItem text="lima.ui.importexport.financialtransactions"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.CSV_ENTRIES_EXPORT)'/>
- <JMenuItem text="lima.ui.importexport.financialstatements"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.CSV_FINANCIALSTATEMENTS_EXPORT)'/>
- <JMenuItem text="lima.ui.importexport.vatstatements"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.CSV_VAT_EXPORT)'/>
+ <JMenu id="csvExport">
+ <JMenuItem id="csvExportAll"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.CSV_ALL_EXPORT)"/>
+ <JMenuItem id="csvExportAccounts"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.CSV_ACCOUNTCHARTS_EXPORT)"/>
+ <JMenuItem id="csvExportEntryBooks"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.CSV_ENTRYBOOKS_EXPORT)"/>
+ <JMenuItem id="csvExportFinancialStatements"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.CSV_FINANCIALSTATEMENTS_EXPORT)"/>
+ <JMenuItem id="csvExportVatStatements"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.CSV_VAT_EXPORT)"/>
+ <JMenuItem id="csvExportEntries"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.CSV_ENTRIES_EXPORT)"/>
</JMenu>
</JMenu>
- <JMenu text="lima.ui.importexport.ebp">
- <JMenu text="lima.ui.importexport.import" actionIcon='import-element'>
- <JMenuItem text="lima.ui.importexport.entrybooks"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.EBP_ENTRYBOOKS_IMPORT)'/>
- <JMenuItem text="lima.ui.importexport.accountcharts"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.EBP_ACCOUNTCHARTS_IMPORT)'/>
- <JMenuItem text="lima.ui.importexport.entries"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.EBP_ENTRIES_IMPORT)'/>
+ <JMenu id="ebp">
+ <JMenu id="ebpImport">
+ <JMenuItem id="ebpImportAccounts"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.EBP_ACCOUNTCHARTS_IMPORT)"/>
+ <JMenuItem id="ebpImportEntryBooks"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.EBP_ENTRYBOOKS_IMPORT)"/>
+ <JMenuItem id="ebpImportEntries"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.EBP_ENTRIES_IMPORT)"/>
</JMenu>
- <JMenu text="lima.ui.importexport.export" actionIcon='export-element'>
- <JMenuItem text="lima.ui.importexport.entrybooks"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.EBP_ENTRYBOOKS_EXPORT)'/>
- <JMenuItem text="lima.ui.importexport.accountcharts"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.EBP_ACCOUNTCHARTS_EXPORT)'/>
- <JMenuItem text="lima.ui.importexport.entries"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.EBP_ENTRIES_EXPORT)'/>
+ <JMenu id="ebpExport">
+ <JMenuItem id="ebpExportAccounts"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.EBP_ACCOUNTCHARTS_EXPORT)"/>
+ <JMenuItem id="ebpExportEntryBooks"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.EBP_ENTRYBOOKS_EXPORT)"/>
+ <JMenuItem id="ebpExportEntries"
+ onActionPerformed="getHandler().showImportExportView(this, ImportExportEnum.EBP_ENTRIES_EXPORT)"/>
</JMenu>
</JMenu>
<JSeparator/>
- <JMenuItem actionIcon='documents' text="lima.documents"
+ <JMenuItem id="documents"
onActionPerformed="getHandler().loadURI(this)"/>
<JSeparator/>
- <JMenuItem text="lima.identity"
- actionIcon="identity"
+ <JMenuItem id="identity"
onActionPerformed="getHandler().showIdentity(this)"/>
- <JMenuItem text="lima.preferences"
- actionIcon="config"
+ <JMenuItem id="preferences"
onActionPerformed="getHandler().showConfig(this)"/>
<JSeparator/>
- <JMenuItem mnemonic="{'Q'}"
- actionIcon='quit'
- text="lima.common.quit"
- onActionPerformed='getHandler().close(this)'/>
+ <JMenuItem id="quit"
+ onActionPerformed="getHandler().close(this)"/>
</JMenu>
- <JMenu text="lima.structure" mnemonic="{'S'}">
- <JMenuItem text="lima.charts.account"
- onActionPerformed='getHandler().showAccountView(this)'
- actionIcon='charts-accounts'/>
- <JMenuItem text="lima.common.entrybooks"
- onActionPerformed='getHandler().showEntryBookView(this)'
- actionIcon='charts-entrybooks'/>
- <JMenuItem text="lima.charts.fiscalyear"
- onActionPerformed='getHandler().showFiscalPeriodView(this)'
- actionIcon='charts-fiscalperiod'/>
- <JMenuItem text="lima.charts.financialperiod"
- onActionPerformed='getHandler().showFinancialPeriodView(this)'
- actionIcon='charts-financialperiod'/>
- <JMenuItem text="lima.charts.financialstatement"
- onActionPerformed='getHandler().showFinancialStatementView(this)'
- actionIcon='charts-financialstatements'/>
- <JMenu text="lima.charts.vatstatement" actionIcon='charts-vatstatements'>
- <JMenuItem text="lima.charts.vatstatement"
- onActionPerformed='getHandler().showVatChartView(this)'
- actionIcon='charts-vatstatements'/>
- <JMenuItem text="lima.charts.vatpdf"
- onActionPerformed='getHandler().showImportExportView(this, ImportExportEnum.PDF_VAT_IMPORT)'
- actionIcon='charts-vatstatements'/>
- </JMenu>
+ <JMenu id="structure">
+ <JMenuItem id="accounts"
+ onActionPerformed="getHandler().showAccountView(this)"/>
+ <JMenuItem id="entryBooks"
+ onActionPerformed="getHandler().showEntryBookView(this)"/>
+ <JMenuItem id="fiscalYears"
+ onActionPerformed="getHandler().showFiscalPeriodView(this)"/>
+ <JMenuItem id="financialPeriods"
+ onActionPerformed="getHandler().showFinancialPeriodView(this)"/>
+ <JMenuItem id="financialStatements"
+ onActionPerformed="getHandler().showFinancialStatementView(this)"/>
+ <JMenuItem id="vatStatements"
+ onActionPerformed="getHandler().showVatChartView(this)"/>
</JMenu>
- <JMenu text="lima.entries" mnemonic="{'E'}">
- <JMenuItem text="lima.entries.writetransaction"
- onActionPerformed='getHandler().showTransactionView(this)'
- actionIcon='entries-balanced'/>
- <JMenuItem text="lima.entries.searchunbalancedtransaction"
- onActionPerformed='getHandler().showTransactionUnbalancedView(this)'
- actionIcon='entries-unbalanced'/>
- <JMenuItem text="lima.entries.searchtransaction"
- onActionPerformed='getHandler().showTransactionSearchView(this)'
- actionIcon='entries-search'/>
- <JMenuItem text="lima.entries.lettering"
- onActionPerformed='getHandler().showLetteringView(this)'
- actionIcon='lettering'/>
+ <JMenu id="enter">
+ <JMenuItem id="entries"
+ onActionPerformed="getHandler().showTransactionView(this)"/>
+ <JMenuItem id="unbalanced"
+ onActionPerformed="getHandler().showTransactionUnbalancedView(this)"/>
+ <JMenuItem id="search"
+ onActionPerformed="getHandler().showTransactionSearchView(this)"/>
+ <JMenuItem id="lettering"
+ onActionPerformed="getHandler().showLetteringView(this)"/>
</JMenu>
- <JMenu text="lima.menu.help" mnemonic="{'H'}">
-
- <!--<JMenuItem id="help" text='lima.menu.help.help' actionIcon="help"-->
- <!--onActionPerformed="getHandler().showHelp(this, null)"/>-->
-
- <JMenuItem id="site" text='lima.menu.help.site' actionIcon="site"
+ <JMenu id="help">
+ <JMenuItem id="site"
onActionPerformed="getHandler().gotoSite(this)"/>
-
- <JMenuItem id="about" text='lima.menu.help.about' actionIcon="about"
+ <JMenuItem id="about"
onActionPerformed="getHandler().showAbout(this)"/>
- <JMenu text='lima.menu.help.i18n' mnemonic="{'L'}" actionIcon="translate">
-
- <JMenuItem id="i18n_fr" actionIcon="i18n-fr"
- text='lima.menu.help.i18n.fr'
- enabled='{!acceptLocale(getConfig().getLocale(), "fr_FR")}'
+ <JMenu id="i18n">
+ <JMenuItem id="fr"
+ enabled="{!acceptLocale(getConfig().getLocale(), "fr_FR")}"
onActionPerformed="getHandler().changeLanguage(this, Locale.FRANCE)"/>
-
- <JMenuItem id="i18n_en" actionIcon="i18n-uk"
- text='lima.menu.help.i18n.uk'
- enabled='{!acceptLocale(getConfig().getLocale(), "en_GB")}'
+ <JMenuItem id="uk"
+ enabled="{!acceptLocale(getConfig().getLocale(), "en_GB")}"
onActionPerformed="getHandler().changeLanguage(this, Locale.UK)"/>
-
</JMenu>
+
</JMenu>
+
</JMenuBar>
<BetaLayerUI id="betaLayer" />
- <JPanel id="mainPanel" layout='{new BorderLayout()}' decorator="boxed">
- <JTabbedPane id="contentTabbedPane" constraints="BorderLayout.CENTER" onStateChanged="getHandler().swingSession.save()"/>
+ <JPanel id="mainPanel"
+ layout="{new BorderLayout()}"
+ decorator="boxed">
+ <JTabbedPane id="contentTabbedPane"
+ constraints="BorderLayout.CENTER"
+ onStateChanged="getHandler().swingSession.save()"/>
</JPanel>
</JFrame>
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java 2014-07-30 09:17:32 UTC (rev 3874)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/MainViewHandler.java 2014-07-30 15:38:53 UTC (rev 3875)
@@ -280,8 +280,8 @@
public void showAbout(JAXXContext context) {
MainView ui = getUI(context);
AboutPanel about = new AboutPanel();
- about.setTitle(t("lima.title.about"));
- about.setAboutText(t("lima.title.about.description"));
+ about.setTitle(t("lima.help.about.title"));
+ about.setAboutText(t("lima.help.about.title.description"));
about.setBottomText(ui.getConfig().getCopyrightText());
about.setIconPath("/icons/lima.png");
about.setLicenseFile("META-INF/lima-LICENSE.txt");
@@ -295,10 +295,10 @@
translateArea.setFont(translateArea.getFont().deriveFont((float) 11));
}
translateArea.setBorder(null);
- String text = t("lima.about.translate.content");
+ String text = t("lima.help.about.translate.content");
translateArea.setText(text);
component.getViewport().add(translateArea);
- about.getTabs().add(t("lima.title.about.translate"), component);
+ about.getTabs().add(t("lima.help.about.translate.title"), component);
about.init();
about.showInDialog(ui, true);
}
@@ -362,7 +362,7 @@
public void showHomeView(JAXXContext rootContext) {
MainView mainView = getUI(rootContext);
HomeView homeView = new HomeView(mainView);
- showTab(mainView, t("lima.tab.home"), homeView, false);
+ showTab(mainView, t("lima.home"), homeView, false);
}
public void showIdentity(JAXXContext rootContext) {
@@ -380,7 +380,7 @@
public void showAccountView(JAXXContext rootContext) {
MainView mainView = getUI(rootContext);
AccountView accountView = new AccountView(mainView);
- showTab(mainView, t("lima.charts.account"), accountView);
+ showTab(mainView, t("lima.accounts"), accountView);
swingSession.add(accountView);
}
@@ -392,7 +392,7 @@
public void showEntryBookView(JAXXContext rootContext) {
MainView mainView = getUI(rootContext);
EntryBookView entryBookView = new EntryBookView(mainView);
- showTab(mainView, t("lima.common.entrybooks"), entryBookView);
+ showTab(mainView, t("lima.entryBooks"), entryBookView);
swingSession.add(entryBookView);
}
@@ -404,7 +404,7 @@
public void showFiscalPeriodView(JAXXContext rootContext) {
MainView mainView = getUI(rootContext);
FiscalPeriodView fiscalPeriodView = new FiscalPeriodView(mainView);
- showTab(mainView, t("lima.charts.fiscalyear"), fiscalPeriodView);
+ showTab(mainView, t("lima.fiscalYears"), fiscalPeriodView);
swingSession.add(fiscalPeriodView);
}
@@ -417,7 +417,7 @@
MainView mainView = getUI(rootContext);
FinancialPeriodView financialPeriodView =
new FinancialPeriodView(mainView);
- showTab(mainView, t("lima.charts.financialperiod"), financialPeriodView);
+ showTab(mainView, t("lima.financialPeriods"), financialPeriodView);
swingSession.add(financialPeriodView);
}
@@ -430,7 +430,7 @@
MainView mainView = getUI(rootContext);
FinancialStatementChartView financialStatementView =
new FinancialStatementChartView(mainView);
- showTab(mainView, t("lima.charts.financialstatement"), financialStatementView);
+ showTab(mainView, t("lima.financialStatements"), financialStatementView);
swingSession.add(financialStatementView);
}
@@ -442,7 +442,7 @@
public void showVatChartView(JAXXContext rootContext) {
MainView mainView = getUI(rootContext);
VatChartView vatChartView = new VatChartView(mainView);
- showTab(mainView, t("lima.charts.vatstatement"), vatChartView);
+ showTab(mainView, t("lima.vatStatements"), vatChartView);
swingSession.add(vatChartView);
}
@@ -455,7 +455,7 @@
MainView mainView = getUI(rootContext);
FinancialTransactionView transactionView =
new FinancialTransactionView(mainView);
- showTab(mainView, t("lima.entries.writetransaction"),
+ showTab(mainView, t("lima.entries.enter"),
transactionView);
swingSession.add(transactionView);
}
@@ -464,7 +464,7 @@
MainView mainView = getUI(rootContext);
FinancialTransactionUnbalancedView searchResultView =
new FinancialTransactionUnbalancedView(mainView);
- showTab(mainView, t("lima.entries.searchunbalancedtransaction"),
+ showTab(mainView, t("lima.entries.unbalanced"),
searchResultView);
swingSession.add(searchResultView);
}
@@ -473,7 +473,7 @@
MainView mainView = getUI(rootContext);
FinancialTransactionSearchView searchView =
new FinancialTransactionSearchView(mainView);
- showTab(mainView, t("lima.entries.searchtransaction"), searchView);
+ showTab(mainView, t("lima.entries.search"), searchView);
swingSession.add(searchView);
}
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/AccountsPane.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/AccountsPane.java 2014-07-30 09:17:32 UTC (rev 3874)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/AccountsPane.java 2014-07-30 15:38:53 UTC (rev 3875)
@@ -86,17 +86,16 @@
long accountCount = accountService.getAccountCount();
if (accountCount > 0) {
setBackground(GREEN_BACKGROUND);
- String accountsString = t("lima.ui.home.chartaccounts.state1_2") + " "
- + accountCount + " " + t("lima.ui.home.chartaccounts.state2_2")
+ String accountsString = t("lima.home.accounts.info", accountCount)
+ "<br/><br/><a href='#accountschart'>"
- + t("lima.ui.home.chartaccounts.modify") + "</a>";
+ + t("lima.home.accounts.modify") + "</a>";
//set Text
setText(htmlBegin + accountsString + htmlEnd);
} else {
setBackground(RED_BACKGROUND);
- String accountsString = t("lima.ui.home.chartaccounts.nothing")
+ String accountsString = t("lima.home.accounts.nothing")
+ "<br/><br/><a href='#accountschart'>"
- + t("lima.ui.home.chartaccounts.create") + "</a>";
+ + t("lima.home.accounts.create") + "</a>";
//set Text
setText(htmlBegin + accountsString + htmlEnd);
}
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.java 2014-07-30 09:17:32 UTC (rev 3874)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/EntryBooksPane.java 2014-07-30 15:38:53 UTC (rev 3875)
@@ -91,15 +91,13 @@
setBackground(GREEN_BACKGROUND);
String entryBooksString;
if (ebSize == 1) {
- entryBooksString = t("lima.ui.home.entrybooks.state.single")
+ entryBooksString = t("lima.home.entryBooks.info.one", ebSize)
+ "<br/>" + entryBooks.get(0).getLabel()
+ "<br/><br/><a href='#entrybookschart'>"
- + t("lima.ui.home.entrybooks.modify") + "</a>";
+ + t("lima.home.entryBooks.modify") + "</a>";
} else {
- entryBooksString = t("lima.ui.home.entrybooks.state1_2.plural")
- + " " + entryBooks.size() + " "
- + t("lima.ui.home.entrybooks.state2_2.plural") + "<ul>";
+ entryBooksString = t("lima.home.entryBooks.info", ebSize) + "<ul>";
for (int i = 0; i < ebSize && i < 3; i++) {
// for (EntryBook entryBook : entryBooks) {
EntryBook entryBook = entryBooks.get(i);
@@ -111,7 +109,7 @@
}
entryBooksString += "</ul></p><p horizontal-align:'center'>"
+ "<a href='#entrybookschart'>"
- + t("lima.ui.home.entrybooks.modify") + "</a>";
+ + t("lima.home.entryBooks.modify") + "</a>";
}
//set Text
setText(htmlBegin + entryBooksString + htmlEnd);
@@ -119,9 +117,9 @@
setBackground(RED_BACKGROUND);
//set Text
setText(htmlBegin
- + t("lima.ui.home.entrybooks.nothing")
+ + t("lima.home.entryBooks.nothing")
+ "<br/><br/><a href='#entrybookschart'>"
- + t("lima.ui.home.entrybooks.create") + "</a>" + htmlEnd);
+ + t("lima.home.entryBooks.create") + "</a>" + htmlEnd);
}
}
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransactionsPane.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransactionsPane.java 2014-07-30 09:17:32 UTC (rev 3874)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FinancialTransactionsPane.java 2014-07-30 15:38:53 UTC (rev 3875)
@@ -111,10 +111,9 @@
getAllInexactFinancialTransactions(unblockedFiscalPeriods.get(0));
if (financialTransactionsInexact.size() > 0) {
setBackground(RED_BACKGROUND);
- String transactionsString = financialTransactionsInexact.size()
- + " " + t("lima.ui.home.transaction.inexact")
+ String transactionsString = t("lima.home.entries.error", financialTransactionsInexact.size())
+ "<br/><br/><a href='#financialtransactionunbalanced'>"
- + t("lima.ui.home.transaction.modifiy.inexact") + "</a>";
+ + t("lima.home.entries.error.modify") + "</a>";
//set Text
setText(htmlBegin + transactionsString + htmlEnd);
} else {
@@ -123,16 +122,15 @@
if (financialTransactionsBal.size() > 0) {
setBackground(GREEN_BACKGROUND);
- String transactionsString = financialTransactionsBal.size()
- + " " + t("lima.ui.home.transaction.balanced")
+ String transactionsString = t("lima.home.entries.balanced", financialTransactionsBal.size())
+ "<br/><br/><a href='#financialtransactionbalanced'>"
- + t("lima.ui.home.transaction.modifiy.balanced") + "</a>";
+ + t("lima.home.entries.modify") + "</a>";
setText(htmlBegin + transactionsString + htmlEnd);
} else {
setBackground(RED_BACKGROUND);
- String transactionsString = t("lima.ui.home.transaction.nothing")
+ String transactionsString = t("lima.home.entries.nothing")
+ "<br/><br/><a href='#financialtransactionbalanced'>"
- + t("lima.ui.home.transaction.create") + "</a>";
+ + t("lima.home.entries.create") + "</a>";
setText(htmlBegin + transactionsString + htmlEnd);
}
Deleted: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.java 2014-07-30 09:17:32 UTC (rev 3874)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.java 2014-07-30 15:38:53 UTC (rev 3875)
@@ -1,136 +0,0 @@
-/*
- * #%L
- * Lima Swing
- *
- * $Id$
- * $HeadURL$
- * %%
- * Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
- * %%
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program. If not, see
- * <http://www.gnu.org/licenses/gpl-3.0.html>.
- * #L%
- */
-
-package org.chorem.lima.ui.home;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.LimaContext;
-import org.chorem.lima.business.ServiceListener;
-import org.chorem.lima.business.api.FiscalPeriodService;
-import org.chorem.lima.business.api.ImportService;
-import org.chorem.lima.entity.FiscalPeriod;
-import org.chorem.lima.service.LimaServiceFactory;
-import org.chorem.lima.ui.MainView;
-
-import javax.swing.event.HyperlinkEvent;
-import java.util.List;
-
-import static org.nuiton.i18n.I18n.t;
-
-/**
- * Panenl de la home view de lima qui affiche les statistiques de
- * l'exercice en cours.
- *
- * @author chatellier
- * @version $Revision$
- *
- * Last update : $Date$
- * By : $Author$
- */
-public class FiscalPeriodsPane extends AbstractHomePane implements ServiceListener {
-
- private static final long serialVersionUID = 1L;
-
- private static final Log log = LogFactory.getLog(FiscalPeriodsPane.class);
-
- protected FiscalPeriodService fiscalPeriodService;
-
- /**
- * Constructors (init services).
- *
- * @param view home view
- */
- public FiscalPeriodsPane(HomeView view) {
- super(view);
-
- fiscalPeriodService = LimaServiceFactory.getService(FiscalPeriodService.class);
- LimaServiceFactory.addServiceListener(FiscalPeriodService.class, this);
- LimaServiceFactory.addServiceListener(ImportService.class, this);
-
- refresh();
- }
-
- @Override
- public void hyperlinkUpdate(HyperlinkEvent e) {
- if (HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType())) {
- if (e.getDescription().equals("#fiscalperiodschart")) {
- MainView ui = LimaContext.MAIN_UI_ENTRY_DEF.getContextValue(view);
- ui.getHandler().showFiscalPeriodView(ui);
- }
- }
- }
-
- public void refresh() {
-
- log.debug("Rafraîchissement fiscal periods pane");
-
- String htmlBegin = "<font face='sans-serif' size=3>"
- + "<p style=vertical-align:'bottom', horizontal-align:'center'>";
- String htmlEnd = "</p></font>";
-
- //FISCAL PERIOD
- List<FiscalPeriod> fiscalPeriods =
- fiscalPeriodService.getAllFiscalPeriods();
- List<FiscalPeriod> unblockedFiscalPeriods =
- fiscalPeriodService.getAllUnblockedFiscalPeriods();
- if (unblockedFiscalPeriods.size() > 0) {
- setBackground(GREEN_BACKGROUND);
- String fiscalString = unblockedFiscalPeriods.size() + " "
- + t("lima.ui.home.fiscalperiod.opened") + "<br/>"
- + (fiscalPeriods.size() - unblockedFiscalPeriods.size())
- + " " + t("lima.ui.home.fiscalperiod.closed")
- + "<br/><br/><a href='#fiscalperiodschart'>"
- + t("lima.ui.home.fiscalperiod.modify") + "</a>";
- //set Text
- setText(htmlBegin + fiscalString + htmlEnd);
-
-
- } else {
- setBackground(RED_BACKGROUND);
- String fiscalString = t("lima.ui.home.fiscalperiod.noopen");
- if (fiscalPeriods.size() > 0) {
- fiscalString += "<br/>" + fiscalPeriods.size() + " "
- + t("lima.ui.home.fiscalperiod.closed");
- }
- fiscalString += "<br/><br/><a href='#fiscalperiodschart'>"
- + t("lima.ui.home.fiscalperiod.create") + "</a>";
- //set Text
- setText(htmlBegin + fiscalString + htmlEnd);
-
- }
- }
-
- @Override
- public void notifyMethod(String serviceName, String methodeName) {
- log.debug("Nom de la méthode : " + methodeName);
- if (methodeName.contains("FiscalPeriod") ||
- methodeName.contains("importAll") ||
- methodeName.contains("importAs")) {
- refresh();
- }
- }
-
-}
Copied: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalYearsPane.java (from rev 3874, trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalPeriodsPane.java)
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalYearsPane.java (rev 0)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/FiscalYearsPane.java 2014-07-30 15:38:53 UTC (rev 3875)
@@ -0,0 +1,133 @@
+/*
+ * #%L
+ * Lima Swing
+ *
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2008 - 2012 CodeLutin, Chatellier Eric
+ * %%
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+package org.chorem.lima.ui.home;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.chorem.lima.LimaContext;
+import org.chorem.lima.business.ServiceListener;
+import org.chorem.lima.business.api.FiscalPeriodService;
+import org.chorem.lima.business.api.ImportService;
+import org.chorem.lima.entity.FiscalPeriod;
+import org.chorem.lima.service.LimaServiceFactory;
+import org.chorem.lima.ui.MainView;
+
+import javax.swing.event.HyperlinkEvent;
+import java.util.List;
+
+import static org.nuiton.i18n.I18n.t;
+
+/**
+ * Panenl de la home view de lima qui affiche les statistiques de
+ * l'exercice en cours.
+ *
+ * @author chatellier
+ * @version $Revision$
+ *
+ * Last update : $Date$
+ * By : $Author$
+ */
+public class FiscalYearsPane extends AbstractHomePane implements ServiceListener {
+
+ private static final long serialVersionUID = 1L;
+
+ private static final Log log = LogFactory.getLog(FiscalYearsPane.class);
+
+ protected FiscalPeriodService fiscalPeriodService;
+
+ /**
+ * Constructors (init services).
+ *
+ * @param view home view
+ */
+ public FiscalYearsPane(HomeView view) {
+ super(view);
+
+ fiscalPeriodService = LimaServiceFactory.getService(FiscalPeriodService.class);
+ LimaServiceFactory.addServiceListener(FiscalPeriodService.class, this);
+ LimaServiceFactory.addServiceListener(ImportService.class, this);
+
+ refresh();
+ }
+
+ @Override
+ public void hyperlinkUpdate(HyperlinkEvent e) {
+ if (HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType())) {
+ if (e.getDescription().equals("#fiscalperiodschart")) {
+ MainView ui = LimaContext.MAIN_UI_ENTRY_DEF.getContextValue(view);
+ ui.getHandler().showFiscalPeriodView(ui);
+ }
+ }
+ }
+
+ public void refresh() {
+
+ log.debug("Rafraîchissement fiscal periods pane");
+
+ String htmlBegin = "<font face='sans-serif' size=3>"
+ + "<p style=vertical-align:'bottom', horizontal-align:'center'>";
+ String htmlEnd = "</p></font>";
+
+ //FISCAL PERIOD
+ List<FiscalPeriod> fiscalPeriods =
+ fiscalPeriodService.getAllFiscalPeriods();
+ List<FiscalPeriod> unblockedFiscalPeriods =
+ fiscalPeriodService.getAllUnblockedFiscalPeriods();
+ if (unblockedFiscalPeriods.size() > 0) {
+ setBackground(GREEN_BACKGROUND);
+ String fiscalString = t("lima.home.fiscalYears.opened", unblockedFiscalPeriods.size()) + "<br/>"
+ + t("lima.home.fiscalYears.closed", fiscalPeriods.size() - unblockedFiscalPeriods.size())
+ + "<br/><br/><a href='#fiscalperiodschart'>"
+ + t("lima.home.fiscalYears.modify") + "</a>";
+ //set Text
+ setText(htmlBegin + fiscalString + htmlEnd);
+
+
+ } else {
+ setBackground(RED_BACKGROUND);
+ String fiscalString = t("lima.home.fiscalYears.noOpen");
+ if (fiscalPeriods.size() > 0) {
+ fiscalString += "<br/>" + t("lima.home.fiscalYears.closed", fiscalPeriods.size());
+ }
+ fiscalString += "<br/><br/><a href='#fiscalperiodschart'>"
+ + t("lima.home.fiscalYears.create") + "</a>";
+ //set Text
+ setText(htmlBegin + fiscalString + htmlEnd);
+
+ }
+ }
+
+ @Override
+ public void notifyMethod(String serviceName, String methodeName) {
+ log.debug("Nom de la méthode : " + methodeName);
+ if (methodeName.contains("FiscalPeriod") ||
+ methodeName.contains("importAll") ||
+ methodeName.contains("importAs")) {
+ refresh();
+ }
+ }
+
+}
Added: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/HomeView.css
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/HomeView.css (rev 0)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/HomeView.css 2014-07-30 15:38:53 UTC (rev 3875)
@@ -0,0 +1,49 @@
+
+
+.infoPanel {
+ border : {BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)};
+ minimumSize : {new Dimension(300,150)};
+ preferredSize : {new Dimension(500,220)};
+}
+
+#accountsIcon {
+ icon : "accounts.png";
+}
+
+#entryBooksIcon {
+ icon : "entryBooks.png";
+}
+
+#fiscalYearsIcon {
+ icon : "fiscalYears.png";
+}
+
+#entriesIcon {
+ icon : "entries.png";
+}
+
+.icon {
+ minimumSize : {new Dimension(48,48)};
+ preferredSize : {new Dimension(48,48)};
+}
+
+#accountsLabel {
+ text : "lima.home.accounts";
+}
+
+#entryBooksLabel {
+ text : "lima.home.entryBooks";
+}
+
+#fiscalYearsLabel {
+ text : "lima.home.fiscalYears";
+}
+
+#entriesLabel {
+ text : "lima.home.entries";
+}
+
+.title {
+ foreground : {Color.DARK_GRAY};
+ font : {new Font("sans-serif", Font.BOLD, 16)};
+}
\ No newline at end of file
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/HomeView.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/HomeView.jaxx 2014-07-30 09:17:32 UTC (rev 3874)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/home/HomeView.jaxx 2014-07-30 15:38:53 UTC (rev 3875)
@@ -26,31 +26,26 @@
<import>
java.awt.Color
java.awt.Font
+ java.awt.Dimension
javax.swing.BoxLayout
javax.swing.border.EtchedBorder
jaxx.runtime.SwingUtil
- static org.nuiton.i18n.I18n.t
</import>
- <Dimension id="fixedSize" javaBean='new Dimension(500,200)'/>
- <Dimension id="miniSize" javaBean='new Dimension(300,150)'/>
-
<row>
<cell anchor="southeast">
<JPanel id='accountPanel'
- border='{BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)}'
- minimumSize='{getMiniSize()}'
- preferredSize='{getFixedSize()}'
- layout='{new BoxLayout(accountPanel, BoxLayout.X_AXIS)}'>
+ styleClass="infoPanel"
+ layout='{new BoxLayout(accountPanel, BoxLayout.X_AXIS)}'>
<Table>
<row>
<cell weightx="0" weighty="0.1" anchor="northwest">
- <JLabel icon='accounts.png'/>
+ <JLabel id="accountsIcon"
+ styleClass="icon"/>
</cell>
<cell weightx="1" weighty="0.1" anchor="center">
- <JLabel foreground='{Color.DARK_GRAY}'
- font='{new Font("sans-serif", Font.BOLD, 16)}'
- text='lima.ui.home.account'/>
+ <JLabel id="accountsLabel"
+ styleClass="title"/>
</cell>
</row>
<row fill="both">
@@ -63,19 +58,17 @@
</cell>
<cell anchor="southwest">
<JPanel id='entryBookPanel'
- border='{BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)}'
- minimumSize='{getMiniSize()}'
- preferredSize='{getFixedSize()}'
- layout='{new BoxLayout(entryBookPanel, BoxLayout.X_AXIS)}'>
+ styleClass="infoPanel"
+ layout='{new BoxLayout(entryBookPanel, BoxLayout.X_AXIS)}'>
<Table>
<row>
<cell weightx="0" weighty="0.1" anchor="northwest">
- <JLabel icon='entrybooks.png'/>
+ <JLabel id="entryBooksIcon"
+ styleClass="icon"/>
</cell>
<cell weightx="1" weighty="0.1" anchor="center">
- <JLabel foreground='{Color.DARK_GRAY}'
- font='{new Font("sans-serif", Font.BOLD, 16)}'
- text='lima.ui.home.entrybooks'/>
+ <JLabel id="entryBooksLabel"
+ styleClass="title"/>
</cell>
</row>
<row fill="both">
@@ -89,25 +82,23 @@
</row>
<row>
<cell anchor="northeast">
- <JPanel id='fiscalPeriodPanel'
- border='{BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)}'
- minimumSize='{getMiniSize()}'
- preferredSize='{getFixedSize()}'
- layout='{new BoxLayout(fiscalPeriodPanel, BoxLayout.X_AXIS)}'>
+ <JPanel id='fiscalYearsPanel'
+ styleClass="infoPanel"
+ layout='{new BoxLayout(fiscalYearsPanel, BoxLayout.X_AXIS)}'>
<Table>
<row>
<cell weightx="0" weighty="0.1" anchor="northwest">
- <JLabel icon='fiscalperiods.png'/>
+ <JLabel id="fiscalYearsIcon"
+ styleClass="icon"/>
</cell>
<cell weightx="1" weighty="0.1" anchor="center">
- <JLabel foreground='{Color.DARK_GRAY}'
- font='{new Font("sans-serif", Font.BOLD, 16)}'
- text='lima.ui.home.fiscalyear'/>
+ <JLabel id="fiscalYearsLabel"
+ styleClass="title"/>
</cell>
</row>
<row fill="both">
<cell columns="2" weightx="1" weighty="0.9">
- <JEditorPane initializer='new FiscalPeriodsPane(this)'/>
+ <JEditorPane initializer='new FiscalYearsPane(this)'/>
</cell>
</row>
</Table>
@@ -115,19 +106,17 @@
</cell>
<cell anchor="northwest">
<JPanel id='financialTransactionPanel'
- border='{BorderFactory.createEtchedBorder(EtchedBorder.LOWERED)}'
- minimumSize='{getMiniSize()}'
- preferredSize='{getFixedSize()}'
- layout='{new BoxLayout(financialTransactionPanel, BoxLayout.X_AXIS)}'>
+ styleClass="infoPanel"
+ layout='{new BoxLayout(financialTransactionPanel, BoxLayout.X_AXIS)}'>
<Table>
<row>
<cell weightx="0" weighty="0.1" anchor="northwest">
- <JLabel icon='entries.png'/>
+ <JLabel id="entriesIcon"
+ styleClass="icon"/>
</cell>
<cell weightx="1" weighty="0.1" anchor="center">
- <JLabel foreground='{Color.DARK_GRAY}'
- font='{new Font("sans-serif", Font.BOLD, 16)}'
- text='lima.ui.home.daily'/>
+ <JLabel id="entriesLabel"
+ styleClass="title"/>
</cell>
</row>
<row fill="both">
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningView.jaxx
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningView.jaxx 2014-07-30 09:17:32 UTC (rev 3874)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/opening/OpeningView.jaxx 2014-07-30 15:38:53 UTC (rev 3875)
@@ -68,12 +68,12 @@
</row>
<row>
<cell>
- <JLabel id='entrybooksIcon' icon='entrybooks.png'/>
+ <JLabel id='entrybooksIcon' icon='entryBooks.png'/>
</cell>
</row>
<row>
<cell>
- <JLabel id='fiscalperiodsIcon' icon='fiscalperiods.png'/>
+ <JLabel id='fiscalperiodsIcon' icon='fiscalYears.png'/>
</cell>
</row>
</Table>
Modified: trunk/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties
===================================================================
--- trunk/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties 2014-07-30 09:17:32 UTC (rev 3874)
+++ trunk/lima-swing/src/main/resources/i18n/lima-swing_en_GB.properties 2014-07-30 15:38:53 UTC (rev 3875)
@@ -13,6 +13,8 @@
lima.Filter.letter=
lima.Filter.voucher=
lima.about.translate.content=<h3>How to translate Lima</h3>You can help us to translate or improve label in Lima.<br/><ul><li>Get the <strong>lima-i18n.csv</strong> file in the <strong>i18n</strong> directory</li><li>open it in Libre office (separator caracter is <strong>Tab</strong>)</li><li>Do you work \:)</li><li>At last, send us back the modified file</li></ul><br/>We will apply the patch before next release.
+lima.accounts=
+lima.accounts.plan=
lima.accountsreports.listerror=Can't get entries list
lima.action.commandline.help=Show help in console
lima.balance.documentcreationerror=Enable to create document
@@ -179,6 +181,7 @@
lima.data.bigDecimal.decimalSeparator=
lima.data.bigDecimal.scale=
lima.documents=Documents…
+lima.enterEntries=
lima.entries=Entries
lima.entries.addEntry=New entry
lima.entries.addTransaction=New transaction
@@ -186,6 +189,7 @@
lima.entries.balance=Balance transaction with this entry
lima.entries.copy.entry=Copy entry
lima.entries.copy.transaction=Copy transaction
+lima.entries.enter=
lima.entries.lettering=Lettering
lima.entries.lettering.add=Add letter
lima.entries.lettering.noletterselected=Error \: No selected letter
@@ -196,9 +200,12 @@
lima.entries.paste.transaction=Paste transaction
lima.entries.remove.entry=Delete entry
lima.entries.remove.transaction=Delete transaction
+lima.entries.search=
lima.entries.searchtransaction=Search transaction
lima.entries.searchunbalancedtransaction=Incorrect transactions
+lima.entries.unbalanced=
lima.entries.writetransaction=Write entries
+lima.entryBooks=
lima.entrybooksreports.documentcreationerror=Enable to create document
lima.entrybooksreports.documentcreationfiscalerror=Can't create document on an open fiscal year
lima.entrybooksreports.documentcreationfiscaltitle=
@@ -223,6 +230,7 @@
lima.enum.comboboxperiod.period=Period
lima.enum.list.entryBook=
lima.error.errorpane.htmlmessage=<html><body><b>An application error happened</b>\:<br/>%s</body></html>
+lima.file=
lima.filer.condition.sensitive.case=
lima.filer.condition.string=
lima.filter.account=
@@ -242,6 +250,8 @@
lima.filter.entrybook=
lima.filter.letter=
lima.filter.voucher=
+lima.financialPeriods=
+lima.financialStatements=
lima.financialStatements.check=
lima.financialStatements.check.nothing=
lima.financialStatements.check.warn=
@@ -258,8 +268,69 @@
lima.financialstatement.provisiondeprecationaccounts=Provisions and deprecations accounts list
lima.financialstatement.subamount=Calculate a subamount
lima.financialstatementreport.listerror=Can't get entries list
+lima.fiscalYears=
lima.fiscalperiod.unbalancedtransactions=Fiscal Period has unbalanced transactions
-lima.home.entrybooks.create=Create entrybook
+lima.help=
+lima.help.about=
+lima.help.about.title=About Lima...
+lima.help.about.title.description=Open sources accounting software
+lima.help.about.translate.content=<h3>How to translate Lima</h3>You can help us to translate or improve label in Lima.<br/><ul><li>Get the <strong>lima-i18n.csv</strong> file in the <strong>i18n</strong> directory</li><li>open it in Libre office (separator caracter is <strong>Tab</strong>)</li><li>Do you work \:)</li><li>At last, send us back the modified file</li></ul><br/>We will apply the patch before next release.
+lima.help.about.translate.title=Translate Lima
+lima.help.i18n=
+lima.help.i18n.fr=
+lima.help.i18n.uk=
+lima.help.site=
+lima.home=Home
+lima.home.account=Chart of accounts
+lima.home.accounts=
+lima.home.accounts.create=
+lima.home.accounts.info=
+lima.home.accounts.modify=
+lima.home.accounts.nothing=
+lima.home.chartaccounts.create=Create the chart of accounts
+lima.home.chartaccounts.modify=Edit the chart of accounts
+lima.home.chartaccounts.nothing=No account set\!
+lima.home.chartaccounts.state1_2=The chart of accounts has
+lima.home.chartaccounts.state2_2=accounts
+lima.home.daily=Daily tasks
+lima.home.entries=
+lima.home.entries.balanced=
+lima.home.entries.create=
+lima.home.entries.error=
+lima.home.entries.error.modify=
+lima.home.entries.modify=
+lima.home.entries.nothing=
+lima.home.entryBooks=
+lima.home.entryBooks.create=
+lima.home.entryBooks.info=
+lima.home.entryBooks.info.one=
+lima.home.entryBooks.modify=
+lima.home.entryBooks.nothing=
+lima.home.entrybooks=Books
+lima.home.entrybooks.create=Create entry book
+lima.home.entrybooks.modify=Edit books
+lima.home.entrybooks.nothing=No book
+lima.home.entrybooks.state.single=The book is\:
+lima.home.entrybooks.state1_2.plural=The
+lima.home.entrybooks.state2_2.plural=books are\:
+lima.home.fiscalYears=
+lima.home.fiscalYears.closed=
+lima.home.fiscalYears.create=
+lima.home.fiscalYears.modify=
+lima.home.fiscalYears.noOpen=
+lima.home.fiscalYears.opened=
+lima.home.fiscalperiod.closed=
+lima.home.fiscalperiod.create=
+lima.home.fiscalperiod.modify=
+lima.home.fiscalperiod.noopen=
+lima.home.fiscalperiod.opened=
+lima.home.fiscalyear=Fiscal year
+lima.home.transaction.balanced=moves, all balanced
+lima.home.transaction.create=Add moves
+lima.home.transaction.inexact=moves are not valid\!
+lima.home.transaction.modifiy.balanced=Edit moves
+lima.home.transaction.modifiy.inexact=Edit incorrect moves
+lima.home.transaction.nothing=No move
lima.identity=Identity
lima.identity.address=Address
lima.identity.address2=Address (next)
@@ -272,6 +343,11 @@
lima.identity.phoneNumber=Phone number
lima.identity.vatNumber=VAT number
lima.identity.zipCode=Zip code
+lima.importExport.all=
+lima.importExport.csv=
+lima.importExport.ebp=
+lima.importExport.export=
+lima.importExport.import=
lima.importexport.choiceencoding=
lima.importexport.export=
lima.importexport.export.terminated=
@@ -309,7 +385,6 @@
lima.splash.2="Loading accounting...
lima.splash.3=Ready \!
lima.structure=Structure
-lima.tab.home=Home
lima.table.account=Account
lima.table.balance=Balance
lima.table.credit=Credit
@@ -332,12 +407,10 @@
lima.table.sum=Sums
lima.table.voucher=Voucher
lima.thousandSeparator=
-lima.title.about=About Lima...
-lima.title.about.description=Open sources accounting software
-lima.title.about.translate=Translate Lima
lima.tooltip.Filter=
lima.tooltip.filter=<html>Regular expression \:<br/>- accounts interval i..j <br/>- accounts list i,j,k <br/>- Exclude an account -i</html>
lima.tooltip.lettering=<html>Add a letter on many entries <br/>Select many rows with combination ctrl + click</html>
+lima.ui.account=
lima.ui.account.add.error.InvalidAccountNumber=
lima.ui.account.add.error.alreadyExist=
lima.ui.account.addaccount=
@@ -355,6 +428,7 @@
lima.ui.account.shortened=
lima.ui.account.update.error.invalidAccountNumber=
lima.ui.account.updateaccounttitle=
+lima.ui.accounts=
lima.ui.common.amountcredit=
lima.ui.common.amountdebit=
lima.ui.common.cancel=Cancel
@@ -364,8 +438,10 @@
lima.ui.common.remove=Remove
lima.ui.common.solde=
lima.ui.common.update=Update
+lima.ui.entries=
lima.ui.entries.assign.closed.entryBook.error=
lima.ui.entries.letter.closed.entryBook.error=
+lima.ui.entries.letter.unbalanced.error=
lima.ui.entry.add.error.afterLastFiscalPeriod=
lima.ui.entry.add.error.beforeFirstFiscalPeriod=
lima.ui.entry.add.error.lockedEntryBook=
@@ -377,6 +453,7 @@
lima.ui.entry.paste.error.lockedFinancialPeriod=
lima.ui.entry.update.closed.entryBook.error=
lima.ui.entryBook.delete.used.error=Can't delete entry book %2$s (%1$s) because exist financcial transactions in this entry book.
+lima.ui.entryBooks=
lima.ui.entrybook.add=
lima.ui.entrybook.code=
lima.ui.entrybook.default=
@@ -388,6 +465,8 @@
lima.ui.entrybook.label=
lima.ui.entrybook.remove=
lima.ui.entrybook.update=
+lima.ui.financialPeriods=
+lima.ui.financialStatements=
lima.ui.financialTransaction.add.error.afterLastFiscalPeriod=
lima.ui.financialTransaction.add.error.beforeFirstFiscalPeriod=
lima.ui.financialTransaction.add.error.lockedEntryBook=
@@ -460,6 +539,7 @@
lima.ui.fiscalPeriod.buttonback=
lima.ui.fiscalPeriod.buttonnext=
lima.ui.fiscalPeriod.delete.error.noEmptyFiscalPeriod=
+lima.ui.fiscalYears=
lima.ui.fiscalperiod.addfiscalperiod.addfiscalperiodtitle=
lima.ui.fiscalperiod.addfiscalperiod.endAfterBegin=
lima.ui.fiscalperiod.addfiscalperiod.morethan12=
@@ -489,32 +569,13 @@
lima.ui.fiscalperiod.open=
lima.ui.fiscalperiod.status=
lima.ui.fullscreen=
-lima.ui.home.account=Chart of accounts
-lima.ui.home.chartaccounts.create=Create the chart of accounts
-lima.ui.home.chartaccounts.modify=Edit the chart of accounts
-lima.ui.home.chartaccounts.nothing=No account set\!
-lima.ui.home.chartaccounts.state1_2=The chart of accounts has
-lima.ui.home.chartaccounts.state2_2=accounts
-lima.ui.home.daily=Daily tasks
-lima.ui.home.entrybooks=Books
-lima.ui.home.entrybooks.create=Create books
-lima.ui.home.entrybooks.modify=Edit books
-lima.ui.home.entrybooks.nothing=No book
-lima.ui.home.entrybooks.state.single=The book is\:
-lima.ui.home.entrybooks.state1_2.plural=The
-lima.ui.home.entrybooks.state2_2.plural=books are\:
-lima.ui.home.fiscalperiod.closed=
-lima.ui.home.fiscalperiod.create=
-lima.ui.home.fiscalperiod.modify=
-lima.ui.home.fiscalperiod.noopen=
-lima.ui.home.fiscalperiod.opened=
-lima.ui.home.fiscalyear=Fiscal year
-lima.ui.home.transaction.balanced=moves, all balanced
-lima.ui.home.transaction.create=Add moves
-lima.ui.home.transaction.inexact=moves are not valid\!
-lima.ui.home.transaction.modifiy.balanced=Edit moves
-lima.ui.home.transaction.modifiy.inexact=Edit incorrect moves
-lima.ui.home.transaction.nothing=No move
+lima.ui.home.entryBooks.info=
+lima.ui.home.entryBooks.info.one=
+lima.ui.importExport.all=
+lima.ui.importExport.csv=
+lima.ui.importExport.ebp=
+lima.ui.importExport.export=
+lima.ui.importExport.import=
lima.ui.importexport.accountcharts=Accounts chart
lima.ui.importexport.all=All
lima.ui.importexport.csv=Import/Export CSV
@@ -575,6 +636,8 @@
lima.ui.table.cell.colorSelectionFocus=
lima.ui.table.cell.comportmentEditingCell=
lima.ui.table.cell.selectAllEditingCell=
+lima.ui.vatStatements=
+lima.vatStatements=
lima.vatreport.listerror=Can't get entries list
lima.vatstatement.accounts=List of accounts
lima.vatstatement.boxname=PDF BoxName
Modified: trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties
===================================================================
--- trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties 2014-07-30 09:17:32 UTC (rev 3874)
+++ trunk/lima-swing/src/main/resources/i18n/lima-swing_fr_FR.properties 2014-07-30 15:38:53 UTC (rev 3875)
@@ -2,7 +2,8 @@
-=
lima-business.document.entrybooks=
lima-business.document.generalentrybook=
-lima.about.translate.content=<h2>Comment traduire Lima</h2>Vous pouvez nous aider à traduire Lima.<hr/><br/><ul><li>Récupérer le fichier <strong>lima-i18n.csv</strong> dans le répertoire <strong>i18n</strong></li><li>ouvrez le avec un tableur (le caractère séprateur est une Tabultation)</li><li>Traduisez, Améliorer, ...</li><li>Enfin renvoyez-le nous</li></ul><br/>Nous intégrerons vos modifications avant la prochaine version.
+lima.accounts=Comptes
+lima.accounts.plan=Plan comptable
lima.accountsreports.listerror=Erreur lors de la récupération des données de la liste
lima.action.commandline.help=Afficher l'aide en console
lima.balance.documentcreationerror=Erreur lors de la création du document
@@ -161,13 +162,15 @@
lima.config.ui.fullscreen.description=demarrer l'application en mode plein écran
lima.config.ui.fullscreen.label=Plein écran
lima.documents=Documents…
-lima.entries=Traitement
+lima.enterEntries=Écritures
+lima.entries=Écritures
lima.entries.addEntry=Créer une entrée dans la transaction
lima.entries.addTransaction=Créer une transaction
lima.entries.assign.entries=Assigner cette valeur à toutes les entrées de la transaction
lima.entries.balance=Équilibrer la transaction avec cette entrée
lima.entries.copy.entry=Copier l'entrée
lima.entries.copy.transaction=Copier la transaction
+lima.entries.enter=Saisie des écritures
lima.entries.lettering=Lettrage
lima.entries.lettering.add=Ajouter une lettre
lima.entries.lettering.noletterselected=Erreur \: Aucune lettre sélectionnée.
@@ -178,9 +181,12 @@
lima.entries.paste.transaction=Coller la transaction
lima.entries.remove.entry=Supprimer l'entrée
lima.entries.remove.transaction=Supprimer la transaction
-lima.entries.searchtransaction=Rechercher des écritures
-lima.entries.searchunbalancedtransaction=Entrées incorrectes
-lima.entries.writetransaction=Saisir des écritures
+lima.entries.search=Rechercher des écritures
+lima.entries.searchtransaction=
+lima.entries.searchunbalancedtransaction=
+lima.entries.unbalanced=Entrées incorrectes
+lima.entries.writetransaction=
+lima.entryBooks=Journaux
lima.entrybooksreports.documentcreationerror=Erreur lors de la création du document
lima.entrybooksreports.documentcreationfiscalerror=Impossible de créer un document quand la période fiscale est ouverte
lima.entrybooksreports.documentcreationfiscaltitle=
@@ -208,6 +214,7 @@
lima.enum.list.fiscalperiod=Exercices
lima.enum.list.period=Périodes
lima.error.errorpane.htmlmessage=<html><body><b>Une erreur s'est produite</b>\:<br/>%s</body></html>
+lima.file=Fichier
lima.filer.condition.sensitive.case=sensible à la case
lima.filter.account=Ajouter un filtre sur les comptes
lima.filter.amount=Ajouter un filtre sur les montants
@@ -226,12 +233,14 @@
lima.filter.entrybook=Ajouter un filtre sur les journaux
lima.filter.letter=Ajouter un filtre sur les lettres
lima.filter.voucher=Ajouter un filtre sur les pièces comptables
-lima.financialStatements.check=
-lima.financialStatements.check.nothing=
-lima.financialStatements.check.warn=
+lima.financialPeriods=Périodes comptables
+lima.financialStatements=Plan BCR
+lima.financialStatements.check=Vérification des comptes aux postes
+lima.financialStatements.check.nothing=Introuvable \: %s - %s \n
+lima.financialStatements.check.warn=Attention cette fonctionnalité n'est qu'une aide utilisateur.\n Certains comptes ne doivent pas être présent au bilan et compte de résultat.\n Il est donc normal que des comptes sont marqués comme introuvable.\n\n
lima.financialstatement.accounts=Liste de comptes au crédit et au débit
lima.financialstatement.addfinancialStatementHeadererror=Erreur lors de l'ajout de l'entête sur la déclaration financière
-lima.financialstatement.check=Vérification des comptes aux postes
+lima.financialstatement.check=
lima.financialstatement.creditaccounts=Liste de comptes au crédit
lima.financialstatement.debitaccounts=Liste de comptes au débit
lima.financialstatement.delete=Supprimer le plan BCR actuel avant d'importer
@@ -242,7 +251,44 @@
lima.financialstatement.provisiondeprecationaccounts=Liste de comptes d'amortissement et provisions
lima.financialstatement.subamount=Calculer un sous-total
lima.financialstatementreport.listerror=Erreur lors de la récupération des données de la liste
+lima.fiscalYears=Exercices
lima.fiscalperiod.unbalancedtransactions=La période fiscale contient des transactions non équilibrées
+lima.help=Aide
+lima.help.about=À Propos
+lima.help.about.title=À propos de Lima...
+lima.help.about.title.description=Logiciel de comptabilité Libre
+lima.help.about.translate.content=<h2>Comment traduire Lima</h2>Vous pouvez nous aider à traduire Lima.<hr/><br/><ul><li>Récupérer le fichier <strong>lima-i18n.csv</strong> dans le répertoire <strong>i18n</strong></li><li>ouvrez le avec un tableur (le caractère séprateur est une Tabultation)</li><li>Traduisez, Améliorer, ...</li><li>Enfin renvoyez-le nous</li></ul><br/>Nous intégrerons vos modifications avant la prochaine version.
+lima.help.about.translate.title=traduire Lima
+lima.help.i18n=Langue
+lima.help.i18n.fr=Français
+lima.help.i18n.uk=Anglais
+lima.help.site=Accéder au site de Lima
+lima.home=Accueil
+lima.home.accounts=Plan comptable
+lima.home.accounts.create=Créer le plan des comptes
+lima.home.accounts.info=Le plan comptable possede %s comptes
+lima.home.accounts.modify=Modifier le plan des comptes
+lima.home.accounts.nothing=Aucun compte \!
+lima.home.entries=Écritures
+lima.home.entries.balanced=%s écritures, toutes sont équilibrées
+lima.home.entries.create=Ajouter des écritures
+lima.home.entries.error=%s transactions ne sont pas valides \!
+lima.home.entries.error.modify=Modifier les écritures incorrectes
+lima.home.entries.modify=Modifier les écritures
+lima.home.entries.nothing=Aucune écriture
+lima.home.entryBooks=Journaux
+lima.home.entryBooks.create=Créer les journaux
+lima.home.entryBooks.info=Les %s journaux \:
+lima.home.entryBooks.info.one=Le journal \:
+lima.home.entryBooks.modify=Modifier les journaux
+lima.home.entryBooks.nothing=Aucun journal ouvert \!
+lima.home.entrybooks=Journaux
+lima.home.fiscalYears=Exercices
+lima.home.fiscalYears.closed=%s exercices cloturés
+lima.home.fiscalYears.create=Créer un exercice
+lima.home.fiscalYears.modify=Modifier les exercices
+lima.home.fiscalYears.noOpen=Aucun exercice ouvert \!
+lima.home.fiscalYears.opened=%s exercices ouverts
lima.identity=Identité
lima.identity.address=Adresse
lima.identity.address2=Adresse (suite)
@@ -255,23 +301,20 @@
lima.identity.phoneNumber=n° Tel
lima.identity.vatNumber=n° TVA
lima.identity.zipCode=Code Postal
+lima.importExport.all=Tout
+lima.importExport.csv=Import/Export CSV
+lima.importExport.ebp=Import/Export EBP
+lima.importExport.export=Exporter
+lima.importExport.import=Importer
lima.importexport.choiceencoding=Choix de l'encodage
lima.importexport.export=
lima.importexport.export.terminated=
-lima.importexport.import.alreadyExistFinancialStatement=Une catégorie avec comme nom %s et comme parent %s existe déjà.
+lima.importexport.import.alreadyExistFinancialStatement=
lima.importexport.usevatpdf=Êtes-vous sûr de vouloir utiliser ce pdf pour la déclaration de TVA ?
lima.init.closed=Lima fermé à %1$s
lima.init.errorclosing=Erreur lors de la fermeture
lima.ledger.documentcreationerror=Erreur lors de la création du document
lima.lettering.listerror=Erreur lors de la récupération des données de la liste
-lima.menu.file=Fichier
-lima.menu.help=Aide
-lima.menu.help.about=À Propos
-lima.menu.help.i18n=Langue
-lima.menu.help.i18n.fr=Français
-lima.menu.help.i18n.uk=Anglais
-lima.menu.help.site=Accéder au site de Lima
-lima.menu.window=Fenêtre
lima.message.help.usage=Options (set with --option <key> <value>\:
lima.misc.supportemail.description=Adresse email de support
lima.misc.supportemail.label=support
@@ -292,7 +335,6 @@
lima.splash.2=Chargement de la comptabilité
lima.splash.3=Application prête \!
lima.structure=Structure
-lima.tab.home=Accueil
lima.table.account=Compte
lima.table.balance=Solde
lima.table.credit=Crédit
@@ -314,9 +356,6 @@
lima.table.solde.debit=Solde débit
lima.table.sum=Totaux
lima.table.voucher=Pièce comptable
-lima.title.about=À propos de Lima...
-lima.title.about.description=Logiciel de comptabilité Libre
-lima.title.about.translate=traduire Lima
lima.tooltip.Filter=
lima.tooltip.filter=<html>Expression régulière \:<br/>- intervalle de compte i..j <br/>- liste de compte i,j,k <br/>- Exclure un compte -i</html>
lima.tooltip.lettering=<html>Pour ajouter une lettre à plusieurs écritures <br/>Sélectionner plusieurs lignes avec la combinaison ctrl + click</html>
@@ -348,6 +387,7 @@
lima.ui.common.update=Modifier
lima.ui.entries.assign.closed.entryBook.error=Impossible d'affecter cette valeur a l'ensemble des entrés de la transaction car le jounal %2$s (%1$s) est cloturé pour la période du %3$te %3$tB %3$tY au %4$te %4$tB %4$tY.
lima.ui.entries.letter.closed.entryBook.error=Impossible de modifier le lettrage des ces entrés car le jounal %2$s (%1$s) est cloturé pour la période du %3$te %3$tB %3$tY au %4$te %4$tB %4$tY.
+lima.ui.entries.letter.unbalanced.error=Impossible de lettrer ces écritures car leur solde n'est pas nul.
lima.ui.entry.add.error.afterLastFiscalPeriod=Impossible d'ajouter une entré car la date de la transaction est après le %1$te %1$tB %1$tY fin du dernier exercice.
lima.ui.entry.add.error.beforeFirstFiscalPeriod=Impossible d'ajouter une entré car la date de la transaction est avant le %1$te %1$tB %1$tY début du premier exercice.
lima.ui.entry.add.error.lockedEntryBook=Impossible d'ajouter une entré car le jounal %2$s (%1$s) est cloturé pour la période du %3$te %3$tB %3$tY au %4$te %4$tB %4$tY.
@@ -457,43 +497,10 @@
lima.ui.fiscalperiod.modifyfiscalperiodtitle=Modification de l'exercice
lima.ui.fiscalperiod.open=Ouvert
lima.ui.fiscalperiod.status=Statut
-lima.ui.home.account=Plan comptable
-lima.ui.home.chartaccounts.create=Créer le plan des comptes
-lima.ui.home.chartaccounts.modify=Modifier le plan des comptes
-lima.ui.home.chartaccounts.nothing=Aucun compte \!
-lima.ui.home.chartaccounts.state1_2=Le plan comptable possede
-lima.ui.home.chartaccounts.state2_2=comptes
-lima.ui.home.daily=Quotidien
-lima.ui.home.entrybooks=Journaux
-lima.ui.home.entrybooks.create=Créer les journaux
-lima.ui.home.entrybooks.modify=Modifier les journaux
-lima.ui.home.entrybooks.nothing=Aucun journal ouvert \!
-lima.ui.home.entrybooks.state.single=Le journal est \:
-lima.ui.home.entrybooks.state1_2.plural=Les
-lima.ui.home.entrybooks.state2_2.plural=journaux sont \:
-lima.ui.home.fiscalperiod.closed=exercices cloturés
-lima.ui.home.fiscalperiod.create=Créer un exercice
-lima.ui.home.fiscalperiod.modify=Modifier les exercices
-lima.ui.home.fiscalperiod.noopen=Aucun exercice ouvert \!
-lima.ui.home.fiscalperiod.opened=exercices ouverts
-lima.ui.home.fiscalyear=Exercices
-lima.ui.home.transaction.balanced=écritures, toutes sont équilibrées
-lima.ui.home.transaction.create=Ajouter des écritures
-lima.ui.home.transaction.inexact=écritures ne sont pas valides \!
-lima.ui.home.transaction.modifiy.balanced=Modifier les écritures
-lima.ui.home.transaction.modifiy.inexact=Modifier les écritures incorrectes
-lima.ui.home.transaction.nothing=Aucune écriture
-lima.ui.importexport.accountcharts=Plan des comptes
-lima.ui.importexport.all=Tout
-lima.ui.importexport.csv=Import/Export CSV
lima.ui.importexport.defaultentrybooks=Journaux par défaut
-lima.ui.importexport.ebp=Import/Export EBP
-lima.ui.importexport.entries=Écritures
lima.ui.importexport.entrybooks=Journaux
lima.ui.importexport.export=Exporter
lima.ui.importexport.export.terminated=Export terminé
-lima.ui.importexport.financialstatements=Plan BCR
-lima.ui.importexport.financialtransactions=Écritures
lima.ui.importexport.import=Importer
lima.ui.importexport.import.terminated=Import terminé
lima.ui.importexport.import.vatpdfimport=Le PDF a bien été importé dans le répertoire des ressources de Lima
@@ -501,7 +508,6 @@
lima.ui.importexport.importebp=Import/Export EBP
lima.ui.importexport.importerror=Une erreur est survenue lors de l'import
lima.ui.importexport.importtitle=Erreur d'import
-lima.ui.importexport.vatstatements=Plan TVA
lima.ui.importexport.wait=Traitement en cours…
lima.ui.importexport.waittitle=Traitement en cours
lima.ui.lettering.account=Comptes
@@ -539,6 +545,7 @@
lima.ui.opening.title=Initialisation
lima.ui.opening.welcome=<html><center>Bienvenue dans Lima<br/>Laissez vous guider par cet assistant pour démarrer votre comptabilité en quelques instants
<br/>Ou bien importer directement une ancienne sauvegarde de LIMA au format CSV<br/><br/><br/><br/></center></html>
lima.ui.retainedEarnings.wait=Report à nouveaux...
+lima.vatStatements=Plan TVA
lima.vatreport.listerror=Erreur lors de la récupération des données de la liste
lima.vatstatement.accounts=Liste des comptes
lima.vatstatement.boxname=PDF BoxName
@@ -549,7 +556,6 @@
lima.warning.nimbus.landf=Le look and feel nymbus n'a pas été trouvé
limma.config.thousandseparator.description=Caractère de séparation entre les blocs de milliers
limma.config.thousandseparator.label=Séparateur de milliers
-llima.importexport.import.alreadyExistFinancialStatement=
org.chorem.lima.LimaConfig.NumberSeparator.COMMA=
org.chorem.lima.LimaConfig.NumberSeparator.DOT=
org.chorem.lima.LimaConfig.NumberSeparator.SPACE=
Copied: trunk/lima-swing/src/main/resources/icons/action-accounts.png (from rev 3856, trunk/lima-swing/src/main/resources/icons/action-charts-accounts.png)
===================================================================
(Binary files differ)
Deleted: trunk/lima-swing/src/main/resources/icons/action-charts-accounts.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-swing/src/main/resources/icons/action-charts-entrybooks.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-swing/src/main/resources/icons/action-charts-financialperiod.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-swing/src/main/resources/icons/action-charts-financialstatements.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-swing/src/main/resources/icons/action-charts-fiscalperiod.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-swing/src/main/resources/icons/action-charts-vatstatements.png
===================================================================
(Binary files differ)
Deleted: trunk/lima-swing/src/main/resources/icons/action-entries-balanced.png
===================================================================
(Binary files differ)
Copied: trunk/lima-swing/src/main/resources/icons/action-entries.png (from rev 3861, trunk/lima-swing/src/main/resources/icons/action-entries-balanced.png)
===================================================================
(Binary files differ)
Copied: trunk/lima-swing/src/main/resources/icons/action-entryBooks.png (from rev 3856, trunk/lima-swing/src/main/resources/icons/action-charts-entrybooks.png)
===================================================================
(Binary files differ)
Deleted: trunk/lima-swing/src/main/resources/icons/action-export-element.png
===================================================================
(Binary files differ)
Copied: trunk/lima-swing/src/main/resources/icons/action-export.png (from rev 3856, trunk/lima-swing/src/main/resources/icons/action-export-element.png)
===================================================================
(Binary files differ)
Copied: trunk/lima-swing/src/main/resources/icons/action-financialPeriods.png (from rev 3856, trunk/lima-swing/src/main/resources/icons/action-charts-financialperiod.png)
===================================================================
(Binary files differ)
Copied: trunk/lima-swing/src/main/resources/icons/action-financialStatements.png (from rev 3856, trunk/lima-swing/src/main/resources/icons/action-charts-financialstatements.png)
===================================================================
(Binary files differ)
Copied: trunk/lima-swing/src/main/resources/icons/action-fiscalPeriods.png (from rev 3856, trunk/lima-swing/src/main/resources/icons/action-charts-fiscalperiod.png)
===================================================================
(Binary files differ)
Deleted: trunk/lima-swing/src/main/resources/icons/action-import-element.png
===================================================================
(Binary files differ)
Copied: trunk/lima-swing/src/main/resources/icons/action-import.png (from rev 3856, trunk/lima-swing/src/main/resources/icons/action-import-element.png)
===================================================================
(Binary files differ)
Copied: trunk/lima-swing/src/main/resources/icons/action-vatStatements.png (from rev 3856, trunk/lima-swing/src/main/resources/icons/action-charts-vatstatements.png)
===================================================================
(Binary files differ)
Copied: trunk/lima-swing/src/main/resources/icons/entryBooks.png (from rev 3874, trunk/lima-swing/src/main/resources/icons/entrybooks.png)
===================================================================
(Binary files differ)
Deleted: trunk/lima-swing/src/main/resources/icons/entrybooks.png
===================================================================
(Binary files differ)
Copied: trunk/lima-swing/src/main/resources/icons/fiscalYears.png (from rev 3874, trunk/lima-swing/src/main/resources/icons/fiscalperiods.png)
===================================================================
(Binary files differ)
Deleted: trunk/lima-swing/src/main/resources/icons/fiscalperiods.png
===================================================================
(Binary files differ)
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2014-07-30 09:17:32 UTC (rev 3874)
+++ trunk/pom.xml 2014-07-30 15:38:53 UTC (rev 3875)
@@ -202,6 +202,9 @@
<!-- license to use -->
<license.licenseName>gpl_v3</license.licenseName>
+ <!--Jaxx properties-->
+ <jaxx.autoImportCss>true</jaxx.autoImportCss>
+
</properties>
<repositories>
1
0
r3874 - in trunk: lima-business/src/main/java/org/chorem/lima/business lima-business/src/main/java/org/chorem/lima/business/accountingrules lima-business/src/main/java/org/chorem/lima/business/ejb lima-business-api/src/main/java/org/chorem/lima/business lima-business-api/src/main/java/org/chorem/lima/business/api lima-swing/src/main/java/org/chorem/lima/ui/lettering
by sbavencoff@users.chorem.org 30 Jul '14
by sbavencoff@users.chorem.org 30 Jul '14
30 Jul '14
Author: sbavencoff
Date: 2014-07-30 11:17:32 +0200 (Wed, 30 Jul 2014)
New Revision: 3874
Url: http://forge.chorem.org/projects/lima/repository/revisions/3874
Log:
refs #1044 #1051 : lettering/un-lettering
Added:
trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedEntriesException.java
Modified:
trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialTransactionService.java
trunk/lima-business/src/main/java/org/chorem/lima/business/AccountingRules.java
trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/DefaultAccountingRules.java
trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java
trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/AccountingRules.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/AccountingRules.java 2014-07-30 07:41:15 UTC (rev 3873)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/AccountingRules.java 2014-07-30 09:17:32 UTC (rev 3874)
@@ -107,4 +107,12 @@
WithoutEntryBookFinancialTransactionsException,
UnbalancedFinancialTransactionsException,
NotLockedClosedPeriodicEntryBooksException;
+
+ /**
+ * Entry rules
+ *
+ * @param oldEntries
+ * @throws LockedFinancialPeriodException, LockedEntryBookException
+ */
+ void addLetter(List<Entry> oldEntries) throws LockedEntryBookException, UnbalancedEntriesException;
}
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/DefaultAccountingRules.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/DefaultAccountingRules.java 2014-07-30 07:41:15 UTC (rev 3873)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/accountingrules/DefaultAccountingRules.java 2014-07-30 09:17:32 UTC (rev 3874)
@@ -41,6 +41,7 @@
import org.chorem.lima.business.NoEmptyFiscalPeriodException;
import org.chorem.lima.business.NotBeginNextDayOfLastFiscalPeriodException;
import org.chorem.lima.business.NotLockedClosedPeriodicEntryBooksException;
+import org.chorem.lima.business.UnbalancedEntriesException;
import org.chorem.lima.business.UnbalancedFinancialTransactionsException;
import org.chorem.lima.business.UnfilledEntriesException;
import org.chorem.lima.business.UsedAccountException;
@@ -60,6 +61,7 @@
import org.chorem.lima.entity.FiscalPeriodTopiaDao;
import org.chorem.lima.entity.LimaCallaoTopiaDaoSupplier;
+import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@@ -227,6 +229,39 @@
}
}
+ @Override
+ public void addLetter(List<Entry> oldEntries) throws LockedEntryBookException, UnbalancedEntriesException {
+
+ ClosedPeriodicEntryBookTopiaDao closedPeriodicEntryBookTopiaDao = getDaoHelper().getClosedPeriodicEntryBookDao();
+ FinancialPeriodTopiaDao financialPeriodTopiaDao = getDaoHelper().getFinancialPeriodDao();
+
+ BigDecimal balance = new BigDecimal(0);
+
+ for (Entry entry : oldEntries) {
+
+ FinancialPeriod financialPeriod = financialPeriodTopiaDao.findByDate(entry.getFinancialTransaction().getTransactionDate());
+
+ ClosedPeriodicEntryBook closedPeriodicEntryBook =
+ closedPeriodicEntryBookTopiaDao.findByEntryBookAndFinancialPeriod(
+ entry.getFinancialTransaction().getEntryBook(), financialPeriod);
+ if (closedPeriodicEntryBook.isLocked()) {
+ throw new LockedEntryBookException(closedPeriodicEntryBook);
+ }
+
+ if (entry.isDebit()) {
+ balance = balance.add(entry.getAmount());
+ } else {
+ balance = balance.subtract(entry.getAmount());
+ }
+
+ }
+
+ if (balance.signum() != 0) {
+ throw new UnbalancedEntriesException(oldEntries);
+ }
+
+ }
+
/**
* Rules on update entry :
* <p/>
Modified: trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java
===================================================================
--- trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java 2014-07-30 07:41:15 UTC (rev 3873)
+++ trunk/lima-business/src/main/java/org/chorem/lima/business/ejb/FinancialTransactionServiceImpl.java 2014-07-30 09:17:32 UTC (rev 3874)
@@ -40,6 +40,7 @@
import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.LockedEntryBookException;
import org.chorem.lima.business.LockedFinancialPeriodException;
+import org.chorem.lima.business.UnbalancedEntriesException;
import org.chorem.lima.business.api.AccountService;
import org.chorem.lima.business.api.FinancialTransactionService;
import org.chorem.lima.business.utils.LetteringComparator;
@@ -285,6 +286,64 @@
}
}
+ @Override
+ public List<Entry> addLetter(List<Entry> entries) throws UnbalancedEntriesException, LockedEntryBookException {
+
+ List<Entry> oldEntries = Lists.newLinkedList();
+
+ EntryTopiaDao entryTopiaDao = getDaoHelper().getEntryDao();
+
+ for (Entry entry : entries) {
+
+ Entry oldEntry = entryTopiaDao.forTopiaIdEquals(entry.getTopiaId()).findUnique();
+
+ oldEntries.add(oldEntry);
+
+ }
+
+ AccountingRules accountingRules = LimaConfig.getInstance().getAccountingRules();
+
+ //check rules
+ accountingRules.addLetter(oldEntries);
+
+ String nextLetters = getNextLetters();
+
+ for (Entry entry : oldEntries) {
+
+ entry.setLettering(nextLetters);
+
+ //update entry
+ entryTopiaDao.update(entry);
+
+ }
+
+ return oldEntries;
+ }
+
+ @Override
+ public List<Entry> removeLetter(String letter) {
+
+ List<Entry> entries = Lists.newArrayList();
+
+ if (StringUtils.isNotBlank(letter)) {
+
+ EntryTopiaDao entryTopiaDao = getDaoHelper().getEntryDao();
+
+ entries = entryTopiaDao.forLetteringEquals(letter).findAll();
+
+ for (Entry entry : entries) {
+
+ entry.setLettering("");
+
+ //update entry
+ entryTopiaDao.update(entry);
+
+ }
+ }
+
+ return entries;
+ }
+
public String findLastLetter(List<String> letters) {
String result;
Added: trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedEntriesException.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedEntriesException.java (rev 0)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/UnbalancedEntriesException.java 2014-07-30 09:17:32 UTC (rev 3874)
@@ -0,0 +1,19 @@
+package org.chorem.lima.business;
+
+import org.chorem.lima.entity.Entry;
+
+import java.util.Collection;
+
+/**
+ * @author Sylvain Bavencoff <bavencoff(a)codelutin.com>
+ */
+public class UnbalancedEntriesException extends EntriesException {
+
+ public UnbalancedEntriesException(Collection<Entry> entries) {
+ super(entries);
+ }
+
+ public UnbalancedEntriesException(Collection<Entry> entries, Throwable cause) {
+ super(entries, cause);
+ }
+}
Modified: trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialTransactionService.java
===================================================================
--- trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialTransactionService.java 2014-07-30 07:41:15 UTC (rev 3873)
+++ trunk/lima-business-api/src/main/java/org/chorem/lima/business/api/FinancialTransactionService.java 2014-07-30 09:17:32 UTC (rev 3874)
@@ -29,9 +29,9 @@
import org.chorem.lima.beans.LetteringFilter;
import org.chorem.lima.business.AfterLastFiscalPeriodException;
import org.chorem.lima.business.BeforeFirstFiscalPeriodException;
-import org.chorem.lima.business.LimaException;
import org.chorem.lima.business.LockedEntryBookException;
import org.chorem.lima.business.LockedFinancialPeriodException;
+import org.chorem.lima.business.UnbalancedEntriesException;
import org.chorem.lima.entity.Entry;
import org.chorem.lima.entity.EntryBook;
import org.chorem.lima.entity.FinancialPeriod;
@@ -111,7 +111,6 @@
* Retourne toutes les entrées d'une transaction
* pour un compte et la présence d'un lettrage ou (xor) non
* @param filter filtre sur les entrees, selon le compte, les dates de debut et de fin, et le lettrage
- * @throws LimaException
* */
List<Entry> getAllEntrieByDatesAndAccountAndLettering(LetteringFilter filter);
@@ -120,4 +119,14 @@
* @param financialTransaction transaction sur laquelle la derniere entree est selectionnee
* */
Entry getLastEntry(FinancialTransaction financialTransaction);
+
+
+ /**
+ * Retourne la list des ecritures lettrées
+ * @param entries la list des ecritures lettrées
+ * @throws UnbalancedEntriesException, LockedEntryBookException
+ * */
+ List<Entry> addLetter(List<Entry> entries) throws UnbalancedEntriesException, LockedEntryBookException;
+
+ List<Entry> removeLetter(String letter);
}
Modified: trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java
===================================================================
--- trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java 2014-07-30 07:41:15 UTC (rev 3873)
+++ trunk/lima-swing/src/main/java/org/chorem/lima/ui/lettering/LetteringViewHandler.java 2014-07-30 09:17:32 UTC (rev 3874)
@@ -25,7 +25,9 @@
package org.chorem.lima.ui.lettering;
-import com.google.common.collect.Maps;
+import com.google.common.base.Predicate;
+import com.google.common.collect.Iterables;
+import com.google.common.collect.Lists;
import org.apache.commons.lang3.time.DateUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -33,6 +35,7 @@
import org.chorem.lima.beans.LetteringFilterImpl;
import org.chorem.lima.business.LockedEntryBookException;
import org.chorem.lima.business.LockedFinancialPeriodException;
+import org.chorem.lima.business.UnbalancedEntriesException;
import org.chorem.lima.business.api.AccountService;
import org.chorem.lima.business.api.EntryBookService;
import org.chorem.lima.business.api.FinancialPeriodService;
@@ -58,7 +61,6 @@
import java.util.Calendar;
import java.util.Date;
import java.util.List;
-import java.util.Map;
import static org.nuiton.i18n.I18n.t;
@@ -475,8 +477,41 @@
/**Add a group of three letters to n entries*/
public void addLetter() {
if (editModel.isLettred()) {
- String newLetters = financialTransactionService.getNextLetters();
- changeLetter(newLetters);
+ int[] entrieSelected = view.getTable().getSelectedRows();
+
+ LetteringTableModel tableModel = view.getTableModel();
+
+ List<Entry> entries = Lists.newLinkedList();
+
+ for (int indexEntry : entrieSelected) {
+
+ Entry entry = tableModel.get(indexEntry);
+
+ entries.add(entry);
+ }
+
+ try {
+
+ if (!entries.isEmpty()) {
+
+ entries = financialTransactionService.addLetter(entries);
+
+ updateEntries(entries);
+ }
+
+ } catch (LockedEntryBookException e) {
+
+ errorHelper.showErrorMessage(t("lima.ui.entries.letter.closed.entryBook.error",
+ e.getClosedPeriodicEntryBook().getEntryBook().getCode(),
+ e.getClosedPeriodicEntryBook().getEntryBook().getLabel(),
+ e.getClosedPeriodicEntryBook().getFinancialPeriod().getBeginDate(),
+ e.getClosedPeriodicEntryBook().getFinancialPeriod().getEndDate()));
+
+ } catch (UnbalancedEntriesException e) {
+
+ errorHelper.showErrorMessage(t("lima.ui.entries.letter.unbalanced.error"));
+
+ }
onButtonModeChanged(ButtonMode.DELETTRED);
}
}
@@ -484,40 +519,47 @@
/**Remove a group of three letters to n entries*/
public void removeLetter() {
if (editModel.isUnLettred()) {
- changeLetter(null);
+
+ int[] entrieSelected = view.getTable().getSelectedRows();
+
+ LetteringTableModel tableModel = view.getTableModel();
+
+ if (entrieSelected.length > 0) {
+
+ Entry firstEntry = tableModel.get(entrieSelected[0]);
+
+ String letter = firstEntry.getLettering();
+
+ List<Entry> entries = financialTransactionService.removeLetter(letter);
+
+ updateEntries(entries);
+ }
+
onButtonModeChanged(ButtonMode.LETTRED);
}
}
- /**Add or remove a group of three letters to n entries*/
- protected void changeLetter(String newLetters) {
- int[] entrieSelected = view.getTable().getSelectedRows();
+ protected void updateEntries(List<Entry> entries) {
LetteringTableModel tableModel = view.getTableModel();
- Map<Entry, String> previousLetterMap = Maps.newHashMap();
+ for (final Entry entry : entries) {
- try {
- for (int indexEntry : entrieSelected) {
- Entry entry = tableModel.get(indexEntry);
- previousLetterMap.put(entry, entry.getLettering());
- entry.setLettering(newLetters);
- financialTransactionService.updateEntry(entry);
- tableModel.fireTableRowsUpdated(indexEntry, indexEntry);
+ Entry oldEntry = Iterables.find(
+ tableModel.getValues(),
+ new Predicate<Entry>() {
+ @Override
+ public boolean apply(Entry input) {
+ return input.getTopiaId().equals(entry.getTopiaId());
+ }
+ },
+ null);
+ if (oldEntry != null) {
+ int indexEntry = tableModel.indexOf(oldEntry);
+ tableModel.setValue(indexEntry, entry);
}
- } catch (LockedEntryBookException e) {
- errorHelper.showErrorMessage(t("lima.ui.entries.letter.closed.entryBook.error",
- e.getClosedPeriodicEntryBook().getEntryBook().getCode(),
- e.getClosedPeriodicEntryBook().getEntryBook().getLabel(),
- e.getClosedPeriodicEntryBook().getFinancialPeriod().getBeginDate(),
- e.getClosedPeriodicEntryBook().getFinancialPeriod().getEndDate()));
-
- // restaure prévious letters
- for (Map.Entry<Entry, String> mapEntry : previousLetterMap.entrySet()) {
- mapEntry.getKey().setLettering(mapEntry.getValue());
- }
}
}
1
0