From ec165a5b00b1aa3c1935ae7be3ac76e7dd345fbb Mon Sep 17 00:00:00 2001
From: Juliana <juliana@le-filament.com>
Date: Wed, 29 Mar 2023 15:50:31 +0200
Subject: [PATCH] [UPD]Ajustement PDF template

---
 report/account_template.xml | 54 ++++++++++++++++-----------------
 report/report_template.xml  | 60 ++++---------------------------------
 2 files changed, 32 insertions(+), 82 deletions(-)

diff --git a/report/account_template.xml b/report/account_template.xml
index dce6201..54f25ab 100644
--- a/report/account_template.xml
+++ b/report/account_template.xml
@@ -300,7 +300,7 @@
                                     </p>
                                     <hr />
                                     <h5 class="mt32 font-weight-bold">Pour répondre à vos questions</h5>
-                                    <p>
+                                    <p class="mb-4">
                                         <span
                                             class="font-weight-bold"
                                             t-field="o.pmo_id.name"
@@ -320,7 +320,7 @@
                                             <span t-field="o.pmo_id.email" />
                                         </t>
                                     </p>
-                                    <p class="text-center font-italic">
+                                    <p class="text-center font-italic mt-4">
                                         (1) Le total à payer correspond à l’électricité autoconsommée et à l'ACCISE. La contribution d’acheminement ("TURPE") est collectée par le fournisseur du complément d’électricité<br/>
                                         (2) ACC : Auto-Consommation Collective
                                     </p>
@@ -345,8 +345,8 @@
                                         /><br />
                                     </p>
                                 </div>
-                                <div class="o_recap_table">
-                                    <div class="text-center mb32">
+                                <div class="o_recap_table mt-4">
+                                    <div class="text-center mb-4">
                                         <h3>Synthèse de votre facture</h3>
                                         <p class="font-italic">Détails en page 2</p>
                                         <h4>Période de livraison concernée : <br/>
@@ -433,7 +433,7 @@
 
                                     </table>
                                     <t t-if="o.producer_id.acc_account_payment_ids">
-                                        <div class="row mt32 mb32">
+                                        <div class="row mt-4">
                                             <div class="col-12">
                                                 <span
                                                     class="font-weight-bold"
@@ -445,14 +445,14 @@
                                             <h6>Référence facture : <t t-esc="o.name" /></h6>
                                             </div>
                                         </div>
-                                        <div class="row mt32 mb32">
-                                            <div class="col-12" style="margin-top: 10px;">
+                                        <div class="row mt-5">
+                                            <div class="col-12">
                                                 <h5>Délai de règlement: à facturation</h5>
-                                                <h5>Date limite de règlement: <span
+                                                <h5 class="mb-5">Date limite de règlement: <span
                                                         t-field="o.date_limit"
                                                         t-options="{'format': 'dd/MM/yyyy'}"
                                                     /></h5>
-                                                <p class="text-center font-italic"
+                                                <p class="text-center font-italic mt-5"
                                                 >En cas de paiement anticipé, aucun escompte ne sera accordé. Indemnités pour frais de recouvrement en cas de retard de paiement : 40.00€ sauf frais  supplémentaires. Conformément à l’article L 441-6 du Code de commerce, en cas de non paiement à l'échéance, sera appliquée une pénalité de  retard équivalente à trois fois le taux d'intérêt légal en vigueur.</p>
                                             </div>
                                         </div>
@@ -477,24 +477,24 @@
                                 <div class="col-9"></div>
                             </div>
 
-                            <div class="row mt32 mb32">
+                            <div class="row mt-4 ">
                                 <div class="col-12">
-                                    <div class="text-center">
+                                    <div class="text-center text-uppercase">
                                         <h4>Votre facture en détail</h4>
                                         <span
-                                            class="text-uppercase text-uppercase mt0 "
+                                            class="text-uppercase mt0 "
                                         >Autoconsommation Collective <t
                                                 t-esc="o.acc_operation_id.name"
                                         /></span><br />
                                     </div>
 
             <!--                    Table pour l'électricité locale-->
-                                    <p>
+                                    <h6 class="mt-4">
                                         <span
-                                        class="text-uppercase text-uppercase mt0 "
+                                        class="text-uppercase mt0 "
                                     >Electricité locale - PRM-I : <t
                                             t-esc="injection.name"
-                                        /></span><br /></p>
+                                        /></span></h6>
                                     <table
                                         class="table table-sm o_main_table"
                                         name="account_line_table"
@@ -559,21 +559,21 @@
                                             </t>
                                         </tbody>
                                     </table>
-                                    <div class="is-subtotal text-right">
-                                        <strong class="mr16">MONTANT TOTAL: </strong>
-                                        <span
+                                    <h6 class="is-subtotal text-right">
+                                        <strong class="mr-4">MONTANT TOTAL: </strong>
+                                        <span class="ml-4"
                                             t-esc="current_subtotal"
                                             t-options='{"widget": "monetary", "display_currency": o.currency_id}'
                                         />
-                                    </div>
+                                    </h6>
 
             <!--                    Table pour les taxes TCFE-->
-                                    <p>
+                                    <h6 class="mt-4">
                                         <span
-                                        class="text-uppercase text-uppercase mt0 "
+                                        class="text-uppercase mt0 "
                                     >ACCISE* - PRM-I : <t
                                             t-esc="injection.name"
-                                        /></span><br /></p>
+                                        /></span><br /></h6>
                                     <table
                                         class="table table-sm o_main_table"
                                         name="account_line_table"
@@ -642,14 +642,14 @@
                                             </t>
                                         </tbody>
                                     </table>
-                                    <div class="is-subtotal text-right">
-                                        <strong class="mr16">MONTANT TOTAL: </strong>
-                                        <span
+                                    <h6 class="is-subtotal text-right mb-5">
+                                        <strong class="mr-4">MONTANT TOTAL: </strong>
+                                        <span class="ml-4"
                                             t-esc="current_subtotal"
                                             t-options='{"widget": "monetary", "display_currency": o.currency_id}'
                                         />
-                                    </div>
-                                    <p class="font-italic">* le droit d’accise sur l’électricité est la fusion progressive depuis le 1er janvier 2022 de la TICFE (taxe intérieure sur la consommation finale d’électricité, anciennement CSPE) et de la TLCFE (taxe locale sur la consommation finale d’électricité) perçues par la Direction générale des finances publiques.</p>
+                                    </h6>
+                                    <p class="mt-5 font-italic">* le droit d’accise sur l’électricité est la fusion progressive depuis le 1er janvier 2022 de la TICFE (taxe intérieure sur la consommation finale d’électricité, anciennement CSPE) et de la TLCFE (taxe locale sur la consommation finale d’électricité) perçues par la Direction générale des finances publiques.</p>
                                 </div>
                             </div>
                         </t>
diff --git a/report/report_template.xml b/report/report_template.xml
index b5c8484..de70573 100644
--- a/report/report_template.xml
+++ b/report/report_template.xml
@@ -18,79 +18,29 @@
                             <t t-if="o.producer_id.name"><span
                                     t-field="o.producer_id.name"
                                 /></t>
-                            <t t-if="o.producer_id.company_form"> - <span
-                                    t-field="o.producer_id.company_form"
-                                /></t>
                             <t t-if="o.producer_id.street"> - <span
                                     t-field="o.producer_id.street"
                                 /></t>
+                            <t t-if="o.producer_id.street2"> - <span
+                                    t-field="o.producer_id.street2"
+                                /></t>
                             <t t-if="o.producer_id.zip">, <span
                                     t-field="o.producer_id.zip"
                                 /></t>
                             <t t-if="o.producer_id.city"> <span
                                     t-field="o.producer_id.city"
                                 /></t>
-                            <br />
-                            <t t-if="o.producer_id.siret"><span
-                                    t-field="o.producer_id.siret"
-                                /></t>
-                            <t t-if="o.producer_id.naf"> - <span
-                                    t-field="o.producer_id.naf"
-                                /></t>
-                            <t t-if="o.producer_id.rcs"> - <span
-                                    t-field="o.producer_id.rcs"
-                                /></t>
                             <t t-if="o.producer_id.vat"> - <span
                                     t-field="o.producer_id.vat"
                                 /></t>
                             </li>
                         </ul>
-                    <div t-if="report_type == 'pdf'">-->
-                        Page: <span class="page" /> / <span class="topage" />
+                    <div t-if="report_type == 'pdf'">
+                        <span class="page" /> / <span class="topage" />
                     </div>
 
                 </div>
             </div>
-<!--            <div t-attf-class="footer o_boxed_footer o_company_layout">-->
-<!--                    LE FOOTER EST LA-->
-<!--                    <div class="text-center">-->
-<!--                        <ul class="list-inline">-->
-<!--                            <li class="list-inline-item">-->
-<!--                                <t t-if="o.producer_id.name"><span-->
-<!--                                        t-field="o.producer_id.name"-->
-<!--                                    /></t>-->
-<!--                                <t t-if="o.producer_id.company_form"> - <span-->
-<!--                                        t-field="o.producer_id.company_form"-->
-<!--                                    /></t>-->
-<!--                                <t t-if="o.producer_id.street"> - <span-->
-<!--                                        t-field="o.producer_id.street"-->
-<!--                                    /></t>-->
-<!--                                <t t-if="o.producer_id.zip">, <span-->
-<!--                                        t-field="o.producer_id.zip"-->
-<!--                                    /></t>-->
-<!--                                <t t-if="o.producer_id.city"> <span-->
-<!--                                        t-field="o.producer_id.city"-->
-<!--                                    /></t>-->
-<!--                                <br />-->
-<!--                                <t t-if="o.producer_id.siret"><span-->
-<!--                                        t-field="o.producer_id.siret"-->
-<!--                                    /></t>-->
-<!--                                <t t-if="o.producer_id.naf"> - <span-->
-<!--                                        t-field="o.producer_id.naf"-->
-<!--                                    /></t>-->
-<!--                                <t t-if="o.producer_id.rcs"> - <span-->
-<!--                                        t-field="o.producer_id.rcs"-->
-<!--                                    /></t>-->
-<!--                                <t t-if="o.producer_id.vat"> - <span-->
-<!--                                        t-field="o.producer_id.vat"-->
-<!--                                    /></t>-->
-<!--                            </li>-->
-<!--                        </ul>-->
-<!--                        <div t-if="report_type == 'pdf'">-->
-<!--                            Page: <span class="page" /> / <span class="topage" />-->
-<!--                        </div>-->
-<!--                    </div>-->
-<!--                </div>-->
         </template>
 
         <template id="external_layout_spe">
-- 
GitLab