Skip to content
Extraits de code Groupes Projets
Valider 1f50f900 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[add] refund template

parent a97b29ee
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -18,6 +18,7 @@
"views/scop_cotisation_aura.xml",
"views/account_invoice.xml",
"views/report_cotisation_aura.xml",
"views/report_cotisation_aura_refund.xml",
"wizard/scop_cotisation_aura_wizard.xml",
],
}
......@@ -27,6 +27,9 @@
<strong>
Appel de cotisation Union Régionale AURA <span t-esc="str(o.year)"/><br/>
<span t-field="o.number"/></strong>
<t t-if="o.partner_id.member_number">
<br/>N° Confédéral : <span t-field="o.partner_id.member_number"/>
</t>
</p>
<p style="color: #ff0000; font-style: italic;">
<t t-if="o.is_sdd">
......@@ -109,7 +112,7 @@
<!-- QWeb Reports -->
<report
id="account_invoices"
id="cotisation_aura"
model="account.invoice"
string="Cotisation AURA"
report_type="qweb-pdf"
......
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Copyright 2021 Le Filament
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<data>
<template id="report_cotisation_aura_refund_document">
<t t-call="web.external_layout">
<t t-set="o" t-value="o.with_context(lang=lang)" />
<div class="page" style="test-align: justify;">
<div class="row">
<div class="col-5 offset-7 mt16 mb32" style="text-transform: uppercase; font-size: 16px;">
<span t-field="o.partner_id.name" style="font-weight: 600;"/><br/>
<span t-field="o.partner_id.street" /><br/>
<t t-if="o.partner_id.street2"><span t-field="o.partner_id.street2"/><br/></t>
<t t-if="o.partner_id.street3"><span t-field="o.partner_id.street3"/><br/></t>
<span t-field="o.partner_id.zip" /> <span t-field="o.partner_id.city" style="text-transform: uppercase;"/>
<t t-if="o.partner_id.cedex"> <span t-field="o.partner_id.cedex"/></t>
</div>
</div>
<div id="informations" class=" mt32 mb32" style="font-size: 14px; text-alig: justify">
<div class="col-12">
<h2 t-if="o.state == 'draft'">
Brouillon
</h2>
<p style="font-size: 16px;">
<strong>
Avoir de cotisation Union Régionale AURA <span t-esc="str(o.year)"/><br/>
<span t-field="o.number"/></strong>
<t t-if="o.partner_id.member_number">
<br/>N° Confédéral : <span t-field="o.partner_id.member_number"/>
</t>
</p>
<p style="color: #ff0000; font-style: italic;">
Cet avoir de cotisation annuelle est à conserver comme pièce justificative comptable.
</p>
<p>
Madame, Monsieur,
</p>
<p>
Vous avez obtenu une exonération exceptionnelle de vos cotisations régionales au titre de l'année <span t-esc="str(o.year)"/>, vous trouverez ci-dessous le détail :
</p>
<p>
<table class="table table-striped table-sm" style="width: 400px; font-size: 12px; border: none;">
<tr style="border-bottom: 1px solid #ccc;">
<td style="border: none;">Montant exonéré</td>
<td style="border: none;"><span t-field="o.amount_total_signed" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/></td>
</tr>
<tr t-if="o.lf_note_ref_facture" style="border-bottom: 1px solid #ccc;">
<td style="border: none;">Commentaire</td>
<td style="border: none;"><span t-field="o.lf_note_ref_facture"/></td>
</tr>
</table>
</p>
<p>
Pour plus d’informations sur vos cotisations régionales, nous vous invitons à prendre contact avec le service comptabilité au <span style="white-space: nowrap;">04 78 53 08 06</span> ou par mail à <a href="mailto:auvergne.rhonealpes@scop.org">auvergne.rhonealpes@scop.org</a>.
</p>
<p>
Nous vous prions d’agréer, Madame, Monsieur, l’expression de nos sincères salutations.
</p>
<p class="mt32">
Isabelle TREFFOT,
<br/>
Responsable administratif et financier.
</p>
</div>
</div>
</div>
</t>
</template>
<template id="report_cotisation_aura_refund">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="cgscop_cotisation_aura.report_cotisation_aura_refund_document" t-lang="fr"/>
</t>
</t>
</template>
<!-- QWeb Reports -->
<report
id="cotisation_aura_refund"
model="account.invoice"
string="Avoir de Cotisation AURA"
report_type="qweb-pdf"
name="cgscop_cotisation_aura.report_cotisation_aura_refund"
file="cgscop_cotisation_aura.report_cotisation_aura_refund"
print_report_name="('Avoir de Cotisation '+ str(object.year) + ' - ' + object.partner_id.name + ' - '+(object.number or '').replace('/',''))"
attachment_use="False"
groups="account.group_account_invoice"
/>
</data>
</odoo>
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter