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
August 2009
- 1 participants
- 26 discussions
28 Aug '09
Author: rchapelet
Date: 2009-08-28 12:27:12 +0200 (Fri, 28 Aug 2009)
New Revision: 2701
Removed:
trunk/lima-main/src/main/java/org/chorem/lima/csv/
Log:
plus de repertoire csv
1
0
Author: rchapelet
Date: 2009-08-28 12:22:25 +0200 (Fri, 28 Aug 2009)
New Revision: 2700
Added:
trunk/doc/TODO
Log:
TODO pour lima
Added: trunk/doc/TODO
===================================================================
--- trunk/doc/TODO (rev 0)
+++ trunk/doc/TODO 2009-08-28 10:22:25 UTC (rev 2700)
@@ -0,0 +1,38 @@
+/************************************/
+ TODO - Lima
+/************************************/
+
+
+Lima est fonctionnelle. Il reste plusieurs choses à faire :
+
+. impression des documents (aux normes de la comptabilité française)
+
+. optimiser le chargement des données. En chargeant un gros fichier (csv par
+exemple, le programme va très vite. Mais en passant par Callao, ce dernier
+est obligé de faire de nombreux appels à la bdd, ce qui alourdit le chargement.
+Il faut voir d'une part sur le chargement dans Callao, et surtout sur le
+module lima-service-callao. La fonctione qui prend du temps, est le chargement
+des transactions, le reste s'effectue rapidement.
+Le module prend deux boucles imbriquées, une première pour prendre chaque
+transaction, et la seconde chaque entrée comptable. Je pense qu'il faut récupérer
+un objet dto callao de transaction, qui lui possède ses entrées dto callao attachées.
+A partir de là il faut les convertir en objets lima.
+
+. vérifier le chargement de EBP, il fonctionne ! Mais EBP ne possède pas
+comme information dans ses imports si le compte est au débit ou crédit. J'ai
+donc mis en place la fonction permettant de vérifier, elle prend la
+plupart des cas, mais il se peut en avoir d'autres.
+
+. Le bilan. Le compte de résultat et la balance marche bien. Le bilan fonctionne
+également dans les cas testés, mais comme pour la catégorie précédemment
+décrit, il se peut que certains cas spéciaux ne soient pas pris en compte.
+Il est très facile d'ajouter. Tout se fait dans la classe bilanViewImpl.java.
+
+. ajouter des messages utilisateurs, barre de chargement etc. Lima en possède
+beaucoup de messages, mais il est possible de les rendre plus explicites,
+avec par exemple la ligne comptable qui ne fonctionne pas...
+
+
+. Création de l'ouverture d'un exercice. Il y a une méthode de faîte, mais
+pas l'interface, du moins elle est très simple. De même la réouverture n'est
+pas implémentée.
1
0
r2699 - in trunk/lima-main/src/main/java/org/chorem/lima: balance ui
by rchapelet@users.chorem.org 28 Aug '09
by rchapelet@users.chorem.org 28 Aug '09
28 Aug '09
Author: rchapelet
Date: 2009-08-28 10:54:58 +0200 (Fri, 28 Aug 2009)
New Revision: 2699
Modified:
trunk/lima-main/src/main/java/org/chorem/lima/balance/Category.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/ClosureViewImpl.java
Log:
ajout d'une condition dans l'import de EBP (classe category) pour prendre en compte les amortissements
Fermeture : si lexercice ne commence pas en janvier, c'est pris en compte
Modified: trunk/lima-main/src/main/java/org/chorem/lima/balance/Category.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/balance/Category.java 2009-08-28 08:30:01 UTC (rev 2698)
+++ trunk/lima-main/src/main/java/org/chorem/lima/balance/Category.java 2009-08-28 08:54:58 UTC (rev 2699)
@@ -39,7 +39,8 @@
result = "Passif";
break;
case 2:
- result = "Actif";
+ if ( accountNumberCategory("28",numberAccount) )
+ {result = "Passif";}else{result = "Actif";}
break;
case 3:
result = "Actif";
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/ClosureViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/ClosureViewImpl.java 2009-08-28 08:30:01 UTC (rev 2698)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/ClosureViewImpl.java 2009-08-28 08:54:58 UTC (rev 2699)
@@ -97,12 +97,14 @@
}
});
// Récupère la période master (celle de l'exercice)
+ /**
PeriodDTO periodMaster = (PeriodDTO) comboBoxPeriod.getSelectedItem();
// Définition du tri avec une expression régulière
Filter[] filterArray = { new PatternFilter("(.*"+(periodMaster.getBegin().getYear()+1900)+".*)|(.*Final.*)", 0, 0) };
FilterPipeline filters = new FilterPipeline(filterArray);
// Applique le tri
table.setFilters(filters);
+ */
// Ajout du tableau dans l'UI
getClosureScrollPane().setViewportView(table);
1
0
Author: rchapelet
Date: 2009-08-28 10:30:01 +0200 (Fri, 28 Aug 2009)
New Revision: 2698
Added:
trunk/doc/exemples.odt
Log:
maj doc
Added: trunk/doc/exemples.odt
===================================================================
(Binary files differ)
Property changes on: trunk/doc/exemples.odt
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
1
0
Author: rchapelet
Date: 2009-08-28 10:21:40 +0200 (Fri, 28 Aug 2009)
New Revision: 2697
Modified:
trunk/doc/rapport-remi/
Log:
maj doc
Property changes on: trunk/doc/rapport-remi
___________________________________________________________________
Added: svn:ignore
+ .~lock.rapport.odt#
1
0
27 Aug '09
Author: rchapelet
Date: 2009-08-27 16:04:41 +0200 (Thu, 27 Aug 2009)
New Revision: 2696
Modified:
trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java
Log:
maj du bilan : le choix uniqmenent des exercices, et non plus sur les p?\195?\169riodes mensuelles
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java 2009-08-27 13:39:24 UTC (rev 2695)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java 2009-08-27 14:04:41 UTC (rev 2696)
@@ -505,7 +505,7 @@
// Pour chaque période (annuelle et NON mensuelle !)
for (PeriodDTO period : periodes) {
v.addElement(period);
- v.addAll(period.getChildren());
+ //v.addAll(period.getChildren());
}
comboBoxPeriod.setModel(new DefaultComboBoxModel(v));
1
0
Author: rchapelet
Date: 2009-08-27 15:39:24 +0200 (Thu, 27 Aug 2009)
New Revision: 2695
Added:
trunk/doc/exemples/CAS_3
Log:
Ajout d'un cas
Added: trunk/doc/exemples/CAS_3
===================================================================
--- trunk/doc/exemples/CAS_3 (rev 0)
+++ trunk/doc/exemples/CAS_3 2009-08-27 13:39:24 UTC (rev 2695)
@@ -0,0 +1,164 @@
+"01/01/2009"
+"31/12/2009"
+"C";"2";"COMPTES D'IMMOBILISATIONS";"actif";"org.chorem.callao.entity.Account#1251365480819#0.8316274375935466"
+"C";"3";"COMPTES DE STOCKS ET EN-COURS";"actif";"org.chorem.callao.entity.Account#1251365480832#0.013525404834143662"
+"C";"4";"COMPTES DE TIERS";"actif";"org.chorem.callao.entity.Account#1251365480869#0.023136555382111013"
+"C";"5";"COMPTES FINANCIERS";"actif";"org.chorem.callao.entity.Account#1251365480878#0.3083950285662539"
+"C";"6";"COMPTES DE CHARGES";"actif";"org.chorem.callao.entity.Account#1251365480906#0.71065996103218"
+"C";"7";"COMPTES DE PRODUITS";"actif";"org.chorem.callao.entity.Account#1251365480916#0.5785455047653619"
+"C";"8";"COMPTES SPECIAUX";"actif";"org.chorem.callao.entity.Account#1251365480925#0.45260880365900125"
+"C";"1";"COMPTES DE CAPITAUX";"Passif";"org.chorem.callao.entity.Account#1251365480940#0.09704676121171107"
+"C";"201";"Frais d'établissement";"Actif";"org.chorem.callao.entity.Account#1251365481036#0.23938992977284468"
+"C";"206";"Droit au bail";"Actif";"org.chorem.callao.entity.Account#1251365481061#0.43862859916608365"
+"C";"21";"Immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1251365481083#0.14595403874568835"
+"C";"274";"Prêts";"Actif";"org.chorem.callao.entity.Account#1251365823940#0.31368663458461543"
+"C";"2813";"Amortissement des constructions";"Passif";"org.chorem.callao.entity.Account#1251366115016#0.3871824190030194"
+"C";"2818";"Amortissement des autres immobilisations corporelles";"Passif";"org.chorem.callao.entity.Account#1251367099949#0.8101189792850183"
+"C";"207";"fond commercial";"Actif";"org.chorem.callao.entity.Account#1251367275837#0.6234496668905756"
+"C";"218";"Autres immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1251365481113#0.5810577236998036"
+"C";"211";"Terrains";"Actif";"org.chorem.callao.entity.Account#1251366004849#0.880093219533988"
+"C";"213";"Construction";"Actif";"org.chorem.callao.entity.Account#1251367322096#0.6277500926944082"
+"C";"37";"Stocks de marchandises";"Actif";"org.chorem.callao.entity.Account#1251365961370#0.052889720543996765"
+"C";"401";"Fournisseurs";"Passif";"org.chorem.callao.entity.Account#1251365481205#0.8588632710396712"
+"C";"411";"Clients";"Actif";"org.chorem.callao.entity.Account#1251365481225#0.06952593561130083"
+"C";"421";"Personnel - Rémunérations dues";"Passif";"org.chorem.callao.entity.Account#1251365614191#0.528436151901556"
+"C";"404";"Fournisseurs d'immobilisations";"Passif";"org.chorem.callao.entity.Account#1251365782621#0.14954727209338226"
+"C";"491";"Provisions pour dépréciation des comptes clients";"Passif";"org.chorem.callao.entity.Account#1251366088397#0.037853915487917944"
+"C";"447";"Autres impôts, taxes et versements assimilés";"Passif";"org.chorem.callao.entity.Account#1251367480797#0.15414510058943576"
+"C";"53";"Caisse";"Actif";"org.chorem.callao.entity.Account#1251365481244#0.3473916240537749"
+"C";"512";"Banques";"Actif";"org.chorem.callao.entity.Account#1251365532842#0.9933754044690649"
+"C";"60";"ACHATS";"Charge";"org.chorem.callao.entity.Account#1251365481256#0.9971773454448438"
+"C";"63";"Impôts, taxes et versements assimilés";"Charge";"org.chorem.callao.entity.Account#1251365481271#0.2630098061976439"
+"C";"64";"Charges de personnel";"Charge";"org.chorem.callao.entity.Account#1251365481297#0.5992623898208679"
+"C";"613";"Locations";"Charge";"org.chorem.callao.entity.Account#1251365647201#0.6777739196725294"
+"C";"661";"Charges d'intérêts";"Charge";"org.chorem.callao.entity.Account#1251365909185#0.9143635950554355"
+"C";"675";"Valeurs comptables des éléments d'actif";"Charge";"org.chorem.callao.entity.Account#1251365989585#0.8545688796382593"
+"C";"654";"Pertes sur créances irrécouvrables";"Charge";"org.chorem.callao.entity.Account#1251366035056#0.5342562649635056"
+"C";"681";"Dotations aux amortissements";"Charge";"org.chorem.callao.entity.Account#1251366061008#0.09886925568123961"
+"C";"614";"Charges locatives et de co-propriété";"Charge";"org.chorem.callao.entity.Account#1251366543463#0.5104772073462184"
+"C";"607";"Achas de marchandises";"Charge";"org.chorem.callao.entity.Account#1251365481310#0.8739767105898814"
+"C";"6037";"Variation des stocks de marchandises";"Charge";"org.chorem.callao.entity.Account#1251365946447#0.884837600831977"
+"C";"606";"Achats non stockés de matières et fournitures";"Charge";"org.chorem.callao.entity.Account#1251366601096#0.5282731289522182"
+"C";"707";"Ventes de marchandises";"Produit";"org.chorem.callao.entity.Account#1251365481320#0.8748514112890582"
+"C";"775";"Produits des cessions d'éléments d'actif";"Produit";"org.chorem.callao.entity.Account#1251365737351#0.5950260079005152"
+"C";"762";"Produits des autres immobilisations financières";"Produit";"org.chorem.callao.entity.Account#1251365852025#0.8543788478645467"
+"C";"105";"Ecarts de réévaluation";"Passif";"org.chorem.callao.entity.Account#1251365481335#0.16404396733766102"
+"C";"106";"Réserves";"Passif";"org.chorem.callao.entity.Account#1251365481345#0.03876075180964811"
+"C";"101";"Capital";"Passif";"org.chorem.callao.entity.Account#1251365481354#0.6669873089070463"
+"C";"164";"Emprunt auprès des établissements de crédit";"Passif";"org.chorem.callao.entity.Account#1251365888425#0.8723425535803158"
+"C";"10500000";"Ecarts de réévaluation";"actif";"org.chorem.callao.entity.Account#1251365481373#0.9206650441043341"
+"C";"1061";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1251365481385#0.2704406266551105"
+"C";"1062";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1251365481399#0.024731392691404785"
+"C";"1063";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1251365481421#0.5300839499044109"
+"C";"1064";"Réserves réglementes";"actif";"org.chorem.callao.entity.Account#1251365481431#0.6510890772420299"
+"C";"1068";"Autres réserves";"actif";"org.chorem.callao.entity.Account#1251365481443#0.4935074855912235"
+"C";"10610000";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1251365481453#0.7727333414529631"
+"C";"10611000";"réserve légale";"actif";"org.chorem.callao.entity.Account#1251365481479#0.9750484538244889"
+"C";"10620000";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1251365481490#0.7238777182987666"
+"C";"10630000";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1251365481511#0.0597087833412433"
+"C";"10640000";"Réserves réglementes";"acif";"org.chorem.callao.entity.Account#1251365481524#0.8572592559132773"
+"C";"10100000";"Capital";"actif";"org.chorem.callao.entity.Account#1251365481542#0.08516665084079245"
+"C";"10131000";"Capital non amorti";"actif";"org.chorem.callao.entity.Account#1251365481556#0.29053580840255044"
+"J";"Journal des ventes";"JV";"Journal des ventes";"org.chorem.callao.entity.Journal#1251365481562#0.7732775443424003"
+"J";"Journal des achats";"AC";"Journal des achats";"org.chorem.callao.entity.Journal#1251365481570#0.5108906048414311"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366290276#0.2578631392383658"
+"E";"607";"Achas de marchandises";"113300,00";"";"D";"org.chorem.callao.entity.Entry#1251366305770#0.8948102494436072"
+"E";"401";"Achas de marchandises";"65000,00";"";"C";"org.chorem.callao.entity.Entry#1251366318333#0.271203002384903"
+"E";"512";"Achas de marchandises";"46000,00";"";"C";"org.chorem.callao.entity.Entry#1251366328704#0.10563371748887462"
+"E";"53";"Achas de marchandises";"2300,00";"";"C";"org.chorem.callao.entity.Entry#1251366337885#0.9295655720122626"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366342141#0.10350304996711135"
+"E";"411";"Clients";"125000,00";"";"D";"org.chorem.callao.entity.Entry#1251366349075#0.9488461530318179"
+"E";"512";"Clients";"172000,00";"";"D";"org.chorem.callao.entity.Entry#1251366359332#0.9901024339036388"
+"E";"53";"Clients";"6200,00";"";"D";"org.chorem.callao.entity.Entry#1251366372270#0.6387967302193108"
+"E";"707";"Clients";"303200,00";"";"C";"org.chorem.callao.entity.Entry#1251366380355#0.007675320333916935"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366381877#0.9442757727756138"
+"E";"64";"Charges de personnel";"22000,00";"";"D";"org.chorem.callao.entity.Entry#1251366391611#0.4416505920862174"
+"E";"421";"Charges de personnel";"22000,00";"";"C";"org.chorem.callao.entity.Entry#1251366400668#0.15012966339439981"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366404124#0.7285052533414099"
+"E";"63";"Impôts, taxes et versements assimilés";"4800,00";"";"D";"org.chorem.callao.entity.Entry#1251366411684#0.4825533821571848"
+"E";"512";"Impôts, taxes et versements assimilés";"4800,00";"";"C";"org.chorem.callao.entity.Entry#1251366418507#0.1652299222254483"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366420028#0.9303226515480503"
+"E";"421";"Personnel - Rémunérations dues";"22000,00";"";"D";"org.chorem.callao.entity.Entry#1251366432627#0.6848221791079924"
+"E";"512";"Personnel - Rémunérations dues";"18000,00";"";"C";"org.chorem.callao.entity.Entry#1251366440355#0.6607439105821165"
+"E";"53";"Personnel - Rémunérations dues";"4000,00";"";"C";"org.chorem.callao.entity.Entry#1251366450627#0.16824852684298208"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366452148#0.2767135014844577"
+"E";"401";"Fournisseurs";"4000,00";"";"D";"org.chorem.callao.entity.Entry#1251366458915#0.4251688058768357"
+"E";"607";"Fournisseurs";"4000,00";"";"C";"org.chorem.callao.entity.Entry#1251366466764#0.8944329533373857"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366469468#0.4099701254860486"
+"E";"613";"Locations";"3000,00";"";"D";"org.chorem.callao.entity.Entry#1251366489068#0.11106306857359338"
+"E";"614";"Locations";"1200,00";"";"D";"org.chorem.callao.entity.Entry#1251366497475#0.4435867179586208"
+"E";"512";"Locations";"4200,00";"";"C";"org.chorem.callao.entity.Entry#1251366561164#0.3032752989333136"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366562474#0.35599076909687166"
+"E";"606";"ACHATS";"2000,00";"";"D";"org.chorem.callao.entity.Entry#1251366573205#0.868877728431438"
+"E";"613";"ACHATS";"400,00";"";"D";"org.chorem.callao.entity.Entry#1251366620881#0.38496436245712384"
+"E";"512";"ACHATS";"2400,00";"";"C";"org.chorem.callao.entity.Entry#1251366634295#0.4180662516891208"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366635668#0.14978172929268363"
+"E";"512";"Banques";"10000,00";"";"D";"org.chorem.callao.entity.Entry#1251366642719#0.7779500734994778"
+"E";"775";"Banques";"10000,00";"";"C";"org.chorem.callao.entity.Entry#1251366653653#0.3139439974717124"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366656644#0.4889135927559952"
+"E";"218";"COMPTES DE CAPITAUX";"25000,00";"";"D";"org.chorem.callao.entity.Entry#1251366663394#0.543817348523805"
+"E";"404";"COMPTES DE CAPITAUX";"25000,00";"";"C";"org.chorem.callao.entity.Entry#1251366678763#0.854958497949943"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366681628#0.6825926786609479"
+"E";"512";"Banques";"34000,00";"";"D";"org.chorem.callao.entity.Entry#1251366686642#0.7279234158811045"
+"E";"53";"Banques";"2600,00";"";"D";"org.chorem.callao.entity.Entry#1251366695224#0.14534397702395918"
+"E";"411";"Banques";"36600,00";"";"C";"org.chorem.callao.entity.Entry#1251366704834#0.4364134625498902"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366706110#0.9348799967607753"
+"E";"64";"Charges de personnel";"22500,00";"";"D";"org.chorem.callao.entity.Entry#1251366712258#0.5209646931631949"
+"E";"421";"Charges de personnel";"22500,00";"";"C";"org.chorem.callao.entity.Entry#1251366719201#0.26430330870406493"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366722239#0.7292039473874952"
+"E";"53";"Caisse";"44000,00";"";"D";"org.chorem.callao.entity.Entry#1251366731418#0.39364469951325476"
+"E";"274";"Caisse";"40000,00";"";"C";"org.chorem.callao.entity.Entry#1251366743671#0.7434552939209835"
+"E";"762";"Caisse";"4000,00";"";"C";"org.chorem.callao.entity.Entry#1251366787405#0.5846979963665365"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366746700#0.8164615530552065"
+"E";"421";"Personnel - Rémunérations dues";"22500,00";"";"D";"org.chorem.callao.entity.Entry#1251366806859#0.12472005700641953"
+"E";"512";"Personnel - Rémunérations dues";"18000,00";"";"C";"org.chorem.callao.entity.Entry#1251366817470#0.4042468817987509"
+"E";"53";"Personnel - Rémunérations dues";"4500,00";"";"C";"org.chorem.callao.entity.Entry#1251366824996#0.9749773806930716"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366826429#0.7554928946926527"
+"E";"401";"Fournisseurs";"26500,00";"";"D";"org.chorem.callao.entity.Entry#1251366834585#0.9391457612722847"
+"E";"404";"Fournisseurs";"12500,00";"";"D";"org.chorem.callao.entity.Entry#1251366843780#0.4189037966480327"
+"E";"512";"Fournisseurs";"39000,00";"";"C";"org.chorem.callao.entity.Entry#1251366853226#0.7090132416337926"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366855452#0.5400264299411828"
+"E";"64";"Charges de personnel";"24600,00";"";"D";"org.chorem.callao.entity.Entry#1251366861311#0.7491679618050555"
+"E";"421";"Charges de personnel";"24600,00";"";"C";"org.chorem.callao.entity.Entry#1251366870560#0.5113613206913333"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366872628#0.9616918787535343"
+"E";"421";"Personnel - Rémunérations dues";"24600,00";"";"D";"org.chorem.callao.entity.Entry#1251366880785#0.8102848892170709"
+"E";"512";"Personnel - Rémunérations dues";"20000,00";"";"C";"org.chorem.callao.entity.Entry#1251366890467#0.08550163344509887"
+"E";"53";"Personnel - Rémunérations dues";"4600,00";"";"C";"org.chorem.callao.entity.Entry#1251366897117#0.7301383968444286"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366897774#0.40953690666653075"
+"E";"164";"Emprunt auprès des établissements de crédit";"40000,00";"";"D";"org.chorem.callao.entity.Entry#1251366914473#0.9921684827888646"
+"E";"661";"Emprunt auprès des établissements de crédit";"20000,00";"";"D";"org.chorem.callao.entity.Entry#1251366922731#0.1942508912899521"
+"E";"512";"Emprunt auprès des établissements de crédit";"60000,00";"";"C";"org.chorem.callao.entity.Entry#1251366934545#0.6370562659849199"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366936553#0.44916366770358274"
+"E";"6037";"Variation des stocks de marchandises";"129500,00";"";"D";"org.chorem.callao.entity.Entry#1251366945965#0.9231320129781906"
+"E";"37";"Variation des stocks de marchandises";"129500,00";"";"C";"org.chorem.callao.entity.Entry#1251366956545#0.7119471211254622"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366958075#0.26277939717922516"
+"E";"37";"Stocks de marchandises";"80700,00";"";"D";"org.chorem.callao.entity.Entry#1251366964465#0.16500366482605433"
+"E";"6037";"Stocks de marchandises";"80700,00";"";"C";"org.chorem.callao.entity.Entry#1251366980900#0.2711539397388797"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366982737#0.4072440486456539"
+"E";"675";"Valeurs comptables des éléments d'actif";"3000,00";"";"D";"org.chorem.callao.entity.Entry#1251366989070#0.35316272144543825"
+"E";"211";"Valeurs comptables des éléments d'actif";"3000,00";"";"C";"org.chorem.callao.entity.Entry#1251366996017#0.6850717508102073"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251366997980#0.363711015661604"
+"E";"654";"Pertes sur créances irrécouvrables";"9000,00";"";"D";"org.chorem.callao.entity.Entry#1251367003863#0.22908662326234486"
+"E";"411";"Pertes sur créances irrécouvrables";"9000,00";"";"C";"org.chorem.callao.entity.Entry#1251367010747#0.40753362738493804"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251367013491#0.895528369807254"
+"E";"681";"Dotations aux amortissements";"2000,00";"";"D";"org.chorem.callao.entity.Entry#1251367019281#0.5633692057453908"
+"E";"491";"Dotations aux amortissements";"2000,00";"";"C";"org.chorem.callao.entity.Entry#1251367029041#0.8096054090191575"
+"T";"";"";"";"27/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251367031568#0.9618421346509642"
+"E";"681";"Dotations aux amortissements";"4400,00";"";"D";"org.chorem.callao.entity.Entry#1251367037097#0.46532783971521197"
+"E";"2813";"Dotations aux amortissements";"2200,00";"";"C";"org.chorem.callao.entity.Entry#1251367048345#0.8289929234583517"
+"E";"2818";"Dotations aux amortissements";"2200,00";"";"C";"org.chorem.callao.entity.Entry#1251367068461#0.2416540138573735"
+"T";"";"";"";"27/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1251367205133#0.8522443878614111"
+"E";"101";"Capital";"1000000,00";"";"C";"org.chorem.callao.entity.Entry#1251367210516#0.42270342490012514"
+"E";"164";"Capital";"200000,00";"";"C";"org.chorem.callao.entity.Entry#1251367226521#0.5582249783165105"
+"E";"206";"Capital";"25000,00";"";"D";"org.chorem.callao.entity.Entry#1251367242337#0.07838941621790374"
+"E";"207";"Capital";"80000,00";"";"D";"org.chorem.callao.entity.Entry#1251367262470#0.08011901799864363"
+"E";"211";"Capital";"140000,00";"";"D";"org.chorem.callao.entity.Entry#1251367299463#0.35748739494611814"
+"E";"213";"Capital";"220000,00";"";"D";"org.chorem.callao.entity.Entry#1251367326409#0.9397878646660709"
+"E";"218";"Capital";"260000,00";"";"D";"org.chorem.callao.entity.Entry#1251367349553#0.32115567105842935"
+"E";"274";"Capital";"160000,00";"";"D";"org.chorem.callao.entity.Entry#1251367368009#0.8921739304386237"
+"E";"37";"Capital";"129500,00";"";"D";"org.chorem.callao.entity.Entry#1251367377569#0.223158208206384"
+"E";"401";"Capital";"52300,00";"";"C";"org.chorem.callao.entity.Entry#1251367391585#0.4591329162682787"
+"E";"411";"Capital";"80600,00";"";"D";"org.chorem.callao.entity.Entry#1251367405177#0.8163143379339344"
+"E";"447";"Capital";"6000,00";"";"C";"org.chorem.callao.entity.Entry#1251367420288#0.6884177306655367"
+"E";"512";"Capital";"153600,00";"";"D";"org.chorem.callao.entity.Entry#1251367517840#0.6936105497654261"
+"E";"53";"Capital";"9600,00";"";"D";"org.chorem.callao.entity.Entry#1251367529764#0.3491239970380807"
1
0
r2694 - in trunk/lima-main/src/main/java/org/chorem/lima: export ui
by rchapelet@users.chorem.org 27 Aug '09
by rchapelet@users.chorem.org 27 Aug '09
27 Aug '09
Author: rchapelet
Date: 2009-08-27 15:38:17 +0200 (Thu, 27 Aug 2009)
New Revision: 2694
Modified:
trunk/lima-main/src/main/java/org/chorem/lima/export/CSVExport.java
trunk/lima-main/src/main/java/org/chorem/lima/export/XMLExport.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/AccueilViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java
trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultView.jaxx
trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java
Log:
Barre de chargement pour le bilan et calcul du r?\195?\169sultat dans celui-ci
Modified: trunk/lima-main/src/main/java/org/chorem/lima/export/CSVExport.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/export/CSVExport.java 2009-08-27 09:18:03 UTC (rev 2693)
+++ trunk/lima-main/src/main/java/org/chorem/lima/export/CSVExport.java 2009-08-27 13:38:17 UTC (rev 2694)
@@ -84,7 +84,13 @@
*/
String[] nextLine = new String[1];
// Début période
+ // Sélection la période utilisée actuellement
PeriodDTO period = Main.getContext().getDataManager().getCurrentPeriod();
+ // Si la période courante est une période mensuelle, on récupère la période annuelle
+ if ( period.getParent() != null )
+ {
+ period = period.getParent();
+ }
nextLine[0] = Util.DateToString(period.getBegin(),"dd/MM/yyyy");
csvWriter.writeNext(nextLine);
// Fin périod
Modified: trunk/lima-main/src/main/java/org/chorem/lima/export/XMLExport.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/export/XMLExport.java 2009-08-27 09:18:03 UTC (rev 2693)
+++ trunk/lima-main/src/main/java/org/chorem/lima/export/XMLExport.java 2009-08-27 13:38:17 UTC (rev 2694)
@@ -86,7 +86,6 @@
@Override
public void run()
{
- String i18;
progressBar = new ProgressBarImpl();
progressBar.setTitle(_("lima.progressBar.export.title"));
progressBar.getProgressBar().setString("0% : "+_("lima.progressBar.export.etape1"));
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/AccueilViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/AccueilViewImpl.java 2009-08-27 09:18:03 UTC (rev 2693)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/AccueilViewImpl.java 2009-08-27 13:38:17 UTC (rev 2694)
@@ -19,7 +19,6 @@
package org.chorem.lima.ui;
-
/**
* @author Rémi Chapelet
*/
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java 2009-08-27 09:18:03 UTC (rev 2693)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/BilanViewImpl.java 2009-08-27 13:38:17 UTC (rev 2694)
@@ -54,8 +54,9 @@
private BilanPassifTableModel modelBilanPassif;
Hashtable<String,Bilan> actifTab = new Hashtable<String,Bilan>();
Hashtable<String,Bilan> passifTab = new Hashtable<String,Bilan>();
- Hashtable<String,List<BalanceDTO>> provisionMap = new Hashtable<String,List<BalanceDTO>>();
+ Hashtable<String,List<BalanceDTO>> provisionMap;
private Balance balance = new Balance();
+ private ProgressBarImpl progressBar;
/**
* Constructor
@@ -172,256 +173,322 @@
public void updateBilan ()
{
log.debug("Update bilan :");
- // Chargement de la balance
- List<BalanceDTO> ListbalanceDTO = balance.createBalance((PeriodDTO) comboBoxPeriod.getSelectedItem());
-
- /**
- * Vérifie chaque numéro de compte (balance) pour déterminer sa position
- * dans le bilan.
- * Chaque catégorie est un objet bilan, et possède à son tour des bilans
- * correspondants aux comptes.
- * Cette boucle ne prend pas en compte les amortissement et provisions.
- * Ces comptes sont mis dans une liste à part, pour être traités une seconde fois.
- */
- // Liste amort/prov à traiter apres
-
- createCategory();
- // Pour chaque balance
- for ( BalanceDTO balanceDTO : ListbalanceDTO)
+ new Thread()
{
- /**
- * ACTIF
- */
- /** IMMOBILISATION */
- if ( Category.accountNumberCategory("20", balanceDTO.getAccount().getIdNumber()) )
+ @Override
+ public void run()
{
- actifTab.get("ACTIF_IMMOBILISE_INCORPOREL").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("21", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_IMMOBILISE_CORPOREL").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("22", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("23", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("25", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("26", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("27", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_IMMOBILISE_FINANCIER").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- /** ACTIF CIRCULANT */
- if ( Category.accountNumberCategory("31", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("32", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("33", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("34", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("35", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("36", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("37", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_CIRCULANT_STOCK").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("99", balanceDTO.getAccount().getIdNumber()) )
- {
- // TODO
- //actifTab.get("ACTIF_CIRCULANT_AVANCES").add(balanceDTO,Util.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("41", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_CIRCULANT_CREANCES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("50", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_CIRCULANT_VMP").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("51", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("52", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("53", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("54", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_CIRCULANT_DISPONIBILITE").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- if ( Category.accountNumberCategory("486", balanceDTO.getAccount().getIdNumber()) )
- {
- actifTab.get("ACTIF_CIRCULANT_CCA").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
- }
- /** AMORT. & PROV. */
- if ( Category.accountNumberCategory("280", balanceDTO.getAccount().getIdNumber()) )
- {
- if ( provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL") == null )
- {
- LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
- provisionMap.put("ACTIF_IMMOBILISE_INCORPOREL", listBalance);
- }
- provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL").add(balanceDTO);
- }
- if ( Category.accountNumberCategory("281", balanceDTO.getAccount().getIdNumber()) )
- {
- if ( provisionMap.get("ACTIF_IMMOBILISE_CORPOREL") == null )
- {
- LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
- provisionMap.put("ACTIF_IMMOBILISE_CORPOREL", listBalance);
- }
- provisionMap.get("ACTIF_IMMOBILISE_CORPOREL").add(balanceDTO);
- }
- if ( Category.accountNumberCategory("282", balanceDTO.getAccount().getIdNumber()) )
- {
- if ( provisionMap.get("ACTIF_IMMOBILISE_FINANCIER") == null )
- {
- LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
- provisionMap.put("ACTIF_IMMOBILISE_FINANCIER", listBalance);
- }
- provisionMap.get("ACTIF_IMMOBILISE_FINANCIER").add(balanceDTO);
- }
- /**
- * PASSIF
- */
- /** CAPITAUX PROPRES */
- if ( Category.accountNumberCategory("101", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("104", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("105", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("107", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("108", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("109", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_CP_CAPITAL").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("106", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_CP_RESERVES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("11", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_CP_RAN").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("12", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_CP_RESULTAT").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("13", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_CP_SUBVENTION").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("14", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_CP_PROVISION").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- /** PROVISIONS */
- if ( Category.accountNumberCategory("15", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_PROVISIONS").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- /** DETTES */
- if ( Category.accountNumberCategory("16", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_EMPRUNTS").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("15", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_AVANCES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("40", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_FOURNISSEURS").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("43", balanceDTO.getAccount().getIdNumber()) ||
- Category.accountNumberCategory("44", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_FISCALES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("999", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_IMMOBILISATIONS").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("9999", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_AUTRES_DETTES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- if ( Category.accountNumberCategory("487", balanceDTO.getAccount().getIdNumber()) )
- {
- passifTab.get("PASSIF_DETTES_PCA").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- }
+ progressBar = new ProgressBarImpl();
+ progressBar.setTitle("Chargement du bilan");
+ progressBar.getProgressBar().setString("0% : Préparation des données");
+ progressBar.getProgressBar().setValue(0);
- /**
- * Mise en place des provisions et amortissements
- */
- if ( provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL") != null )
- {
- List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL");
- for ( BalanceDTO balanceDTO : listBalance )
- {
- actifTab.get("ACTIF_IMMOBILISE_INCORPOREL").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- }
- if ( provisionMap.get("ACTIF_IMMOBILISE_CORPOREL") != null )
- {
- List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_CORPOREL");
- for ( BalanceDTO balanceDTO : listBalance )
- {
- actifTab.get("ACTIF_IMMOBILISE_CORPOREL").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- }
- if ( provisionMap.get("ACTIF_IMMOBILISE_FINANCIER") != null )
- {
- List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_FINANCIER");
- for ( BalanceDTO balanceDTO : listBalance )
- {
- actifTab.get("ACTIF_IMMOBILISE_FINANCIER").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
- }
- }
-
- /**
- * Ajout des données dans le model
- */
- /** ACTIF */
- List<Bilan> listActif = new LinkedList<Bilan>();
- listActif.add(actifTab.get("ACTIF_IMMOBILISE"));
- listActif.add(actifTab.get("ACTIF_IMMOBILISE_INCORPOREL"));
- listActif.add(actifTab.get("ACTIF_IMMOBILISE_CORPOREL"));
- listActif.add(actifTab.get("ACTIF_IMMOBILISE_FINANCIER"));
- listActif.add(new Bilan("SOUS-TOTAL (1)","soustotal",actifTab.get("ACTIF_IMMOBILISE").getTotal(),actifTab.get("ACTIF_IMMOBILISE").getDepreciation()));
- listActif.add(actifTab.get("ACTIF_CIRCULANT"));
- listActif.add(actifTab.get("ACTIF_CIRCULANT_STOCK"));
- listActif.add(actifTab.get("ACTIF_CIRCULANT_AVANCES"));
- listActif.add(actifTab.get("ACTIF_CIRCULANT_CREANCES"));
- listActif.add(actifTab.get("ACTIF_CIRCULANT_VMP"));
- listActif.add(actifTab.get("ACTIF_CIRCULANT_DISPONIBILITE"));
- listActif.add(actifTab.get("ACTIF_CIRCULANT_CCA"));
- listActif.add(new Bilan("SOUS-TOTAL (2)","soustotal",actifTab.get("ACTIF_CIRCULANT").getTotal(),actifTab.get("ACTIF_CIRCULANT").getDepreciation()));
- listActif.add(actifTab.get("ACTIF"));
+ // Chargement de la balance
+ List<BalanceDTO> ListbalanceDTO = balance.createBalance((PeriodDTO) comboBoxPeriod.getSelectedItem());
- // Création du modèle à partir de la liste précédement créée
- modelBilanActif.setData(listActif);
- modelBilanActif.fireTableDataChanged();
- /** PASSIF */
- List<Bilan> listPassif = new LinkedList<Bilan>();
- listPassif.add(passifTab.get("PASSIF_CAPITAUX"));
- listPassif.add(passifTab.get("PASSIF_CP_CAPITAL"));
- listPassif.add(passifTab.get("PASSIF_CP_RESERVES"));
- listPassif.add(passifTab.get("PASSIF_CP_RAN"));
- listPassif.add(passifTab.get("PASSIF_CP_SUBVENTION"));
- listPassif.add(passifTab.get("PASSIF_CP_PROVISION"));
- listPassif.add(new Bilan("SOUS-TOTAL (1)","soustotal",passifTab.get("PASSIF_CAPITAUX").getTotal(),"0"));
- listPassif.add(passifTab.get("PASSIF_PR_PROVISIONS"));
- listPassif.add(passifTab.get("PASSIF_PROVISIONS"));
- listPassif.add(new Bilan("SOUS-TOTAL (2)","soustotal",passifTab.get("PASSIF_PR_PROVISIONS").getTotal(),"0"));
- listPassif.add(passifTab.get("PASSIF_DETTES"));
- listPassif.add(passifTab.get("PASSIF_DETTES_EMPRUNTS"));
- listPassif.add(passifTab.get("PASSIF_DETTES_AVANCES"));
- listPassif.add(passifTab.get("PASSIF_DETTES_FOURNISSEURS"));
- listPassif.add(passifTab.get("PASSIF_DETTES_FISCALES"));
- listPassif.add(passifTab.get("PASSIF_DETTES_IMMOBILISATIONS"));
- listPassif.add(passifTab.get("PASSIF_DETTES_AUTRES_DETTES"));
- listPassif.add(passifTab.get("PASSIF_DETTES_PCA"));
- listPassif.add(new Bilan("SOUS-TOTAL (3)","soustotal",passifTab.get("PASSIF_DETTES").getTotal(),"0"));
- listPassif.add(passifTab.get("PASSIF"));
+ progressBar.getProgressBar().setString("10% : Balance chargée");
+ progressBar.getProgressBar().setValue(10);
+ /**
+ * Vérifie chaque numéro de compte (balance) pour déterminer sa position
+ * dans le bilan.
+ * Chaque catégorie est un objet bilan, et possède à son tour des bilans
+ * correspondants aux comptes.
+ * Cette boucle ne prend pas en compte les amortissement et provisions.
+ * Ces comptes sont mis dans une liste à part, pour être traités une seconde fois.
+ */
- // Création du modèle à partir de la liste précédement créée
- modelBilanPassif.setData(listPassif);
- modelBilanPassif.fireTableDataChanged();
+ progressBar.getProgressBar().setString("15% : Création catégorie");
+ progressBar.getProgressBar().setValue(15);
+ createCategory();
+ // Liste amort/prov à traiter apres
+ provisionMap = new Hashtable<String,List<BalanceDTO>>();
+ progressBar.getProgressBar().setString("20% : Chargement des comptes");
+ progressBar.getProgressBar().setValue(20);
+ // Récupère le nombre de balances
+ float nbBalances = ListbalanceDTO.size();
+ float incremente = 40 / nbBalances;
+ float value = 20;
+ // Pour chaque balance
+ for ( BalanceDTO balanceDTO : ListbalanceDTO)
+ {
+ /**
+ * ACTIF
+ */
+ /** IMMOBILISATION */
+ if ( Category.accountNumberCategory("20", balanceDTO.getAccount().getIdNumber()) )
+ {
+ actifTab.get("ACTIF_IMMOBILISE_INCORPOREL").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if ( Category.accountNumberCategory("21", balanceDTO.getAccount().getIdNumber()) )
+ {
+ actifTab.get("ACTIF_IMMOBILISE_CORPOREL").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if ( Category.accountNumberCategory("22", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("23", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("25", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("26", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("27", balanceDTO.getAccount().getIdNumber()) )
+ {
+ actifTab.get("ACTIF_IMMOBILISE_FINANCIER").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ /** ACTIF CIRCULANT */
+ if ( Category.accountNumberCategory("31", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("32", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("33", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("34", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("35", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("36", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("37", balanceDTO.getAccount().getIdNumber()) )
+ {
+ actifTab.get("ACTIF_CIRCULANT_STOCK").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if ( Category.accountNumberCategory("99", balanceDTO.getAccount().getIdNumber()) )
+ {
+ // TODO
+ //actifTab.get("ACTIF_CIRCULANT_AVANCES").add(balanceDTO,Util.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if ( Category.accountNumberCategory("41", balanceDTO.getAccount().getIdNumber()) )
+ {
+ actifTab.get("ACTIF_CIRCULANT_CREANCES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if ( Category.accountNumberCategory("50", balanceDTO.getAccount().getIdNumber()) )
+ {
+ actifTab.get("ACTIF_CIRCULANT_VMP").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if ( Category.accountNumberCategory("51", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("52", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("53", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("54", balanceDTO.getAccount().getIdNumber()) )
+ {
+ actifTab.get("ACTIF_CIRCULANT_DISPONIBILITE").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ if ( Category.accountNumberCategory("486", balanceDTO.getAccount().getIdNumber()) )
+ {
+ actifTab.get("ACTIF_CIRCULANT_CCA").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getDebit(), balanceDTO.getCredit()));
+ }
+ /** AMORT. & PROV. */
+ if ( Category.accountNumberCategory("280", balanceDTO.getAccount().getIdNumber()) )
+ {
+ if ( provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL") == null )
+ {
+ LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
+ provisionMap.put("ACTIF_IMMOBILISE_INCORPOREL", listBalance);
+ }
+ provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL").add(balanceDTO);
+ }
+ if ( Category.accountNumberCategory("281", balanceDTO.getAccount().getIdNumber()) )
+ {
+ if ( provisionMap.get("ACTIF_IMMOBILISE_CORPOREL") == null )
+ {
+ LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
+ provisionMap.put("ACTIF_IMMOBILISE_CORPOREL", listBalance);
+ }
+ provisionMap.get("ACTIF_IMMOBILISE_CORPOREL").add(balanceDTO);
+ }
+ if ( Category.accountNumberCategory("282", balanceDTO.getAccount().getIdNumber()) )
+ {
+ if ( provisionMap.get("ACTIF_IMMOBILISE_FINANCIER") == null )
+ {
+ LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
+ provisionMap.put("ACTIF_IMMOBILISE_FINANCIER", listBalance);
+ }
+ provisionMap.get("ACTIF_IMMOBILISE_FINANCIER").add(balanceDTO);
+ }
+ if ( Category.accountNumberCategory("491", balanceDTO.getAccount().getIdNumber()) )
+ {
+ if ( provisionMap.get("ACTIF_CIRCULANT_CREANCES") == null )
+ {
+ LinkedList<BalanceDTO> listBalance = new LinkedList<BalanceDTO>();
+ provisionMap.put("ACTIF_CIRCULANT_CREANCES", listBalance);
+ }
+ provisionMap.get("ACTIF_CIRCULANT_CREANCES").add(balanceDTO);
+ }
+ /**
+ * PASSIF
+ */
+ /** CAPITAUX PROPRES */
+ if ( Category.accountNumberCategory("101", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("104", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("105", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("107", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("108", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("109", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_CP_CAPITAL").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if ( Category.accountNumberCategory("106", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_CP_RESERVES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if ( Category.accountNumberCategory("11", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_CP_RAN").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if ( Category.accountNumberCategory("12", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_CP_RESULTAT").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if ( Category.accountNumberCategory("13", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_CP_SUBVENTION").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if ( Category.accountNumberCategory("14", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_CP_PROVISION").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ /** PROVISIONS */
+ if ( Category.accountNumberCategory("15", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_PROVISIONS").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ /** DETTES */
+ if ( Category.accountNumberCategory("16", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_DETTES_EMPRUNTS").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if ( Category.accountNumberCategory("15", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_DETTES_AVANCES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if ( Category.accountNumberCategory("40", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_DETTES_FOURNISSEURS").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if ( Category.accountNumberCategory("43", balanceDTO.getAccount().getIdNumber()) ||
+ Category.accountNumberCategory("44", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_DETTES_FISCALES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if ( Category.accountNumberCategory("999", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_DETTES_IMMOBILISATIONS").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if ( Category.accountNumberCategory("9999", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_DETTES_AUTRES_DETTES").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ if ( Category.accountNumberCategory("487", balanceDTO.getAccount().getIdNumber()) )
+ {
+ passifTab.get("PASSIF_DETTES_PCA").add(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ // Incrémente la barre de chargement
+ value = value + incremente;
+ progressBar.getProgressBar().setValue((int)value);
+ progressBar.getProgressBar().setString((int)value+"% : Compte : "+balanceDTO.getName());
+ }
+
+ progressBar.getProgressBar().setString("60% : Mise en place des amortissements et provisions");
+ progressBar.getProgressBar().setValue(60);
+ /**
+ * Mise en place des provisions et amortissements
+ */
+ if ( provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL") != null )
+ {
+ List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_INCORPOREL");
+ for ( BalanceDTO balanceDTO : listBalance )
+ {
+ actifTab.get("ACTIF_IMMOBILISE_INCORPOREL").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ }
+ if ( provisionMap.get("ACTIF_IMMOBILISE_CORPOREL") != null )
+ {
+ List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_CORPOREL");
+ for ( BalanceDTO balanceDTO : listBalance )
+ {
+ actifTab.get("ACTIF_IMMOBILISE_CORPOREL").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ }
+ if ( provisionMap.get("ACTIF_IMMOBILISE_FINANCIER") != null )
+ {
+ List<BalanceDTO> listBalance = provisionMap.get("ACTIF_IMMOBILISE_FINANCIER");
+ for ( BalanceDTO balanceDTO : listBalance )
+ {
+ actifTab.get("ACTIF_IMMOBILISE_FINANCIER").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ }
+ if ( provisionMap.get("ACTIF_CIRCULANT_CREANCES") != null )
+ {
+ List<BalanceDTO> listBalance = provisionMap.get("ACTIF_CIRCULANT_CREANCES");
+ for ( BalanceDTO balanceDTO : listBalance )
+ {
+ actifTab.get("ACTIF_CIRCULANT_CREANCES").addDepreciation(balanceDTO,DTOHelper.SubNumbersString(balanceDTO.getCredit(), balanceDTO.getDebit()));
+ }
+ }
+
+ progressBar.getProgressBar().setString("70% : Calcul du résultat");
+ progressBar.getProgressBar().setValue(70);
+ /**
+ * Appel de la méthode du calcul du compte de résultat pour avoir le
+ * résultat
+ */
+ ResultViewImpl resultViewImpl = new ResultViewImpl ();
+ resultViewImpl.updateResult((PeriodDTO) comboBoxPeriod.getSelectedItem());
+ passifTab.get("PASSIF_CP_RESULTAT").add(new Bilan("Résultat","",resultViewImpl.getResult(),"0"), resultViewImpl.getResult());
+
+ progressBar.getProgressBar().setString("90% : Création des tableaux");
+ progressBar.getProgressBar().setValue(90);
+ /**
+ * Ajout des données dans le model
+ */
+ /** ACTIF */
+ List<Bilan> listActif = new LinkedList<Bilan>();
+ listActif.add(actifTab.get("ACTIF_IMMOBILISE"));
+ listActif.add(actifTab.get("ACTIF_IMMOBILISE_INCORPOREL"));
+ listActif.add(actifTab.get("ACTIF_IMMOBILISE_CORPOREL"));
+ listActif.add(actifTab.get("ACTIF_IMMOBILISE_FINANCIER"));
+ listActif.add(new Bilan("SOUS-TOTAL (1)","soustotal",actifTab.get("ACTIF_IMMOBILISE").getTotal(),actifTab.get("ACTIF_IMMOBILISE").getDepreciation()));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT"));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT_STOCK"));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT_AVANCES"));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT_CREANCES"));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT_VMP"));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT_DISPONIBILITE"));
+ listActif.add(actifTab.get("ACTIF_CIRCULANT_CCA"));
+ listActif.add(new Bilan("SOUS-TOTAL (2)","soustotal",actifTab.get("ACTIF_CIRCULANT").getTotal(),actifTab.get("ACTIF_CIRCULANT").getDepreciation()));
+ listActif.add(actifTab.get("ACTIF"));
+
+ // Création du modèle à partir de la liste précédement créée
+ modelBilanActif.setData(listActif);
+ modelBilanActif.fireTableDataChanged();
+
+ /** PASSIF */
+ List<Bilan> listPassif = new LinkedList<Bilan>();
+ listPassif.add(passifTab.get("PASSIF_CAPITAUX"));
+ listPassif.add(passifTab.get("PASSIF_CP_CAPITAL"));
+ listPassif.add(passifTab.get("PASSIF_CP_RESULTAT"));
+ listPassif.add(passifTab.get("PASSIF_CP_RESERVES"));
+ listPassif.add(passifTab.get("PASSIF_CP_RAN"));
+ listPassif.add(passifTab.get("PASSIF_CP_SUBVENTION"));
+ listPassif.add(passifTab.get("PASSIF_CP_PROVISION"));
+ listPassif.add(new Bilan("SOUS-TOTAL (1)","soustotal",passifTab.get("PASSIF_CAPITAUX").getTotal(),"0"));
+ listPassif.add(passifTab.get("PASSIF_PR_PROVISIONS"));
+ listPassif.add(passifTab.get("PASSIF_PROVISIONS"));
+ listPassif.add(new Bilan("SOUS-TOTAL (2)","soustotal",passifTab.get("PASSIF_PR_PROVISIONS").getTotal(),"0"));
+ listPassif.add(passifTab.get("PASSIF_DETTES"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_EMPRUNTS"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_AVANCES"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_FOURNISSEURS"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_FISCALES"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_IMMOBILISATIONS"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_AUTRES_DETTES"));
+ listPassif.add(passifTab.get("PASSIF_DETTES_PCA"));
+ listPassif.add(new Bilan("SOUS-TOTAL (3)","soustotal",passifTab.get("PASSIF_DETTES").getTotal(),"0"));
+ listPassif.add(passifTab.get("PASSIF"));
+
+ progressBar.getProgressBar().setString("90% : Opération terminée");
+ progressBar.getProgressBar().setValue(90);
+ // Création du modèle à partir de la liste précédement créée
+ modelBilanPassif.setData(listPassif);
+ progressBar.getProgressBar().setValue(95);
+ modelBilanPassif.fireTableDataChanged();
+ progressBar.getProgressBar().setValue(100);
+ progressBar.getProgressBarFrame().dispose();
+ }
+ }.start();
+
}
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultView.jaxx
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultView.jaxx 2009-08-27 09:18:03 UTC (rev 2693)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultView.jaxx 2009-08-27 13:38:17 UTC (rev 2694)
@@ -1,6 +1,6 @@
<Table insets="0,0,0,0" fill="both">
<script>
- protected void updateResult() {};
+ protected void update() {};
</script>
<!-- Choix pour les périodes -->
@@ -15,7 +15,7 @@
<row columns="2" weightx="2" fill="both" insets="8,40,8,40">
<cell>
- <JButton width="80" id="updateButton" text="lima.update" onActionPerformed="updateResult()" />
+ <JButton width="80" id="updateButton" text="lima.update" onActionPerformed="update()" />
</cell>
</row>
Modified: trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java 2009-08-27 09:18:03 UTC (rev 2693)
+++ trunk/lima-main/src/main/java/org/chorem/lima/ui/ResultViewImpl.java 2009-08-27 13:38:17 UTC (rev 2694)
@@ -68,6 +68,7 @@
private JXTable tableProduit;
private JXTable tableChargeRes;
private JXTable tableProduitRes;
+ private String resultat;
private ResultChargesTableModel modelResultCharges;
private ResultProduitsTableModel modelResultProduits;
private DefaultTableModel modelChargeRes;
@@ -107,7 +108,7 @@
// Charge les produits et charges
- updateResult();
+ updateResult((PeriodDTO) comboBoxPeriod.getSelectedItem());
/**
* CHARGES
@@ -132,13 +133,19 @@
@Override
public void itemStateChanged(ItemEvent e) {
// Actualise le compte de résultat
- updateResult();
+ updateResult((PeriodDTO) comboBoxPeriod.getSelectedItem());
}
});
}
+ @Override
+ public void update ()
+ {
+ updateResult((PeriodDTO) comboBoxPeriod.getSelectedItem());
+ }
+
/**
* Permet d'initialiser le résultat des charges
* @param totalCharges
@@ -189,11 +196,10 @@
* Enfin, il associe les données aux modèles, et lance le calcul des
* résultats.
*/
- @Override
- protected void updateResult ()
+ protected void updateResult (PeriodDTO period)
{
// Chargement de la balance
- List<BalanceDTO> ListbalanceDTO = balance.createBalance((PeriodDTO) comboBoxPeriod.getSelectedItem());
+ List<BalanceDTO> ListbalanceDTO = balance.createBalance(period);
/**
* Création tableau associatif pour produits et charges
*/
@@ -338,7 +344,7 @@
initTabProduitRes(totalProduits);
// Affiche le résultat en produit OU en charge suivant le bénéfice ou perte
- String resultat = "0";
+ resultat = "0";
// On efface les résultats (ligne bénéfice ou perte)
if ( modelChargeRes.getRowCount() > 1 )
{
@@ -366,7 +372,7 @@
modelProduitRes.fireTableDataChanged();
}
}
-
+
/**
* Initialise la combobox contenant les périodes
*/
@@ -388,4 +394,9 @@
periodPanel.validate();
}
+ public String getResult()
+ {
+ return resultat;
+ }
+
}
\ No newline at end of file
1
0
27 Aug '09
Author: rchapelet
Date: 2009-08-27 11:18:03 +0200 (Thu, 27 Aug 2009)
New Revision: 2693
Removed:
trunk/lima-main/src/main/java/org/chorem/lima/csv/CSVEnum.java
trunk/lima-main/src/main/java/org/chorem/lima/csv/CSVImport.java
Log:
Suppression du package csv (qui ne sert ?\195?\160 rien, n'ai jamais appel?\195?\169). L'import des fichiers csv se font tous dans le package org.chorem.lima.imports
Deleted: trunk/lima-main/src/main/java/org/chorem/lima/csv/CSVEnum.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/csv/CSVEnum.java 2009-08-26 15:17:26 UTC (rev 2692)
+++ trunk/lima-main/src/main/java/org/chorem/lima/csv/CSVEnum.java 2009-08-27 09:18:03 UTC (rev 2693)
@@ -1,5 +0,0 @@
-package org.chorem.lima.csv;
-
-public enum CSVEnum {
- Journal, Compte, Debit, Libelle, Credit, DatSai, Piece
-}
Deleted: trunk/lima-main/src/main/java/org/chorem/lima/csv/CSVImport.java
===================================================================
--- trunk/lima-main/src/main/java/org/chorem/lima/csv/CSVImport.java 2009-08-26 15:17:26 UTC (rev 2692)
+++ trunk/lima-main/src/main/java/org/chorem/lima/csv/CSVImport.java 2009-08-27 09:18:03 UTC (rev 2693)
@@ -1,96 +0,0 @@
-package org.chorem.lima.csv;
-
-import au.com.bytecode.opencsv.CSVReader;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.chorem.lima.Main;
-import org.chorem.lima.dto.AccountDTO;
-import org.chorem.lima.dto.EntryDTO;
-import org.chorem.lima.dto.JournalDTO;
-import org.chorem.lima.dto.TransactionDTO;
-import org.chorem.lima.dto.util.DTOHelper;
-import org.chorem.lima.service.util.ServiceHelper;
-import org.chorem.lima.util.Util;
-
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileReader;
-import java.net.URISyntaxException;
-import java.net.URL;
-import java.util.*;
-
-public class CSVImport {
-
- private static final Log log = LogFactory.getLog(CSVImport.class);
- private CSVReader csvReader;
-
- public CSVImport(String path) {
- //URL url = CSVImport.class.getResource(path);
- try {
- File f = new File(path);
- csvReader = new CSVReader(new FileReader(f), ';');
- } catch ( FileNotFoundException e)
- {
-
- }
- }
-
- public CSVReader getCSVReader() throws FileNotFoundException {
- return csvReader;
- }
-
- public Collection<TransactionDTO> getAllTransaction() {
- Map<String, TransactionDTO> map = new HashMap<String, TransactionDTO>();
-
- // Header
- try {
- csvReader.readNext();
- // Transactions
- String[] nextLine;
- while ((nextLine = csvReader.readNext()) != null) {
- log.debug("deb : "+nextLine);
- String description = nextLine[CSVEnum.Libelle.ordinal()];
- log.debug(description);
- String voucher = nextLine[CSVEnum.Piece.ordinal()];
- log.debug(voucher);
- Date date = Util.stringToDate(nextLine[CSVEnum.DatSai.ordinal()], "dd/MM/yyyy");
- boolean debit = nextLine[CSVEnum.Credit.ordinal()].equals(DTOHelper.ZERO);
- String amount = debit ? nextLine[CSVEnum.Debit.ordinal()] : nextLine[CSVEnum.Credit.ordinal()];
-
- /**
- * Account
- */
- String accountId = nextLine[CSVEnum.Compte.ordinal()];
- AccountDTO accountDTO = ServiceHelper.findAccountById(
- ServiceHelper.getAllFlatAccount(Main.getContext().getDataManager().getAccountModel().getData()),
- accountId);
- if (accountDTO == null) {
- log.warn("Import : Account " + accountId + " does not exist.");
- continue;
- }
-
- /**
- * Journal
- */
- String journalId = nextLine[CSVEnum.Journal.ordinal()];
- JournalDTO journalDTO = ServiceHelper.findJournalById(
- Main.getContext().getDataManager().getJournalModel().getData(),
- journalId);
- if (journalDTO == null) {
- log.warn("Import : Journal " + journalId + " does not exist.");
- continue;
- }
-
- if (!map.containsKey(voucher)) {
- // New Transaction
- TransactionDTO trans = new TransactionDTO(null, null, date, voucher, description, journalDTO, new LinkedList<EntryDTO>(), null, null);
- map.put(voucher, trans);
- }
- // Entry
- TransactionDTO t = map.get(voucher);
- t.addChild(new EntryDTO(null, description, amount, debit, null, accountDTO, null, null));
- }
- } catch ( Exception e) {}
- return map.values();
- }
-}
1
0
Author: rchapelet
Date: 2009-08-26 17:17:26 +0200 (Wed, 26 Aug 2009)
New Revision: 2692
Added:
trunk/doc/exemples/
trunk/doc/exemples/Base
trunk/doc/exemples/CAS_1
trunk/doc/exemples/CAS_2
trunk/doc/exemples/cas_1_enonce
trunk/doc/exemples/cas_2_enonce
trunk/doc/exemples/pcg
Log:
Ajout des fichiers de sauvegarde :
. Bases : pgc et journaux et exercices
. pcg
. Cas 1 et 2 : deux cas d'entreprises fictives
Added: trunk/doc/exemples/Base
===================================================================
--- trunk/doc/exemples/Base (rev 0)
+++ trunk/doc/exemples/Base 2009-08-26 15:17:26 UTC (rev 2692)
@@ -0,0 +1,40 @@
+"01/01/2009"
+"31/12/2009"
+"C";"2";"COMPTES D'IMMOBILISATIONS";"actif";"org.chorem.callao.entity.Account#1249638211102#0.6695654783575262"
+"C";"3";"COMPTES DE STOCKS ET EN-COURS";"actif";"org.chorem.callao.entity.Account#1249638211110#0.2524438043888303"
+"C";"4";"COMPTES DE TIERS";"actif";"org.chorem.callao.entity.Account#1249638211135#0.7681130395705754"
+"C";"5";"COMPTES FINANCIERS";"actif";"org.chorem.callao.entity.Account#1249638211143#0.0760231194449087"
+"C";"6";"COMPTES DE CHARGES";"actif";"org.chorem.callao.entity.Account#1249638211151#0.28023249611594714"
+"C";"7";"COMPTES DE PRODUITS";"actif";"org.chorem.callao.entity.Account#1249638211175#0.3102595895960787"
+"C";"8";"COMPTES SPECIAUX";"actif";"org.chorem.callao.entity.Account#1249638211180#0.954785191258915"
+"C";"1";"COMPTES DE CAPITAUX";"Passif";"org.chorem.callao.entity.Account#1249638211190#0.9341494144126103"
+"C";"201";"Frais d'établissement";"Actif";"org.chorem.callao.entity.Account#1249638211277#0.15663762180885632"
+"C";"206";"Droit au bail";"Actif";"org.chorem.callao.entity.Account#1249638211291#0.14287582798957388"
+"C";"21";"Immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1249638211304#0.12609490228366194"
+"C";"218";"Autres immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1249638211318#0.7671785855577807"
+"C";"401";"Fournisseurs";"Passif";"org.chorem.callao.entity.Account#1249638211332#0.6751106748395758"
+"C";"411";"Clients";"Actif";"org.chorem.callao.entity.Account#1249638211340#0.6707772111148098"
+"C";"53";"Caisse";"Actif";"org.chorem.callao.entity.Account#1249638211350#0.11489132874509123"
+"C";"60";"ACHATS";"Charge";"org.chorem.callao.entity.Account#1249638211359#0.2825279545610557"
+"C";"63";"Impôts, taxes et versements assimilés";"Charge";"org.chorem.callao.entity.Account#1249638211371#0.46801547007538913"
+"C";"64";"Charges de personnel";"Charge";"org.chorem.callao.entity.Account#1249638211381#0.3303839931189453"
+"C";"607";"Achas de marchandises";"Charge";"org.chorem.callao.entity.Account#1249638211390#0.20473204793368127"
+"C";"707";"Ventes de marchandises";"Produit";"org.chorem.callao.entity.Account#1249638211401#0.9800198509477336"
+"C";"105";"Ecarts de réévaluation";"Passif";"org.chorem.callao.entity.Account#1249638211410#0.6281902026988848"
+"C";"106";"Réserves";"Passif";"org.chorem.callao.entity.Account#1249638211463#0.34549599313150203"
+"C";"101";"Capital";"Passif";"org.chorem.callao.entity.Account#1249638211469#0.46562414821511555"
+"C";"10500000";"Ecarts de réévaluation";"actif";"org.chorem.callao.entity.Account#1249638211482#0.3390231288717702"
+"C";"1061";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1249638211491#0.37872475937759864"
+"C";"1062";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1249638211500#0.12130757560437488"
+"C";"1063";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1249638211508#0.7414574326786728"
+"C";"1064";"Réserves réglementes";"actif";"org.chorem.callao.entity.Account#1249638211514#0.7658153814026493"
+"C";"1068";"Autres réserves";"actif";"org.chorem.callao.entity.Account#1249638211525#0.7304443412274442"
+"C";"10610000";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1249638211533#0.8754040083328478"
+"C";"10611000";"réserve légale";"actif";"org.chorem.callao.entity.Account#1249638211545#0.1928473045372302"
+"C";"10620000";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1249638211554#0.7070796892567613"
+"C";"10630000";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1249638211570#0.8887261283375415"
+"C";"10640000";"Réserves réglementes";"acif";"org.chorem.callao.entity.Account#1249638211586#0.24221998943986145"
+"C";"10100000";"Capital";"actif";"org.chorem.callao.entity.Account#1249638211596#0.11648676995490248"
+"C";"10131000";"Capital non amorti";"actif";"org.chorem.callao.entity.Account#1249638211606#0.6606461553005013"
+"J";"Journal des ventes";"JV";"Journal des ventes";"org.chorem.callao.entity.Journal#1249638211610#0.8167846883337093"
+"J";"Journal des achats";"AC";"Journal des achats";"org.chorem.callao.entity.Journal#1249638211615#0.8657612211581917"
Added: trunk/doc/exemples/CAS_1
===================================================================
--- trunk/doc/exemples/CAS_1 (rev 0)
+++ trunk/doc/exemples/CAS_1 2009-08-26 15:17:26 UTC (rev 2692)
@@ -0,0 +1,67 @@
+"01/01/2009"
+"31/12/2009"
+"C";"2";"COMPTES D'IMMOBILISATIONS";"actif";"org.chorem.callao.entity.Account#1249555347959#0.9019304796412684"
+"C";"3";"COMPTES DE STOCKS ET EN-COURS";"actif";"org.chorem.callao.entity.Account#1249555347984#0.4908833205081513"
+"C";"4";"COMPTES DE TIERS";"actif";"org.chorem.callao.entity.Account#1249555347993#0.01567348299581306"
+"C";"5";"COMPTES FINANCIERS";"actif";"org.chorem.callao.entity.Account#1249555348000#0.6004750737819512"
+"C";"6";"COMPTES DE CHARGES";"actif";"org.chorem.callao.entity.Account#1249555348022#0.930622399756405"
+"C";"7";"COMPTES DE PRODUITS";"actif";"org.chorem.callao.entity.Account#1249555348027#0.6782322672056709"
+"C";"8";"COMPTES SPECIAUX";"actif";"org.chorem.callao.entity.Account#1249555348076#0.6190508684748437"
+"C";"1";"COMPTES DE CAPITAUX";"Passif";"org.chorem.callao.entity.Account#1249555347952#0.9924023380704713"
+"C";"201";"Frais d'établissement";"Actif";"org.chorem.callao.entity.Account#1249555348338#0.04260276658110562"
+"C";"206";"Droit au bail";"Actif";"org.chorem.callao.entity.Account#1249555348347#0.18726180615226806"
+"C";"21";"Immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1249555497020#0.6505535213374983"
+"C";"218";"Autres immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1249555618637#0.47602527280737383"
+"C";"401";"Fournisseurs";"Passif";"org.chorem.callao.entity.Account#1249555822435#0.06041671027235429"
+"C";"411";"Clients";"Actif";"org.chorem.callao.entity.Account#1249555583700#0.6265947943023162"
+"C";"53";"Caisse";"Actif";"org.chorem.callao.entity.Account#1249555511423#0.011319837765867757"
+"C";"60";"ACHATS";"Charge";"org.chorem.callao.entity.Account#1249555348378#0.8374727763221947"
+"C";"63";"Impôts, taxes et versements assimilés";"Charge";"org.chorem.callao.entity.Account#1249555636400#0.5473094310405552"
+"C";"64";"Charges de personnel";"Charge";"org.chorem.callao.entity.Account#1249555657935#0.35366073929481334"
+"C";"607";"Achas de marchandises";"Charge";"org.chorem.callao.entity.Account#1249555548999#0.018490025064101023"
+"C";"707";"Ventes de marchandises";"Produit";"org.chorem.callao.entity.Account#1249555599917#0.5953808167367928"
+"C";"105";"Ecarts de réévaluation";"Passif";"org.chorem.callao.entity.Account#1249555348157#0.3681372547493901"
+"C";"106";"Réserves";"Passif";"org.chorem.callao.entity.Account#1249555348169#0.21975217717147555"
+"C";"101";"Capital";"Passif";"org.chorem.callao.entity.Account#1249555348140#0.7846696113518526"
+"C";"10500000";"Ecarts de réévaluation";"actif";"org.chorem.callao.entity.Account#1249555348211#0.8970560365362152"
+"C";"1061";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1249555348221#0.20073728197870266"
+"C";"1062";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1249555348230#0.6918799658776698"
+"C";"1063";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1249555348244#0.009767392197928992"
+"C";"1064";"Réserves réglementes";"actif";"org.chorem.callao.entity.Account#1249555348253#0.7582011362212686"
+"C";"1068";"Autres réserves";"actif";"org.chorem.callao.entity.Account#1249555348262#0.4019019740691401"
+"C";"10610000";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1249555348269#0.3388466646762297"
+"C";"10611000";"réserve légale";"actif";"org.chorem.callao.entity.Account#1249555348301#0.09087057997481063"
+"C";"10620000";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1249555348308#0.6217734109884933"
+"C";"10630000";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1249555348315#0.8177617600611057"
+"C";"10640000";"Réserves réglementes";"acif";"org.chorem.callao.entity.Account#1249555348329#0.8489995807518893"
+"C";"10100000";"Capital";"actif";"org.chorem.callao.entity.Account#1249555348184#0.7230203499285881"
+"C";"10131000";"Capital non amorti";"actif";"org.chorem.callao.entity.Account#1249555348200#0.3427497656667253"
+"J";"Journal des ventes";"JV";"Journal des ventes";"org.chorem.callao.entity.Journal#1249555348384#0.7477832615263098"
+"J";"Journal des achats";"AC";"Journal des achats";"org.chorem.callao.entity.Journal#1249555348389#0.7349860837330205"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555673283#0.23162212143544114"
+"E";"21";"";"5000,00";"";"D";"org.chorem.callao.entity.Entry#1249555685440#0.7386973210663885"
+"E";"53";"";"3000,00";"";"D";"org.chorem.callao.entity.Entry#1249555704013#0.6659431389930965"
+"E";"101";"";"8000,00";"";"C";"org.chorem.callao.entity.Entry#1249555717803#0.8143886662466882"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555718045#0.5909917736921011"
+"E";"607";"";"6000,00";"";"D";"org.chorem.callao.entity.Entry#1249555737683#0.7025746404416736"
+"E";"401";"";"5000,00";"";"C";"org.chorem.callao.entity.Entry#1249555762236#0.3617819630347947"
+"E";"53";"";"1000,00";"";"C";"org.chorem.callao.entity.Entry#1249555861407#0.14331551734896286"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555862751#0.9177596443097285"
+"E";"411";"";"5000,00";"";"D";"org.chorem.callao.entity.Entry#1249555876769#0.4020366725088178"
+"E";"53";"";"9000,00";"";"D";"org.chorem.callao.entity.Entry#1249555891967#0.08903087492614525"
+"E";"707";"";"14000,00";"";"C";"org.chorem.callao.entity.Entry#1249555904537#0.9943721670364445"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555905596#0.5658740211476994"
+"E";"218";"";"2000,00";"";"D";"org.chorem.callao.entity.Entry#1249555921558#0.5380421547075398"
+"E";"53";"";"2000,00";"";"C";"org.chorem.callao.entity.Entry#1249555945396#0.2744184645682206"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555946304#0.5538030351294028"
+"E";"63";"";"1500,00";"";"D";"org.chorem.callao.entity.Entry#1249555958607#0.09059278579113839"
+"E";"53";"";"1500,00";"";"C";"org.chorem.callao.entity.Entry#1249555969176#0.9784123741130679"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555970749#0.644568017205086"
+"E";"53";"";"4000,00";"";"D";"org.chorem.callao.entity.Entry#1249555981990#0.3792913477959591"
+"E";"411";"";"4000,00";"";"C";"org.chorem.callao.entity.Entry#1249555995113#0.1800136548147926"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249555997014#0.6295093044667812"
+"E";"401";"";"3000,00";"";"D";"org.chorem.callao.entity.Entry#1249556010670#0.05335008407039976"
+"E";"53";"";"3000,00";"";"C";"org.chorem.callao.entity.Entry#1249556025519#0.401792868136708"
+"T";"";"";"";"06/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1249556029807#0.6432438480325273"
+"E";"64";"";"2500,00";"";"D";"org.chorem.callao.entity.Entry#1249556039215#0.6580348425113147"
+"E";"53";"";"2500,00";"";"C";"org.chorem.callao.entity.Entry#1249556051474#0.16424960187685778"
Added: trunk/doc/exemples/CAS_2
===================================================================
--- trunk/doc/exemples/CAS_2 (rev 0)
+++ trunk/doc/exemples/CAS_2 2009-08-26 15:17:26 UTC (rev 2692)
@@ -0,0 +1,139 @@
+"01/01/2009"
+"31/12/2009"
+"C";"2";"COMPTES D'IMMOBILISATIONS";"actif";"org.chorem.callao.entity.Account#1251121166693#0.17143994080926006"
+"C";"3";"COMPTES DE STOCKS ET EN-COURS";"actif";"org.chorem.callao.entity.Account#1251121166704#0.46213363902238136"
+"C";"4";"COMPTES DE TIERS";"actif";"org.chorem.callao.entity.Account#1251121166730#0.5369707921817739"
+"C";"5";"COMPTES FINANCIERS";"actif";"org.chorem.callao.entity.Account#1251121166736#0.8779339804119594"
+"C";"6";"COMPTES DE CHARGES";"actif";"org.chorem.callao.entity.Account#1251121166746#0.7940993180290502"
+"C";"7";"COMPTES DE PRODUITS";"actif";"org.chorem.callao.entity.Account#1251121166768#0.5736093530186608"
+"C";"8";"COMPTES SPECIAUX";"actif";"org.chorem.callao.entity.Account#1251121166775#0.2992599387471707"
+"C";"1";"COMPTES DE CAPITAUX";"Passif";"org.chorem.callao.entity.Account#1251121166786#0.8736987880436026"
+"C";"201";"Frais d'établissement";"Actif";"org.chorem.callao.entity.Account#1251121166828#0.7262045710284035"
+"C";"206";"Droit au bail";"Actif";"org.chorem.callao.entity.Account#1251121166841#0.6025374438279394"
+"C";"21";"Immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1251121166852#0.9864375964079434"
+"C";"207";"Fond commercial";"Actif";"org.chorem.callao.entity.Account#1251126930287#0.9941058953541526"
+"C";"2813";"Amortissement des constructions";"Passif";"org.chorem.callao.entity.Account#1251121690457#0.6468547184191902"
+"C";"2815";"Amortissement des installations techniques, matériel et outillage industriels";"Passif";"org.chorem.callao.entity.Account#1251121732886#0.807143052059266"
+"C";"218";"Autres immobilisations corporelles";"Actif";"org.chorem.callao.entity.Account#1251121166871#0.4007380502487652"
+"C";"215";"Installations techniques, matériels et outillages industriels";"Actif";"org.chorem.callao.entity.Account#1251121615825#0.1394463426265331"
+"C";"211";"Terrains";"Actif";"org.chorem.callao.entity.Account#1251125484359#0.02806470973831987"
+"C";"213";"Construction";"Actif";"org.chorem.callao.entity.Account#1251126828454#0.6371179287113103"
+"C";"37";"Stocks de marchandises";"Actif";"org.chorem.callao.entity.Account#1251121773482#0.27197726481609874"
+"C";"401";"Fournisseurs";"Passif";"org.chorem.callao.entity.Account#1251121166906#0.18172499097077888"
+"C";"411";"Clients";"Actif";"org.chorem.callao.entity.Account#1251121166915#0.7380811097264733"
+"C";"410";"Clients et comptes rattachés";"Actif";"org.chorem.callao.entity.Account#1251121261939#0.3731176573770383"
+"C";"400";"Fournisseurs et comptes rattachés";"Passif";"org.chorem.callao.entity.Account#1251121228687#0.8601829948671851"
+"C";"53";"Caisse";"Actif";"org.chorem.callao.entity.Account#1251121166921#0.4542316525374881"
+"C";"512";"Banque";"Actif";"org.chorem.callao.entity.Account#1251122161308#0.8467381686626004"
+"C";"60";"ACHATS";"Charge";"org.chorem.callao.entity.Account#1251121166928#0.8244747597096951"
+"C";"63";"Impôts, taxes et versements assimilés";"Charge";"org.chorem.callao.entity.Account#1251121166936#0.6617802865899812"
+"C";"64";"Charges de personnel";"Charge";"org.chorem.callao.entity.Account#1251121166946#0.6887195258477898"
+"C";"66";"charges financières";"Charge";"org.chorem.callao.entity.Account#1251121424690#0.361266438521908"
+"C";"681";"Dotations aux amortissements et provisions - charges d'exploitation";"Charge";"org.chorem.callao.entity.Account#1251121666907#0.153324935114439"
+"C";"626";"Frais postaux et frais de télécommunications";"Charge";"org.chorem.callao.entity.Account#1251121562816#0.14449375560191136"
+"C";"623";"Publicité, publications, relations publiques";"Charge";"org.chorem.callao.entity.Account#1251121586306#0.9243315035511087"
+"C";"654";"Pertes sur créances irrécouvrables";"Charge";"org.chorem.callao.entity.Account#1251121636705#0.7925024484868144"
+"C";"675";"Valeurs comptables des éléments d'actif cédés";"Charge";"org.chorem.callao.entity.Account#1251122692231#0.32759066898255684"
+"C";"607";"Achas de marchandises";"Charge";"org.chorem.callao.entity.Account#1251121166957#0.22099715698620903"
+"C";"6037";"Variation des stocks de marchandises";"Produit";"org.chorem.callao.entity.Account#1251121753825#0.7999517005024219"
+"C";"641";"Rémunérations du personnel";"Charge";"org.chorem.callao.entity.Account#1251121302594#0.8716416673610199"
+"C";"645";"Charges de sécurité sociale et de prévoyance";"Charge";"org.chorem.callao.entity.Account#1251121484954#0.8813865606818083"
+"C";"661";"Charges d'intérêts";"Charge";"org.chorem.callao.entity.Account#1251121451050#0.04511272848259951"
+"C";"707";"Ventes de marchandises";"Produit";"org.chorem.callao.entity.Account#1251121166966#0.3940497421132717"
+"C";"775";"Produits des cessions d'éléments actif";"Produit";"org.chorem.callao.entity.Account#1251121343841#0.6592835907367915"
+"C";"105";"Ecarts de réévaluation";"Passif";"org.chorem.callao.entity.Account#1251121166974#0.9299089879139788"
+"C";"106";"Réserves";"Passif";"org.chorem.callao.entity.Account#1251121166986#0.7103349098371377"
+"C";"101";"Capital";"Passif";"org.chorem.callao.entity.Account#1251121166993#0.7572038033249665"
+"C";"164";"Emprunts auprès des établissements de crédit";"Passif";"org.chorem.callao.entity.Account#1251121377066#0.38997461573085457"
+"C";"10500000";"Ecarts de réévaluation";"actif";"org.chorem.callao.entity.Account#1251121167004#0.6640383575057422"
+"C";"1061";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1251121167015#0.324309196969095"
+"C";"1062";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1251121167057#0.6653101859854491"
+"C";"1063";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1251121167065#0.41824638046664775"
+"C";"1064";"Réserves réglementes";"actif";"org.chorem.callao.entity.Account#1251121167074#0.37181443087969956"
+"C";"1068";"Autres réserves";"actif";"org.chorem.callao.entity.Account#1251121167086#0.37058311641396224"
+"C";"10610000";"Réserve légale";"actif";"org.chorem.callao.entity.Account#1251121167093#0.9240691557864564"
+"C";"10611000";"réserve légale";"actif";"org.chorem.callao.entity.Account#1251121167111#0.48655102465477407"
+"C";"10620000";"Réserves indisponibles";"actif";"org.chorem.callao.entity.Account#1251121167120#0.5883414894111653"
+"C";"10630000";"Réserves statutaires ou contractuelles";"actif";"org.chorem.callao.entity.Account#1251121167139#0.07746202750609421"
+"C";"10640000";"Réserves réglementes";"acif";"org.chorem.callao.entity.Account#1251121167154#0.40974893751750296"
+"C";"10100000";"Capital";"actif";"org.chorem.callao.entity.Account#1251121167163#0.6610206908089986"
+"C";"10131000";"Capital non amorti";"actif";"org.chorem.callao.entity.Account#1251121167173#0.02755303166031753"
+"J";"Journal des ventes";"JV";"Journal des ventes";"org.chorem.callao.entity.Journal#1251121167177#0.8731840171532513"
+"J";"Journal des achats";"AC";"Journal des achats";"org.chorem.callao.entity.Journal#1251121167182#0.9822020429727014"
+"J";"Journal des inventaires";"JI";"Inventaires";"org.chorem.callao.entity.Journal#1251121808096#0.5311201059165946"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251121915797#0.46003072966909353"
+"E";"607";"Achas de marchandises";"55000,00";"";"D";"org.chorem.callao.entity.Entry#1251122112027#0.6486235902485559"
+"E";"400";"Achas de marchandises";"55000,00";"";"C";"org.chorem.callao.entity.Entry#1251122128462#0.9284897480681303"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122130063#0.2769333249458539"
+"E";"512";"COMPTES FINANCIERS";"68000,00";"";"D";"org.chorem.callao.entity.Entry#1251122139343#0.47265336885167886"
+"E";"707";"COMPTES FINANCIERS";"68000,00";"";"C";"org.chorem.callao.entity.Entry#1251122182035#0.6610016064241605"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122189926#0.46077316615992414"
+"E";"512";"Banque";"10000,00";"";"D";"org.chorem.callao.entity.Entry#1251122207519#0.7045607583373503"
+"E";"53";"Banque";"10000,00";"";"C";"org.chorem.callao.entity.Entry#1251122213670#0.6852644511620873"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122215573#0.14422759559466114"
+"E";"512";"Banque";"35000,00";"";"D";"org.chorem.callao.entity.Entry#1251122227210#0.44711979179462746"
+"E";"53";"Banque";"2500,00";"";"D";"org.chorem.callao.entity.Entry#1251122259445#0.7915930154400317"
+"E";"410";"Banque";"37500,00";"";"C";"org.chorem.callao.entity.Entry#1251122270942#0.38203433513423146"
+"T";"";"";"";"24/08/2009";"JI";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122580029#0.8140789928661041"
+"E";"681";"Dotations aux amortissements et provisions - charges d'exploitation";"44000,00";"";"D";"org.chorem.callao.entity.Entry#1251122590684#0.9564091329050836"
+"E";"2813";"Dotations aux amortissements et provisions - charges d'exploitation";"20000,00";"";"C";"org.chorem.callao.entity.Entry#1251122609114#0.7113356056497878"
+"E";"2815";"Dotations aux amortissements et provisions - charges d'exploitation";"24000,00";"";"C";"org.chorem.callao.entity.Entry#1251122621132#0.5567925322006285"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122276861#0.07920603782620106"
+"E";"410";"Clients et comptes rattachés";"120000,00";"";"D";"org.chorem.callao.entity.Entry#1251122291501#0.19514003480885334"
+"E";"707";"Clients et comptes rattachés";"120000,00";"";"C";"org.chorem.callao.entity.Entry#1251122302597#0.8226731248317012"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122304140#0.8184707834558514"
+"E";"400";"Fournisseurs et comptes rattachés";"5000,00";"";"D";"org.chorem.callao.entity.Entry#1251122311453#0.5159419377255675"
+"E";"607";"Fournisseurs et comptes rattachés";"5000,00";"";"C";"org.chorem.callao.entity.Entry#1251122320901#0.7540694936451928"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122322350#0.07366796678431142"
+"E";"512";"Impôts, taxes et versements assimilés";"12000,00";"";"C";"org.chorem.callao.entity.Entry#1251122345662#0.8540055380417166"
+"E";"63";"Impôts, taxes et versements assimilés";"12000,00";"";"D";"org.chorem.callao.entity.Entry#1251122334740#0.3982854555518667"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122355952#0.651582398239586"
+"E";"641";"Rémunérations du personnel";"4000,00";"";"D";"org.chorem.callao.entity.Entry#1251122361440#0.8198990610628343"
+"E";"53";"Rémunérations du personnel";"4000,00";"";"C";"org.chorem.callao.entity.Entry#1251122370210#0.5596162133368078"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122370882#0.2393657885552205"
+"E";"512";"Banque";"40000,00";"";"D";"org.chorem.callao.entity.Entry#1251122379037#0.4341763077912958"
+"E";"775";"Banque";"40000,00";"";"C";"org.chorem.callao.entity.Entry#1251122391326#0.8354974868313555"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122392845#0.931577920493854"
+"E";"400";"Fournisseurs et comptes rattachés";"24000,00";"";"D";"org.chorem.callao.entity.Entry#1251122409597#0.6645042205624827"
+"E";"512";"Fournisseurs et comptes rattachés";"24000,00";"";"C";"org.chorem.callao.entity.Entry#1251122420821#0.8551595854346119"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122428328#0.6583925671802189"
+"E";"164";"Emprunts auprès des établissements de crédit";"100000,00";"";"D";"org.chorem.callao.entity.Entry#1251122433972#0.49433496088464857"
+"E";"661";"Emprunts auprès des établissements de crédit";"8000,00";"";"D";"org.chorem.callao.entity.Entry#1251122444420#0.9503390975818475"
+"E";"512";"Emprunts auprès des établissements de crédit";"108000,00";"";"C";"org.chorem.callao.entity.Entry#1251122452607#0.6153491513236496"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122453917#0.12881017345974077"
+"E";"645";"Charges de sécurité sociale et de prévoyance";"1500,00";"";"D";"org.chorem.callao.entity.Entry#1251122464900#0.5927211202158016"
+"E";"512";"Charges de sécurité sociale et de prévoyance";"1500,00";"";"C";"org.chorem.callao.entity.Entry#1251122474891#0.7906207008426603"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122476364#0.2427196458981966"
+"E";"626";"Frais postaux et frais de télécommunications";"500,00";"";"D";"org.chorem.callao.entity.Entry#1251122492765#0.017325649294240075"
+"E";"53";"Frais postaux et frais de télécommunications";"500,00";"";"C";"org.chorem.callao.entity.Entry#1251122501058#0.21862888500227262"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122502534#0.46374324608574247"
+"E";"623";"Publicité, publications, relations publiques";"2100,00";"";"D";"org.chorem.callao.entity.Entry#1251122517063#0.1175584984086987"
+"E";"512";"Publicité, publications, relations publiques";"2100,00";"";"C";"org.chorem.callao.entity.Entry#1251122530403#0.9432919817623766"
+"T";"";"";"";"24/08/2009";"JV";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122531797#0.6594966984560037"
+"E";"215";"COMPTES DE CAPITAUX";"70000,00";"";"D";"org.chorem.callao.entity.Entry#1251122540730#0.4058381798774483"
+"E";"512";"COMPTES DE CAPITAUX";"70000,00";"";"C";"org.chorem.callao.entity.Entry#1251122554531#0.8905377732825919"
+"T";"";"";"";"24/08/2009";"JI";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122621989#0.12717127060621547"
+"E";"675";"Valeurs comptables des éléments d'actif";"55000,00";"";"D";"org.chorem.callao.entity.Entry#1251122653523#0.9800447824012739"
+"E";"215";"Valeurs comptables des éléments d'actif";"55000,00";"";"C";"org.chorem.callao.entity.Entry#1251122711451#0.5595695986865354"
+"T";"";"";"";"24/08/2009";"JI";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122717646#0.960787602078723"
+"E";"654";"Pertes sur créances irrécouvrables";"6000,00";"";"D";"org.chorem.callao.entity.Entry#1251122726310#0.9990685787917355"
+"E";"410";"Pertes sur créances irrécouvrables";"6000,00";"";"C";"org.chorem.callao.entity.Entry#1251122744611#0.5108453758420318"
+"T";"";"";"";"24/08/2009";"JI";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122747431#0.08635069776817916"
+"E";"6037";"Variation des stocks de marchandises";"125000,00";"";"D";"org.chorem.callao.entity.Entry#1251122758719#0.4217970530983909"
+"E";"37";"Variation des stocks de marchandises";"125000,00";"";"C";"org.chorem.callao.entity.Entry#1251122777731#0.24699516170485203"
+"T";"";"";"";"24/08/2009";"JI";"01/08/2009";"org.chorem.callao.entity.Transaction#1251122779086#0.38833851856989055"
+"E";"37";"Stocks de marchandises";"130000,00";"";"D";"org.chorem.callao.entity.Entry#1251122787851#0.0952120029884368"
+"E";"6037";"Stocks de marchandises";"130000,00";"";"C";"org.chorem.callao.entity.Entry#1251122798839#0.7360187529897154"
+"T";"";"";"";"24/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1251125363732#0.22731044682790846"
+"E";"101";"Stocks de marchandises";"1100000,00";"";"C";"org.chorem.callao.entity.Entry#1251125557054#0.3580477132920168"
+"E";"37";"Stocks de marchandises";"125000,00";"";"D";"org.chorem.callao.entity.Entry#1251125376067#0.5391912274641554"
+"E";"215";"Stocks de marchandises";"200000,00";"";"D";"org.chorem.callao.entity.Entry#1251127450425#0.8323002278549227"
+"E";"512";"Stocks de marchandises";"140000,00";"";"D";"org.chorem.callao.entity.Entry#1251125534283#0.10008495532699258"
+"E";"53";"Stocks de marchandises";"45000,00";"";"D";"org.chorem.callao.entity.Entry#1251125547037#0.6483279409654836"
+"E";"207";"Stocks de marchandises";"180000,00";"";"D";"org.chorem.callao.entity.Entry#1251127490852#0.3615695149969661"
+"E";"410";"Stocks de marchandises";"60000,00";"";"D";"org.chorem.callao.entity.Entry#1251127468578#0.030559628105331083"
+"E";"213";"Stocks de marchandises";"500000,00";"";"D";"org.chorem.callao.entity.Entry#1251126813324#0.201870924893077"
+"E";"400";"Stocks de marchandises";"150000,00";"";"C";"org.chorem.callao.entity.Entry#1251127481309#0.6639440098349074"
+"T";"";"";"";"24/08/2009";"JV";"01/01/2009";"org.chorem.callao.entity.Transaction#1251125558862#0.868317447057742"
+"E";"211";"Terrains";"800000,00";"";"D";"org.chorem.callao.entity.Entry#1251126095634#0.8236014377643043"
+"E";"164";"Terrains";"800000,00";"";"C";"org.chorem.callao.entity.Entry#1251126136985#0.037203487234930055"
Added: trunk/doc/exemples/cas_1_enonce
===================================================================
--- trunk/doc/exemples/cas_1_enonce (rev 0)
+++ trunk/doc/exemples/cas_1_enonce 2009-08-26 15:17:26 UTC (rev 2692)
@@ -0,0 +1,405 @@
+M. François crée une entreprise et apporte un matériel de 5 000 et une somme de 3 000 en espèces. Il effectue ensuite les opérations suivantes au cours de son premier exercice :
+
+
+ 2. Il achète pour 6 000 de marchandises dont il ne paie que 1 000 au comptant.
+ 3.
+ 4. Il vend pour 9 000 de marchandises à crédit et 5 000 au comptant.
+ 5.
+ 6. Il achète du mobilier pour 2 000 qu’il paie au comptant.
+ 7.
+ 8. Il paie au comptant pour 1 500 de taxes.
+ 9.
+ 10. Un client lui règle une somme de 4 000.
+ 11.
+ 12. Il règle une partie de ses dettes d’achats de marchandises pour 3 000.
+ 13.
+ 14. Il règle pour 2 500 de salaires.
+
+
+
+==========================
+
+
+
+
+---------------- 00 - 00 ----------------
+
+
+
+
+
+
+
+21
+
+
+Immobilisations corporelles
+
+
+5 000,00
+
+
+
+
+53
+
+
+Caisse
+
+
+3 000,00
+
+
+
+
+101
+
+
+Capital individuel ou social
+
+
+
+
+
+8 000,00
+
+
+
+
+Apports
+
+
+
+
+
+
+
+
+
+
+---------------- 01 - 01 ----------------
+
+
+
+
+
+
+
+607
+
+
+Achats de marchandises
+
+
+6 000,00
+
+
+
+
+401
+
+
+Fournisseurs
+
+
+
+
+
+5 000,00
+
+53
+
+
+Caisse
+
+
+
+
+
+1 000,00
+
+
+
+
+Achat de marchandises
+
+
+
+
+
+
+
+
+
+
+---------------- 02 - 02 ----------------
+
+
+
+
+
+
+
+411
+
+
+Clients
+
+
+5 000,00
+
+
+
+
+53
+
+
+Caisse
+
+
+9 000,00
+
+
+
+
+707
+
+
+Ventes de marchandises
+
+
+
+
+
+14 000,00
+
+
+
+
+Ventes de marchandises
+
+
+
+
+
+
+
+
+
+
+---------------- 03 - 03 ----------------
+
+
+
+
+
+
+
+218
+
+
+Autres immobilisations corporelles
+
+
+2 000,00
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+2 000,00
+
+
+
+
+Achat de mobilier
+
+
+
+
+
+
+
+
+
+
+---------------- 04 - 04 ----------------
+
+
+
+
+
+
+
+63
+
+
+Impôts, taxes et versements assimilés
+
+
+1 500,00
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+1 500,00
+
+
+
+
+Taxes
+
+
+
+
+
+
+
+
+
+
+---------------- 05 - 05 ----------------
+
+
+
+
+
+
+
+53
+
+
+Caisse
+
+
+4 000,00
+
+
+
+
+411
+
+
+Clients
+
+
+
+
+
+4 000,00
+
+
+
+
+Réglement client
+
+
+
+
+
+
+
+
+
+
+---------------- 06 - 06 ----------------
+
+
+
+
+
+
+
+401
+
+
+Fournisseurs
+
+
+3 000,00
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+3 000,00
+
+
+
+
+Paiement des fournisseurs
+
+
+
+
+
+
+
+
+
+
+---------------- 07 - 07 ----------------
+
+
+
+
+
+
+
+64
+
+
+Charges de personnel
+
+
+2 500,00
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+2 500,00
+
+
+
+
+Salaires
+
+
+
+
+
+
Added: trunk/doc/exemples/cas_2_enonce
===================================================================
--- trunk/doc/exemples/cas_2_enonce (rev 0)
+++ trunk/doc/exemples/cas_2_enonce 2009-08-26 15:17:26 UTC (rev 2692)
@@ -0,0 +1,1019 @@
+Journal
+
+
+
+---------------- - 01 ----------------
+
+
+
+607
+
+
+Achats de marchandises
+
+
+55 000
+
+
+400
+
+
+Fournisseurs et comptes
+
+
+rattachés
+
+
+
+
+
+55 000
+
+
+
+
+ACHAT MARCHANDISES
+
+---------------- - 02 ----------------
+
+
+512
+
+
+Banques
+
+
+68 000
+
+
+707
+
+
+Ventes de marchandises
+
+
+68 000
+
+
+
+
+VENTES DE MARCHAND.
+
+
+---------------- - 03 ----------------
+
+
+
+512
+
+
+Banques
+
+
+10 000
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+10 000
+
+
+
+
+DEPOT D'ESPECES
+
+
+---------------- - 04 ----------------
+
+
+
+
+
+
+
+512
+
+
+Banques
+
+
+35 000
+
+
+
+
+53
+
+
+Caisse
+
+
+2 500
+
+
+
+
+410
+
+
+Clients et comptes rattachés
+
+
+
+
+
+37 500
+
+
+
+
+REGLEMENTS CLIENTS
+
+
+
+
+
+
+
+
+
+
+---------------- - 05 ----------------
+
+
+
+
+
+
+
+410
+
+
+Clients et comptes rattachés
+
+
+120 000
+
+
+
+
+707
+
+
+Ventes de marchandises
+
+
+
+
+
+120 000
+
+
+
+
+VENTES MARCHANDISES
+
+
+
+
+
+
+
+
+
+
+---------------- - 06 ----------------
+
+
+
+
+
+
+
+400
+
+
+Fournisseurs et comptes rattachés
+
+
+5 000
+
+
+
+
+607
+
+
+Achats de marchandises
+
+
+
+
+
+5 000
+
+
+
+
+RETOUR SUR ACHATS
+
+
+
+
+
+
+
+
+
+
+---------------- - 07 ----------------
+
+
+
+
+
+
+
+63
+
+
+Impôts, taxes et versements assimilés
+
+
+12 000
+
+
+
+
+512
+
+
+Banques
+
+
+
+
+
+12 000
+
+
+
+
+IMPOTS
+
+
+
+
+
+
+
+
+
+
+---------------- - 08 ----------------
+
+
+
+
+
+
+
+641
+
+
+Rémunérations du personnel
+
+
+4 000
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+4 000
+
+
+
+
+SALAIRES
+
+
+
+
+
+
+
+
+
+
+---------------- - 09 ----------------
+
+
+
+
+
+
+
+512
+
+
+Banques
+
+
+40 000
+
+
+
+
+775
+
+
+Produits des cessions
+
+
+
+
+
+
+
+
+
+
+d'éléments d'actif
+
+
+
+
+
+40 000
+
+
+
+
+CESSION MATERIEL
+
+
+
+
+
+
+
+
+
+
+---------------- - 10 ----------------
+
+
+
+
+
+
+
+400
+
+
+Fournisseurs et comptes rattachés
+
+
+24 000
+
+
+
+
+512
+
+
+Banques
+
+
+
+
+
+24 000
+
+
+
+
+REGLEMENT FOURNISS.
+
+
+
+
+
+
+
+
+
+
+---------------- - 11 ----------------
+
+
+
+
+
+
+
+164
+
+
+Emprunts auprès des établissements de
+
+
+
+
+
+
+
+
+
+
+crédit
+
+
+100 000
+
+
+
+
+661
+
+
+Charges d'intérêts
+
+
+8 000
+
+
+
+
+512
+
+
+Banques
+
+
+
+
+
+108 000
+
+
+
+
+ECHEANCE EMPRUNT
+
+
+
+
+
+
+
+
+
+
+---------------- - 12 ----------------
+
+
+
+
+
+
+
+645
+
+
+Charges de sécurité sociale et de
+
+
+
+
+
+
+
+
+
+
+prévoyance
+
+
+1 500
+
+
+
+
+512
+
+
+Banques
+
+
+
+
+
+1 500
+
+
+
+
+CHARGES SOCIALES
+
+
+
+
+
+
+
+
+
+
+---------------- - 13 ----------------
+
+
+
+
+
+
+
+626
+
+
+Frais postaux et frais de
+
+
+
+
+
+
+
+
+
+
+télécommunications
+
+
+500
+
+
+
+
+53
+
+
+Caisse
+
+
+
+
+
+500
+
+
+
+
+ACHAT TIMBRES POSTE
+
+
+
+
+
+
+
+
+
+
+---------------- - 14 ----------------
+
+
+
+
+
+
+
+623
+
+
+Publicité, publications, relations
+
+
+
+
+
+
+
+
+
+
+publiques
+
+
+2 100
+
+
+
+
+512
+
+
+Banques
+
+
+
+
+
+2 100
+
+
+
+
+PUBLICITE
+
+
+
+
+
+
+
+
+
+
+---------------- - 15 ----------------
+
+
+
+
+
+
+
+215
+
+
+Installations techniques, matériels et
+
+
+
+
+
+
+
+
+
+
+outillages industriels
+
+
+70 000
+
+
+
+
+512
+
+
+Banques
+
+
+
+
+
+70 000
+
+
+
+
+ACHAT MATERIEL
+
+
+
+
+
+
+
+
+
+
+---------------- IN - 01 ----------------
+
+
+
+
+
+
+
+675
+
+
+Valeurs comptables des éléments d'actif
+
+
+
+
+
+
+
+
+
+
+cédés
+
+
+55 000
+
+
+
+
+215
+
+
+Installations techniques,
+
+
+
+
+
+
+
+
+
+
+matériels et outillages
+
+
+
+
+
+
+
+
+
+
+industriels
+
+
+
+
+
+55 000
+
+
+
+
+SOLDE MATERIEL CEDE
+
+
+
+
+
+
+
+
+
+
+---------------- IN - 02 ----------------
+
+
+
+
+
+
+
+654
+
+
+Pertes sur créances irrécouvrables
+
+
+6 000
+
+
+
+
+410
+
+
+Clients et comptes rattachés
+
+
+
+
+
+6 000
+
+
+
+
+CLIENT INSOLVABLE
+
+
+
+
+
+
+
+
+
+
+---------------- IN - 03 ----------------
+
+
+
+
+
+
+
+681
+
+
+Dotations aux amortissements et
+
+
+
+
+
+
+
+
+
+
+provisions - charges d'exploitation
+
+
+44 000
+
+
+
+
+2813
+
+
+Amortissement des constructions
+
+
+
+
+
+20 000
+
+2815
+
+
+Amortissement des
+
+
+
+
+
+
+
+
+
+
+installations techniques,
+
+
+
+
+
+
+
+
+
+
+matériel et outillage
+
+
+
+
+
+
+
+
+
+
+industriels
+
+
+
+
+
+24 000
+
+
+
+
+AMORTISSEMENTS
+
+
+
+
+
+
+
+
+
+
+---------------- IN - 04 ----------------
+
+
+
+
+
+
+
+6037
+
+
+Variation des stocks de marchandises
+
+
+125 000
+
+
+
+
+37
+
+
+Stocks de marchandises
+
+
+
+
+
+125 000
+
+
+
+
+STOCK INITIAL
+
+
+
+
+
+
+
+
+
+
+---------------- IN - 05 ----------------
+
+
+
+
+
+
+
+37
+
+
+Stocks de marchandises
+
+
+130 000
+
+
+
+
+6037
+
+
+Variation des stocks de
+
+
+
+
+
+
+
+
+
+
+marchandises
+
+
+
+
+
+130 000
+
+
+
+
+STOCK FINAL
Added: trunk/doc/exemples/pcg
===================================================================
--- trunk/doc/exemples/pcg (rev 0)
+++ trunk/doc/exemples/pcg 2009-08-26 15:17:26 UTC (rev 2692)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Callao>
+ <informations date="Fri Aug 07 11:35:27 CEST 2009" user="Name user" company="Name company" />
+ <save>
+ <accounts>
+ <account id="org.chorem.callao.entity.Account#1249555347959#0.9019304796412684" label="COMPTES D'IMMOBILISATIONS" type="actif" accountNumber="2" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555348338#0.04260276658110562" label="Frais d'établissement" type="Actif" accountNumber="201" masterAccount="2" />
+ <account id="org.chorem.callao.entity.Account#1249555348347#0.18726180615226806" label="Droit au bail" type="Actif" accountNumber="206" masterAccount="2" />
+ <account id="org.chorem.callao.entity.Account#1249555497020#0.6505535213374983" label="Immobilisations corporelles" type="Actif" accountNumber="21" masterAccount="2" />
+ <account id="org.chorem.callao.entity.Account#1249555618637#0.47602527280737383" label="Autres immobilisations corporelles" type="Actif" accountNumber="218" masterAccount="21" />
+ <account id="org.chorem.callao.entity.Account#1249555347984#0.4908833205081513" label="COMPTES DE STOCKS ET EN-COURS" type="actif" accountNumber="3" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555347993#0.01567348299581306" label="COMPTES DE TIERS" type="actif" accountNumber="4" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555822435#0.06041671027235429" label="Fournisseurs" type="Passif" accountNumber="401" masterAccount="4" />
+ <account id="org.chorem.callao.entity.Account#1249555583700#0.6265947943023162" label="Clients" type="Actif" accountNumber="411" masterAccount="4" />
+ <account id="org.chorem.callao.entity.Account#1249555348000#0.6004750737819512" label="COMPTES FINANCIERS" type="actif" accountNumber="5" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555511423#0.011319837765867757" label="Caisse" type="Actif" accountNumber="53" masterAccount="5" />
+ <account id="org.chorem.callao.entity.Account#1249555348022#0.930622399756405" label="COMPTES DE CHARGES" type="actif" accountNumber="6" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555348378#0.8374727763221947" label="ACHATS" type="Charge" accountNumber="60" masterAccount="6" />
+ <account id="org.chorem.callao.entity.Account#1249555548999#0.018490025064101023" label="Achas de marchandises" type="Charge" accountNumber="607" masterAccount="60" />
+ <account id="org.chorem.callao.entity.Account#1249555636400#0.5473094310405552" label="Impôts, taxes et versements assimilés" type="Charge" accountNumber="63" masterAccount="6" />
+ <account id="org.chorem.callao.entity.Account#1249555657935#0.35366073929481334" label="Charges de personnel" type="Charge" accountNumber="64" masterAccount="6" />
+ <account id="org.chorem.callao.entity.Account#1249555348027#0.6782322672056709" label="COMPTES DE PRODUITS" type="actif" accountNumber="7" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555599917#0.5953808167367928" label="Ventes de marchandises" type="Produit" accountNumber="707" masterAccount="7" />
+ <account id="org.chorem.callao.entity.Account#1249555348076#0.6190508684748437" label="COMPTES SPECIAUX" type="actif" accountNumber="8" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555347952#0.9924023380704713" label="COMPTES DE CAPITAUX" type="Passif" accountNumber="1" masterAccount="0" />
+ <account id="org.chorem.callao.entity.Account#1249555348157#0.3681372547493901" label="Ecarts de réévaluation" type="Passif" accountNumber="105" masterAccount="1" />
+ <account id="org.chorem.callao.entity.Account#1249555348211#0.8970560365362152" label="Ecarts de réévaluation" type="actif" accountNumber="10500000" masterAccount="105" />
+ <account id="org.chorem.callao.entity.Account#1249555348169#0.21975217717147555" label="Réserves" type="Passif" accountNumber="106" masterAccount="1" />
+ <account id="org.chorem.callao.entity.Account#1249555348221#0.20073728197870266" label="Réserve légale" type="actif" accountNumber="1061" masterAccount="106" />
+ <account id="org.chorem.callao.entity.Account#1249555348269#0.3388466646762297" label="Réserve légale" type="actif" accountNumber="10610000" masterAccount="1061" />
+ <account id="org.chorem.callao.entity.Account#1249555348301#0.09087057997481063" label="réserve légale" type="actif" accountNumber="10611000" masterAccount="1061" />
+ <account id="org.chorem.callao.entity.Account#1249555348230#0.6918799658776698" label="Réserves indisponibles" type="actif" accountNumber="1062" masterAccount="106" />
+ <account id="org.chorem.callao.entity.Account#1249555348308#0.6217734109884933" label="Réserves indisponibles" type="actif" accountNumber="10620000" masterAccount="1062" />
+ <account id="org.chorem.callao.entity.Account#1249555348244#0.009767392197928992" label="Réserves statutaires ou contractuelles" type="actif" accountNumber="1063" masterAccount="106" />
+ <account id="org.chorem.callao.entity.Account#1249555348315#0.8177617600611057" label="Réserves statutaires ou contractuelles" type="actif" accountNumber="10630000" masterAccount="1063" />
+ <account id="org.chorem.callao.entity.Account#1249555348253#0.7582011362212686" label="Réserves réglementes" type="actif" accountNumber="1064" masterAccount="106" />
+ <account id="org.chorem.callao.entity.Account#1249555348329#0.8489995807518893" label="Réserves réglementes" type="acif" accountNumber="10640000" masterAccount="1064" />
+ <account id="org.chorem.callao.entity.Account#1249555348262#0.4019019740691401" label="Autres réserves" type="actif" accountNumber="1068" masterAccount="106" />
+ <account id="org.chorem.callao.entity.Account#1249555348140#0.7846696113518526" label="Capital" type="Passif" accountNumber="101" masterAccount="1" />
+ <account id="org.chorem.callao.entity.Account#1249555348184#0.7230203499285881" label="Capital" type="actif" accountNumber="10100000" masterAccount="101" />
+ <account id="org.chorem.callao.entity.Account#1249555348200#0.3427497656667253" label="Capital non amorti" type="actif" accountNumber="10131000" masterAccount="101" />
+ </accounts>
+ </save>
+</Callao>
+
1
0