Skip to content

Commit

Permalink
[IMP] l10n_it_intrastat_statement: Add intra1-ter (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoRubi authored and Borruso committed Oct 3, 2023
1 parent 786d9a4 commit b6301d4
Show file tree
Hide file tree
Showing 3 changed files with 189 additions and 0 deletions.
1 change: 1 addition & 0 deletions l10n_it_intrastat_statement/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'views/intrastat.xml',
'report/report_intrastat_mod1.xml',
'report/intrastat_mod1_bis.xml',
'report/intrastat_mod1_ter.xml',
'report/report_intrastat_mod2.xml',
'report/report_intrastat_mod2_bis.xml',
'report/reports.xml',
Expand Down
174 changes: 174 additions & 0 deletions l10n_it_intrastat_statement/report/intrastat_mod1_ter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2019 Simone Rubino - Agile Business Group
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->

<odoo>
<template id="report_intrastat_mod1_ter">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="web.internal_layout">
<div class="page">
<div class="row col-12">
<div class="col-3">
<p class="text-right">
<img src="/l10n_it_intrastat_statement/static/img/agenzia_dogane.jpg"
height="80px"/>
</p>
</div>
<div class="col-7 col-offset-3">
<table class="table text-center table-bordered">

<td>
<b>
RIEPILOGO DELLE CESSIONI
INTRACOMUNITARIE
<br/>
DI BENI E DEI SERVIZI RESI
</b>
</td>
<td>Mod.INTRA-1 Ter</td>
</table>

</div>
</div>
<div class="row">
<span class="text-center col-7 col-offset-3">
<strong>
SEZIONE 2. RETTIFICHE ALLE CESSIONI DI
BENI
RELATIVE A PERIODI PRECEDENTI
</strong>
<p/>
</span>
</div>
<div class="row text-center col-12">
<span>PERIODO:</span>

<span class="col-offset-1">MESE:</span>
<strong>
<t t-if="o.period_type == 'M'">
<span t-esc="o.period_number"/>
</t>
</strong>

<span class="col-offset-1">TRIMESTRE:</span>
<strong>
<t t-if="o.period_type == 'T'">
<span t-esc="o.period_number"/>
</t>
</strong>
<span class="col-offset-1">ANNO:</span>
<strong>
<span t-esc="o.fiscalyear"/>
</strong>

<span class="col-offset-2">PARTITA IVA
</span>
<strong>
<span t-esc="o.company_id.vat"/>
</strong>
</div>
<div class="row col-12">
<p/>
<table class="table table-bordered">
<col/>
<colgroup span="3"/>
<colgroup span="7"/>
<thead class="fondo">
<tr>
<th rowspan="3">
PROGR
</th>
<th colspan="3"
class="text-center">
PERIODO DI RIFERIMENTO
</th>
<th colspan="7"
class="text-center">
RETTIFICHE
</th>
</tr>
<tr>
<th class="text-center"
rowspan="2">MESE
</th>
<th class="text-center"
rowspan="2">TRIMESTRE
</th>
<th class="text-center"
rowspan="2">ANNO
</th>
<th colspan="2"
class="text-center">
ACQUIRENTE
</th>
<th class="text-center"
rowspan="2">SEGNO
</th>
<th class="text-center"
rowspan="2">
AMMONTARE DELLE OPERAZIONI IN
EURO
</th>
<th class="text-center"
rowspan="2">NATURA TRANS.
</th>
<th class="text-center"
rowspan="2">
NOMENCLATURA COMBINATA
</th>
<th class="text-center"
rowspan="2">
VALORE STATISTICO IN EURO
</th>
</tr>
<tr>
<th class="text-center">STATO</th>
<th class="text-center">CODICE
IVA
</th>
</tr>
</thead>
<tbody>
<tr class="small text-center">
<td t-foreach="range(1, 12)"
t-as="col_nbr">
<span t-esc="col_nbr"/>
</td>
</tr>
<t t-set="total" t-value="0"/>
<tr t-foreach="o.sale_section2_ids"
t-as="l">
<td t-esc="l.sequence"/>
<td t-esc="l.month"/>
<td t-esc="l.quarterly"/>
<td t-esc="l.year_id"/>
<td t-esc="l.country_partner_id.code"/>
<td t-esc="l.vat_code"/>
<td t-esc="l.sign_variation"/>
<td t-esc="l.amount_euro"/>
<td t-esc="l.transation_nature_id.code"/>
<td t-esc="l.intrastat_code_id.name"/>
<td t-esc="l.statistic_amount_euro"/>
<t t-set="total"
t-value="total + l.amount_euro"/>
</tr>
<tr>
<td colspan="7" class="text-right">
TOTALE
</td>
<td>
<t t-esc="total"/>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</t>
</t>
</t>
</template>
</odoo>
14 changes: 14 additions & 0 deletions l10n_it_intrastat_statement/report/reports.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@
<field name="paperformat_id" ref="l10n_it_intrastat_statement.no_header_format_a4_landscape"/>
</record>

<!-- Mod. Intra-1 Ter -->
<report
string="Mod. INTRA-1 Ter"
id="print_intrastat_mod1_ter"
model="account.intrastat.statement"
report_type="qweb-pdf"
name="l10n_it_intrastat_statement.report_intrastat_mod1_ter"
file="l10n_it_intrastat_statement.report_intrastat_mod1_ter"
/>

<record id="print_intrastat_mod1_ter" model="ir.actions.report">
<field name="paperformat_id" ref="l10n_it_intrastat_statement.no_header_format_a4_landscape"/>
</record>

<!-- Mod. Intra-2 bis -->
<report
string="Mod. INTRA-2 Bis"
Expand Down

0 comments on commit b6301d4

Please sign in to comment.