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

[update] report template and reconcile widget

parent b63f807e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -130,6 +130,6 @@ class ScopAuraAccountInvoice(models.Model):
:return: dict with date as key and amount (float) as value
"""
for invoice in self:
return invoice.move_id.line_ids.filtered(
return invoice.line_ids.filtered(
lambda l: l.account_id.internal_type == "receivable"
).sorted("date_maturity")
......@@ -38,6 +38,7 @@
name="wage_cg_connu"
attrs="{'invisible': [('cotisation_aura_id', '=', False)]}"
/>
<field name="ref" string="Commentaire"/>
</group>
<group>
<field
......
......@@ -11,7 +11,7 @@
>
<xpath expr="//div[@name='hook_page']" position="after">
<div
t-elif="o.type == 'out_invoice' and o.journal_id == o.company_id.contribution_journal_id and o.company_id.is_contribution_aura"
t-elif="o.move_type == 'out_invoice' and o.journal_id == o.company_id.contribution_journal_id and o.company_id.is_contribution_aura"
class="page"
style="text-align: justify;"
>
......@@ -29,7 +29,7 @@
Appel de cotisation Union Régionale AURA <span
t-esc="str(o.year)"
/><br />
<span t-field="o.number" />
<span t-field="o.name" />
</strong>
du <span t-field="o.invoice_date" />
<t t-if="o.partner_id.member_number">
......@@ -57,7 +57,10 @@
Ce montant est calculé de la façon suivante :
</p>
<p>
<t t-set="prorata" t-value="o.nb_quarter_aura / 4" />
<t
t-set="prorata"
t-value="int(o.nb_quarter_aura) / 4"
/>
Masse salariale <span t-esc="str(o.year - 2)" /> : <span
t-field="o.wage_cg_retenu"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'
......@@ -74,7 +77,7 @@
</p>
<p style="font-style: italic; font-size: 12px;">
* Pour mémoire, à compter de 2016, les masses salariales inférieures à 60 000,00 génèrent une cotisation forfaitaire annuelle de 300,00 , soit 75,00 par trimestre.
* Pour mémoire, à compter de 2016, les masses salariales inférieures à 60 000,00 euros génèrent une cotisation forfaitaire annuelle de 300,00 euros, soit 75,00 euros par trimestre.
</p>
<p>
<t t-if="o.is_sdd">
......
......@@ -11,7 +11,7 @@
>
<xpath expr="//div[@name='hook_page']" position="after">
<div
t-elif="o.type == 'out_refund' and o.journal_id == o.company_id.contribution_journal_id and o.company_id.is_contribution_aura"
t-elif="o.move_type == 'out_refund' and o.journal_id == o.company_id.contribution_journal_id and o.company_id.is_contribution_aura"
class="page mt32"
style="text-align: justify;"
>
......@@ -29,7 +29,7 @@
Avoir de cotisation Union Régionale AURA <span
t-esc="str(o.year)"
/><br />
<span t-field="o.number" /></strong> du <span
<span t-field="o.name" /></strong> du <span
t-field="o.invoice_date"
/>
<t t-if="o.partner_id.member_number">
......@@ -57,17 +57,17 @@
<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-field="o.amount_total"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'
/></td>
</tr>
<tr
t-if="o.lf_note_ref_facture"
t-if="o.ref"
style="border-bottom: 1px solid #ccc;"
>
<td style="border: none;">Commentaire</td>
<td style="border: none;"><span
t-field="o.lf_note_ref_facture"
t-field="o.ref"
/></td>
</tr>
</table>
......
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