bzr revid: olt@tinyerp.com-20081014141025-srp58bzsx993kwq4
This commit is contained in:
Olivier Laurent
2008-10-14 16:10:25 +02:00
5 changed files with 75 additions and 50 deletions
@@ -137,9 +137,11 @@ class accounting_report_indicator(report_sxw.rml_parse):
'expression':obj_ind.expression,
'disp_graph':obj_ind.disp_graph,
'note':obj_ind.note,
'type':obj_ind.type
'type':obj_ind.type,
'last':False,
}
result.append(res)
result[-1]['last']=True
return result
def getarray(self,data,object):
@@ -36,12 +36,7 @@
<blockTableStyle id="Table3">
<blockAlignment value="LEFT"/>
<blockValign value="TOP"/>
<blockBackground colorName="#ffffff" start="0,0" stop="0,0"/>
<blockBackground colorName="#ffffff" start="1,0" stop="1,0"/>
<blockBackground colorName="#ffffff" start="2,0" stop="2,0"/>
<blockBackground colorName="#ffffff" start="0,1" stop="0,1"/>
<blockBackground colorName="#ffffff" start="1,1" stop="1,1"/>
<blockBackground colorName="#ffffff" start="2,1" stop="2,1"/>
<lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,0" stop="-1,-1"/>
</blockTableStyle>
<initialize>
<paraStyle name="all" alignment="justify"/>
@@ -56,7 +51,7 @@
<paraStyle name="P8" fontName="Times-Bold" fontSize="11.0" leading="14" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
<paraStyle name="P9" fontName="Times-Roman" fontSize="8.0" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
<paraStyle name="P10" fontName="Times-Roman" fontSize="16.0" leading="20" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
<paraStyle name="P11" fontName="Times-Roman" fontSize="11.0" leading="14" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
<paraStyle name="P11" fontName="Times-Roman" fontSize="10.0" leading="14" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
<paraStyle name="P12" fontName="Times-Roman" fontSize="11.0" leading="14" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
<paraStyle name="P13" fontName="Times-Roman" fontSize="11.0" leading="14" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
<paraStyle name="P14" fontName="Times-Roman" fontSize="11.0" leading="14" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
@@ -78,7 +73,7 @@
</para>
</td>
<td>
<para style="P10">Accounting Test</para>
<para style="P10">Indicators</para>
</td>
<td>
<para style="P2">
@@ -120,7 +115,6 @@
</para>
<section>
<para style="P1">[[ repeatIn(lines(data['form']),'o')]]</para>
<para>[['-'* 155]]</para>
<blockTable colWidths="362.0,166.0" style="Table3">
<tr>
<td>
@@ -131,6 +125,9 @@
</td>
</tr>
</blockTable>
<para style="P3">
<font color="white"> </font>
</para>
<para style="P1">[[ o['disp_graph'] and setTag('para','image',{'file':test(data['form'],o)}) or removeParentNode('para') ]]</para>
<section>
<para style="P13">[[ repeatIn(getarray(data['form'],o),'array',td=len(data['form']['base_selection'][0][2])) ]]</para>
@@ -150,11 +147,37 @@
<para style="P3">
<font color="white"> </font>
</para>
<blockTable colWidths="528.0" repeatRows="1" style="Table3">
<tr>
<td>
<para style="P11"><b>Expression :</b> [[ o['expression'] ]]</para>
<para style="P11"><b>Notes :</b> [[ o['note'] ]]</para>
</td>
</tr>
</blockTable>
<para style="P3">
<font color="white"> </font>
</para>
<blockTable colWidths="528.0" repeatRows="1" style="Table3">
<tr>
<td>
<para style="P11"><b>Notes :</b> [[ o['note'] ]]</para>
</td>
</tr>
</blockTable>
<pageBreak>[[ o['last'] and removeParentNode('pageBreak')]]</pageBreak>
<para style="P3">
<font color="white"> </font>
</para>
<blockTable colWidths="362.0,166.0" repeatRows="1" style="Table4">
<tr>
<td>
<para style="P6">Name[[ o['last'] and removeParentNode('blockTable')]]</para>
</td>
<td>
<para style="P6">Code</para>
</td>
</tr>
</blockTable>
</section>
</story>
</document>
+19 -19
View File
@@ -1,21 +1,21 @@
"expression","note","parent_id","sequence","badness_limit","goodness_limit","type","code","name"
0,,,,0,2,"indicator","BILAN","Bilan"
0,,,,0,1,"indicator","BILAN","Bilan"
"report('BIMMO','BSTOCK','BREAL','BDISPO')",,"BILAN",,0,1,"fiscal","Actif","Actif"
"balance('2')",,"Actif",,5,45,"indicator","BIMMO","Valeurs immobilisées"
"balance('3')",,"Actif",2,3,12,"indicator","BSTOCK","Stocks"
"balance('4')",,"Actif",3,0,78,"indicator","BREAL","Réalisable"
"balance('5')",,"Actif",4,4,12,"fiscal","BDISPO","Disponible"
"report('BCAP') + report('BRESNET')",,"BILAN",1,0,2,"fiscal","PASSIF","Passif"
"balance('1')",,"PASSIF",1,0,3,"indicator","BCAP","Capitaux propores"
"-balance('7')+balance('6')",,"PASSIF",,0,5,"fiscal","BRESNET","Résultat net"
0,,,,1,9,"fiscal","CRES","Compte des résultats"
"report('CCHAR','CBENEF')",,"CRES",,1,8,"fiscal","CRESACTIF","Résultat Actif"
"balance('6')",,"CRESACTIF",,0,0,"fiscal","CCHAR","Total des charges"
"report('CRESPROD')",,"CRES",,3,12,"fiscal","CRESPASSIF","Résultat Passif"
"-balance('7')",,"CRESPASSIF",,2,4,"fiscal","CRESPROD","Total des produits"
"-balance('7')+balance('6')",,"CRESACTIF",,"2",8,"fiscal","CBENEF","Résultat (Bénéfice)"
0,,,,0,7,"indicator","IIMMO","Immobilisations"
"balance('1')/balance(map(str(range(21,29))))","Dans une entreprise normalement équilibrée, les valeurs immobilisées sont couvertes en premier lieu par les capitaux propres et, en second lieu, par tout ou partie du passif à long terme. Idéalement, ce ratio (rapport entre capitaux permanents et les valeurs immobilisées) doit être suppérieur à l'unité.","IIMMO",,0,9,"indicator","CIMMO","Couverture des immobilisations"
0,,,,0,0,"indicator","ITRE","Trésorerie"
"balance('3','4','5') / balance('101','13','15','16','17','18')","Détermine si l'entreprise a la possibilité de s'acquitter de ses dettes à court terme dans des conditions normales. Calculé comme suit: (Stocks + Réalisable + Disponible ) / Passif exigible à court terme","ITRE",,0,0,"indicator","IFR","Indice du fond de roulement"
"balance('4','5') / balance('101','13','15','16','17','18')",,"ITRE",,0,6,"indicator","RTRE","Ratio de trésorerie"
"balance('2')",,"Actif",,0,1,"indicator","BIMMO","Valeurs immobilisées"
"balance('3')",,"Actif",2,0,1,"indicator","BSTOCK","Stocks"
"balance('4')",,"Actif",3,0,1,"indicator","BREAL","Réalisable"
"balance('5')",,"Actif",4,0,1,"fiscal","BDISPO","Disponible"
"report('BCAP') + report('BRESNET')",,"BILAN",1,0,1,"fiscal","PASSIF","Passif"
"balance('1')",,"PASSIF",1,0,1,"indicator","BCAP","Capitaux propores"
"-balance('7')+balance('6')",,"PASSIF",,0,1,"fiscal","BRESNET","Résultat net"
0,,,,0,1,"fiscal","CRES","Compte des résultats"
"report('CCHAR','CBENEF')",,"CRES",,0,1,"fiscal","CRESACTIF","Résultat Actif"
"balance('6')",,"CRESACTIF",,0,1,"fiscal","CCHAR","Total des charges"
"report('CRESPROD')",,"CRES",,0,1,"fiscal","CRESPASSIF","Résultat Passif"
"-balance('7')",,"CRESPASSIF",,0,1,"fiscal","CRESPROD","Total des produits"
"-balance('7')+balance('6')",,"CRESACTIF",,0,1,"fiscal","CBENEF","Résultat (Bénéfice)"
0,,,,0,1,"indicator","IIMMO","Immobilisations"
"balance('1')/balance(map(str(range(21,29))))","Dans une entreprise normalement équilibrée, les valeurs immobilisées sont couvertes en premier lieu par les capitaux propres et, en second lieu, par tout ou partie du passif à long terme. Idéalement, ce ratio (rapport entre capitaux permanents et les valeurs immobilisées) doit être suppérieur à l'unité.","IIMMO",,0,1,"indicator","CIMMO","Couverture des immobilisations"
0,,,,0,1,"indicator","ITRE","Trésorerie"
"balance('3','4','5') / balance('101','13','15','16','17','18')","Détermine si l'entreprise a la possibilité de s'acquitter de ses dettes à court terme dans des conditions normales. Calculé comme suit: (Stocks + Réalisable + Disponible ) / Passif exigible à court terme","ITRE",,0,1,"indicator","IFR","Indice du fond de roulement"
"balance('4','5') / balance('101','13','15','16','17','18')",,"ITRE",,0,1,"indicator","RTRE","Ratio de trésorerie"
1 expression note parent_id sequence badness_limit goodness_limit type code name
2 0 0 2 1 indicator BILAN Bilan
3 report('BIMMO','BSTOCK','BREAL','BDISPO') BILAN 0 1 fiscal Actif Actif
4 balance('2') Actif 5 0 45 1 indicator BIMMO Valeurs immobilisées
5 balance('3') Actif 2 3 0 12 1 indicator BSTOCK Stocks
6 balance('4') Actif 3 0 78 1 indicator BREAL Réalisable
7 balance('5') Actif 4 4 0 12 1 fiscal BDISPO Disponible
8 report('BCAP') + report('BRESNET') BILAN 1 0 2 1 fiscal PASSIF Passif
9 balance('1') PASSIF 1 0 3 1 indicator BCAP Capitaux propores
10 -balance('7')+balance('6') PASSIF 0 5 1 fiscal BRESNET Résultat net
11 0 1 0 9 1 fiscal CRES Compte des résultats
12 report('CCHAR','CBENEF') CRES 1 0 8 1 fiscal CRESACTIF Résultat Actif
13 balance('6') CRESACTIF 0 0 1 fiscal CCHAR Total des charges
14 report('CRESPROD') CRES 3 0 12 1 fiscal CRESPASSIF Résultat Passif
15 -balance('7') CRESPASSIF 2 0 4 1 fiscal CRESPROD Total des produits
16 -balance('7')+balance('6') CRESACTIF 2 0 8 1 fiscal CBENEF Résultat (Bénéfice)
17 0 0 7 1 indicator IIMMO Immobilisations
18 balance('1')/balance(map(str(range(21,29)))) Dans une entreprise normalement équilibrée, les valeurs immobilisées sont couvertes en premier lieu par les capitaux propres et, en second lieu, par tout ou partie du passif à long terme. Idéalement, ce ratio (rapport entre capitaux permanents et les valeurs immobilisées) doit être suppérieur à l'unité. IIMMO 0 9 1 indicator CIMMO Couverture des immobilisations
19 0 0 0 1 indicator ITRE Trésorerie
20 balance('3','4','5') / balance('101','13','15','16','17','18') Détermine si l'entreprise a la possibilité de s'acquitter de ses dettes à court terme dans des conditions normales. Calculé comme suit: (Stocks + Réalisable + Disponible ) / Passif exigible à court terme ITRE 0 0 1 indicator IFR Indice du fond de roulement
21 balance('4','5') / balance('101','13','15','16','17','18') ITRE 0 6 1 indicator RTRE Ratio de trésorerie
+1 -1
View File
@@ -3,7 +3,7 @@
"version" : "1.0",
"author" : "Tiny",
"website" : "http://openerp.com",
"category" : "Vertical Modules/Parametrization",
"category" : "Localisation/Account Charts",
"description": """
This module install:
+19 -19
View File
@@ -1,21 +1,21 @@
"expression","note","parent_id","sequence","badness_limit","goodness_limit","type","code","name"
0,,,,0,2,"indicator","BILAN","Bilan"
0,,,,0,1,"indicator","BILAN","Bilan"
"report('BIMMO','BSTOCK','BREAL','BDISPO')",,"BILAN",,0,1,"fiscal","Actif","Actif"
"balance('2')",,"Actif",,5,45,"indicator","BIMMO","Valeurs immobilisées"
"balance('3')",,"Actif",2,3,12,"indicator","BSTOCK","Stocks"
"balance('4')",,"Actif",3,0,78,"indicator","BREAL","Réalisable"
"balance('5')",,"Actif",4,4,12,"fiscal","BDISPO","Disponible"
"report('BCAP') + report('BRESNET')",,"BILAN",1,0,2,"fiscal","PASSIF","Passif"
"balance('1')",,"PASSIF",1,0,3,"indicator","BCAP","Capitaux propores"
"-balance('7')+balance('6')",,"PASSIF",,0,5,"fiscal","BRESNET","Résultat net"
0,,,,1,9,"fiscal","CRES","Compte des résultats"
"report('CCHAR','CBENEF')",,"CRES",,1,8,"fiscal","CRESACTIF","Résultat Actif"
"balance('6')",,"CRESACTIF",,0,0,"fiscal","CCHAR","Total des charges"
"report('CRESPROD')",,"CRES",,3,12,"fiscal","CRESPASSIF","Résultat Passif"
"-balance('7')",,"CRESPASSIF",,2,4,"fiscal","CRESPROD","Total des produits"
"-balance('7')+balance('6')",,"CRESACTIF",,"2",8,"fiscal","CBENEF","Résultat (Bénéfice)"
0,,,,0,7,"indicator","IIMMO","Immobilisations"
"balance('1')/balance(map(str(range(21,29))))","Dans une entreprise normalement équilibrée, les valeurs immobilisées sont couvertes en premier lieu par les capitaux propres et, en second lieu, par tout ou partie du passif à long terme. Idéalement, ce ratio (rapport entre capitaux permanents et les valeurs immobilisées) doit être suppérieur à l'unité.","IIMMO",,0,9,"indicator","CIMMO","Couverture des immobilisations"
0,,,,0,0,"indicator","ITRE","Trésorerie"
"balance('3','4','5') / balance('101','13','15','16','17','18')","Détermine si l'entreprise a la possibilité de s'acquitter de ses dettes à court terme dans des conditions normales. Calculé comme suit: (Stocks + Réalisable + Disponible ) / Passif exigible à court terme","ITRE",,0,0,"indicator","IFR","Indice du fond de roulement"
"balance('4','5') / balance('101','13','15','16','17','18')",,"ITRE",,0,6,"indicator","RTRE","Ratio de trésorerie"
"balance('2')",,"Actif",,0,1,"indicator","BIMMO","Valeurs immobilisées"
"balance('3')",,"Actif",2,0,1,"indicator","BSTOCK","Stocks"
"balance('4')",,"Actif",3,0,1,"indicator","BREAL","Réalisable"
"balance('5')",,"Actif",4,0,1,"fiscal","BDISPO","Disponible"
"report('BCAP') + report('BRESNET')",,"BILAN",1,0,1,"fiscal","PASSIF","Passif"
"balance('1')",,"PASSIF",1,0,1,"indicator","BCAP","Capitaux propores"
"-balance('7')+balance('6')",,"PASSIF",,0,1,"fiscal","BRESNET","Résultat net"
0,,,,0,1,"fiscal","CRES","Compte des résultats"
"report('CCHAR','CBENEF')",,"CRES",,0,1,"fiscal","CRESACTIF","Résultat Actif"
"balance('6')",,"CRESACTIF",,0,1,"fiscal","CCHAR","Total des charges"
"report('CRESPROD')",,"CRES",,0,1,"fiscal","CRESPASSIF","Résultat Passif"
"-balance('7')",,"CRESPASSIF",,0,1,"fiscal","CRESPROD","Total des produits"
"-balance('7')+balance('6')",,"CRESACTIF",,0,1,"fiscal","CBENEF","Résultat (Bénéfice)"
0,,,,0,1,"indicator","IIMMO","Immobilisations"
"balance('1')/balance(map(str(range(21,29))))","Dans une entreprise normalement équilibrée, les valeurs immobilisées sont couvertes en premier lieu par les capitaux propres et, en second lieu, par tout ou partie du passif à long terme. Idéalement, ce ratio (rapport entre capitaux permanents et les valeurs immobilisées) doit être suppérieur à l'unité.","IIMMO",,0,1,"indicator","CIMMO","Couverture des immobilisations"
0,,,,0,1,"indicator","ITRE","Trésorerie"
"balance('3','4','5') / balance('101','13','15','16','17','18')","Détermine si l'entreprise a la possibilité de s'acquitter de ses dettes à court terme dans des conditions normales. Calculé comme suit: (Stocks + Réalisable + Disponible ) / Passif exigible à court terme","ITRE",,0,1,"indicator","IFR","Indice du fond de roulement"
"balance('4','5') / balance('101','13','15','16','17','18')",,"ITRE",,0,1,"indicator","RTRE","Ratio de trésorerie"
1 expression note parent_id sequence badness_limit goodness_limit type code name
2 0 0 2 1 indicator BILAN Bilan
3 report('BIMMO','BSTOCK','BREAL','BDISPO') BILAN 0 1 fiscal Actif Actif
4 balance('2') Actif 5 0 45 1 indicator BIMMO Valeurs immobilisées
5 balance('3') Actif 2 3 0 12 1 indicator BSTOCK Stocks
6 balance('4') Actif 3 0 78 1 indicator BREAL Réalisable
7 balance('5') Actif 4 4 0 12 1 fiscal BDISPO Disponible
8 report('BCAP') + report('BRESNET') BILAN 1 0 2 1 fiscal PASSIF Passif
9 balance('1') PASSIF 1 0 3 1 indicator BCAP Capitaux propores
10 -balance('7')+balance('6') PASSIF 0 5 1 fiscal BRESNET Résultat net
11 0 1 0 9 1 fiscal CRES Compte des résultats
12 report('CCHAR','CBENEF') CRES 1 0 8 1 fiscal CRESACTIF Résultat Actif
13 balance('6') CRESACTIF 0 0 1 fiscal CCHAR Total des charges
14 report('CRESPROD') CRES 3 0 12 1 fiscal CRESPASSIF Résultat Passif
15 -balance('7') CRESPASSIF 2 0 4 1 fiscal CRESPROD Total des produits
16 -balance('7')+balance('6') CRESACTIF 2 0 8 1 fiscal CBENEF Résultat (Bénéfice)
17 0 0 7 1 indicator IIMMO Immobilisations
18 balance('1')/balance(map(str(range(21,29)))) Dans une entreprise normalement équilibrée, les valeurs immobilisées sont couvertes en premier lieu par les capitaux propres et, en second lieu, par tout ou partie du passif à long terme. Idéalement, ce ratio (rapport entre capitaux permanents et les valeurs immobilisées) doit être suppérieur à l'unité. IIMMO 0 9 1 indicator CIMMO Couverture des immobilisations
19 0 0 0 1 indicator ITRE Trésorerie
20 balance('3','4','5') / balance('101','13','15','16','17','18') Détermine si l'entreprise a la possibilité de s'acquitter de ses dettes à court terme dans des conditions normales. Calculé comme suit: (Stocks + Réalisable + Disponible ) / Passif exigible à court terme ITRE 0 0 1 indicator IFR Indice du fond de roulement
21 balance('4','5') / balance('101','13','15','16','17','18') ITRE 0 6 1 indicator RTRE Ratio de trésorerie