Browse Source

[IMP] emc_taxhelter_report: PDF fit on one page

Updated xml reports and css in order to have one page certificate.
Made the same design for the signature on both report
In CSS file: Changed the font size to make it smaller in px in place of pt
Changed the size of the image for the signature to make it smaller
pull/1/head
Virginie Dewulf 6 years ago
committed by Rémy Taymans
parent
commit
9d4b145d87
  1. 8
      easy_my_coop_taxshelter_report/reports/tax_shelter_resold_report.xml
  2. 2
      easy_my_coop_taxshelter_report/reports/tax_shelter_shares_report.xml
  3. 27
      easy_my_coop_taxshelter_report/reports/tax_shelter_subscription_report.xml
  4. 4
      easy_my_coop_taxshelter_report/static/src/css/coop_report.css

8
easy_my_coop_taxshelter_report/reports/tax_shelter_resold_report.xml

@ -63,13 +63,13 @@
<div>
Cher membre,
</div>
<div style="position:relative;top:30px;">
<div style="position:relative;top:10px;">
A la date du <span t-field="o.partner_id.effective_date"/>, vous êtes devenu coopérateur de <span t-field="o.company_id.name"/>.<br/>
<br/>
Cette lettre confirme qu’en date du <span t-field="o.declaration_id.date_to"/>, vous êtes toujours en possession de parts de <span t-field="o.company_id.name"/>
pour un montant total de <span t-field="o.partner_id.total_value" t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/> euros et que la condition prévue à l’article 145(26), $3, alinéa 2, CIR92 est remplie.
</div>
<div style="position:relative;top:45px;">
<div style="position:relative;top:35px;">
L' Article 145/26, CIR 92 sur les revenus <span t-field="o.declaration_id.fiscal_year"/>, connu aussi comme normative Tax Shelter, donnent droit à une réduction d’impôt à hauteur de 45% du montant de la valeur des parts souscrites depuis <span t-field="o.declaration_id.month_from"/> (et avant <span t-field="o.declaration_id.month_to"/> pour la déclaration des revenus <span t-field="o.declaration_id.fiscal_year"/>).<br/>
<br/>
Cette lettre vaut donc comme certificat que <span t-field="o.company_id.name"/> remplit en effet tous les critères permettant un tel avantage fiscal. Dans les grandes lignes : <br/>
@ -92,7 +92,6 @@
Cordialement,
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6 pull-left" style="position:relative;top:100px;font-size:16;color:black;font-family:Roboto-Regular;">
@ -103,12 +102,13 @@
<strong><span t-field="o.company_id.board_representative"/></strong>
</div>
<div style="position:relative;top:25px;">
<img t-if="o.company_id.signature_scan" t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan" style="width:240px;height:200px;padding-bottom:5px;"/>
<img t-if="o.company_id.signature_scan" t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan" style="width:140px;height:100px;padding-bottom:5px;"/>
</div>
</div>
</div>
</div>
</div>
</div>
</t>
</template>

2
easy_my_coop_taxshelter_report/reports/tax_shelter_shares_report.xml

@ -152,7 +152,7 @@
<strong><span t-field="o.company_id.board_representative"/></strong>
</div>
<div style="position:relative;top:25px;">
<img t-if="o.company_id.signature_scan" t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan" style="width:240px;height:200px;padding-bottom:5px;"/>
<img t-if="o.company_id.signature_scan" t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan" style="width:140px;height:100px;padding-bottom:5px;"/>
</div>
</div>
</div>

27
easy_my_coop_taxshelter_report/reports/tax_shelter_subscription_report.xml

@ -123,21 +123,18 @@
]]>
<br/>
Cordialement,
</div>
</div>
</div>
<div class="row">
<div class="col-xs-6 pull-left" style="position:relative;top:100px;font-size:16;color:black;font-family:Roboto-Regular;">
<div style="position:relative;top:10px;">
Pour le Conseil d'administration de <span t-field="o.company_id.name"/>.
</div>
<div style="position:relative;top:20px;">
<strong><span t-field="o.company_id.board_representative"/></strong>
</div>
<div style="position:relative;top:25px;">
<img t-if="o.company_id.signature_scan" t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan" style="width:240px;height:200px;padding-bottom:5px;"/>
</div>
</div>
</div>
<div class="col-xs-6 pull-left" style="position:relative;top:100px;font-size:16;color:black;font-family:Roboto-Regular;">
<div style="position:relative;top:10px;">
Pour le Conseil d'administration de <span t-field="o.company_id.name"/>.
</div>
<div style="position:relative;top:20px;">
<strong><span t-field="o.company_id.board_representative"/></strong>
</div>
<div style="position:relative;top:25px;">
<img t-if="o.company_id.signature_scan" t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan" style="width:140px;height:100px;padding-bottom:5px;"/>
</div>
</div>
</div>
</div>

4
easy_my_coop_taxshelter_report/static/src/css/coop_report.css

@ -8,12 +8,12 @@
.easymy-coop-normal {
font-family:Roboto-Regular;
font-size:12pt;
font-size:12px;
line-height:16pt;
}
.easymy-coop-info-title {
font-family:Roboto-Bold;
font-size:12pt;
font-size:12px;
line-height:16pt;
}
Loading…
Cancel
Save