Merge lp:~scigghia/openobject-italia/adding_cf_piva_stampa_registri_iva into lp:~openobject-italia-core-devs/openobject-italia/italian-addons-7.0

Proposed by Andrea Cometa
Status: Needs review
Proposed branch: lp:~scigghia/openobject-italia/adding_cf_piva_stampa_registri_iva
Merge into: lp:~openobject-italia-core-devs/openobject-italia/italian-addons-7.0
Diff against target: 231 lines (+46/-43)
4 files modified
l10n_it_vat_registries/reports.xml (+6/-6)
l10n_it_vat_registries/templates/registro_iva_acquisti.mako (+15/-14)
l10n_it_vat_registries/templates/registro_iva_corrispettivi.mako (+10/-9)
l10n_it_vat_registries/templates/registro_iva_vendite.mako (+15/-14)
To merge this branch: bzr merge lp:~scigghia/openobject-italia/adding_cf_piva_stampa_registri_iva
Reviewer Review Type Date Requested Status
Lorenzo Battistini Needs Fixing
giudalo (community) Approve
Review via email: mp+205115@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Lorenzo Battistini (elbati) wrote :

Ciao Andrea, puoi descrivere a cosa servono le modifiche del diff?
Grazie

review: Needs Information
Revision history for this message
Andrea Cometa (scigghia) wrote :

ho aggiunto sotto ogni riga anche il codice fiscale e la partita iva del cliente, sebbene non siano necessarie possono tornare utili sulla stampa.
Inoltre ho spostato la colonna totale fattura in ultima posizione

Revision history for this message
giudalo (g-dalo) wrote :

Di funzionare, funziona.

Concordo con Davide che non siano dati obbligatori e penso anche io che andrebbe fatto un configuratore dei registri su che colonne si vuole. In effetti la nomativa non prevede neanche la stampa del numero di registrazione e del sezionale.
Il sole 24 ore dice :

Il registro deve riportare i seguenti dati:
- data di emissione;
- numero progressivo di emissione;
- indicazione del cliente, ditta, ragione sociale o nominativo, ovvero, nei casi di autofattura, del cedente o prestatore;
- base imponibile distinta per aliquota;
- Iva distinta per aliquota.
e per il registro acquisti aggiunge solo il numero protocollo.

review: Approve
235. By Andrea Cometa

[fix] stampa registri iva, rimosso False quando non presente p\.iva o c\.f\.

Revision history for this message
Lorenzo Battistini (elbati) wrote :

Come mai CF e PIVA vengono stampati solo se
line['index']!=0
?

In caso la riga avesse un solo tax.code da stampare, CF e PIVA non verrebbero stampati credo

review: Needs Information
Revision history for this message
Andrea Cometa (scigghia) wrote :

in realtà vengono stampati ad ogni riga tranne la 0, ho fatto una prova con due aliquote.
ora correggo e faccio in modo di farli stampare solo se line['index'] == 1

236. By Andrea Cometa

[fix] l10n_it_vat_registries\: stampa cf e piva solo una volta

Revision history for this message
Lorenzo Battistini (elbati) wrote :

On 02/08/2014 10:07 AM, Andrea Cometa wrote:
> in realtà vengono stampati ad ogni riga tranne la 0, ho fatto una prova con due aliquote.

E se ci fosse una sola aliquota?

Revision history for this message
Andrea Cometa (scigghia) wrote :

idem, il test è fatto con diverse fatture, tra cui una con due aliquote
devo solo allineare gli importi sulle righe>1

Revision history for this message
Lorenzo Battistini (elbati) wrote :

On 02/09/2014 06:31 PM, Andrea Cometa wrote:
> idem, il test è fatto con diverse fatture, tra cui una con due aliquote
> devo solo allineare gli importi sulle righe>1

Mi riferivo al caso in cui ci fosse un solo tax code da stampare (non una sola aliquota come dicevo). Nel caso di un solo tax code line['index'] non andrà a 1 e la PIVA non sarà stampata.
Ma assumendo che le imposte siano configurate come in l10n_it, questo non dovrebbe accadere.

Noto però che se

line['index']!=0
o
line['index']!=1

(ovvero dopo le prime due sottorighe di ogni riga del registro) il TD non viene stampato, quindi la riga della tabella ha una colonna in meno.

review: Needs Fixing
Revision history for this message
Andrea Cometa (scigghia) wrote :

io uso sempre l10n_it come pdc, non ho avuto modo di testarlo su altre configurazioni, ma lo farò a breve.
per quanto riguarda il TD l'ho notato e provvederò non appena possibile

Revision history for this message
Lorenzo Battistini (elbati) wrote :

This project is now hosted on https://github.com/OCA/l10n-italy. Please move your proposal there. This guide may help you https://github.com/OCA/maintainers-tools/wiki/How-to-move-a-Merge-Proposal-to-GitHub

Unmerged revisions

236. By Andrea Cometa

[fix] l10n_it_vat_registries\: stampa cf e piva solo una volta

235. By Andrea Cometa

[fix] stampa registri iva, rimosso False quando non presente p\.iva o c\.f\.

234. By Andrea Cometa

[imp] stampa codice fiscale e partita iva su ogni riga partner, spostato totale sull\'ultima colonna

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_it_vat_registries/reports.xml'
2--- l10n_it_vat_registries/reports.xml 2013-05-09 15:34:05 +0000
3+++ l10n_it_vat_registries/reports.xml 2014-02-08 09:10:47 +0000
4@@ -21,7 +21,7 @@
5 }
6 </script>
7 </head>
8- <body style="border:0; margin: 0;" onload="subst()">
9+ <body style="border:0; margin: 0; font:Arial;" onload="subst()">
10 <% setLang(company.partner_id.lang or "en_US") %>
11 <h1>Registro I.V.A. Vendite</h1>
12 <h3>${company.partner_id.name or ''|entity}</h3>
13@@ -65,7 +65,7 @@
14 }
15 </script>
16 </head>
17- <body style="border:0; margin: 0;" onload="subst()">
18+ <body style="border:0; margin: 0; font:Arial;" onload="subst()">
19 <table style="border-top: 1px solid black; width: 100%">
20 <tr >
21 <td style="text-align:right;font-size:12;" width="95%">Page ${objects[0].period_id and objects[0].period_id.fiscalyear_id and objects[0].period_id.fiscalyear_id.name or ''|entity}/<span class="page"/></td><td style="text-align:left;font-size:12;"></td>
22@@ -102,7 +102,7 @@
23 }
24 </script>
25 </head>
26- <body style="border:0; margin: 0;" onload="subst()">
27+ <body style="border:0; margin: 0; font:Arial;" onload="subst()">
28 <% setLang(company.partner_id.lang or "en_US") %>
29 <h1>Registro I.V.A. Acquisti</h1>
30 <h3>${company.partner_id.name or ''|entity}</h3>
31@@ -146,7 +146,7 @@
32 }
33 </script>
34 </head>
35- <body style="border:0; margin: 0;" onload="subst()">
36+ <body style="border:0; margin: 0; font:Arial;" onload="subst()">
37 <table style="border-top: 1px solid black; width: 100%">
38 <tr >
39 <td style="text-align:right;font-size:12;" width="95%">Page ${objects[0].period_id and objects[0].period_id.fiscalyear_id and objects[0].period_id.fiscalyear_id.name or ''|entity}/<span class="page"/></td><td style="text-align:left;font-size:12;"></td>
40@@ -183,7 +183,7 @@
41 }
42 </script>
43 </head>
44- <body style="border:0; margin: 0;" onload="subst()">
45+ <body style="border:0; margin: 0; font:Arial;" onload="subst()">
46 <% setLang(company.partner_id.lang or "en_US") %>
47 <h1>Registro I.V.A. Corrispettivi</h1>
48 <h3>${company.partner_id.name or ''|entity}</h3>
49@@ -227,7 +227,7 @@
50 }
51 </script>
52 </head>
53- <body style="border:0; margin: 0;" onload="subst()">
54+ <body style="border:0; margin: 0; font:Arial;" onload="subst()">
55 <table style="border-top: 1px solid black; width: 100%">
56 <tr >
57 <td style="text-align:right;font-size:12;" width="95%">Page ${objects[0].period_id and objects[0].period_id.fiscalyear_id and objects[0].period_id.fiscalyear_id.name or ''|entity}/<span class="page"/></td><td style="text-align:left;font-size:12;"></td>
58
59=== modified file 'l10n_it_vat_registries/templates/registro_iva_acquisti.mako'
60--- l10n_it_vat_registries/templates/registro_iva_acquisti.mako 2013-08-22 11:09:52 +0000
61+++ l10n_it_vat_registries/templates/registro_iva_acquisti.mako 2014-02-08 09:10:47 +0000
62@@ -29,9 +29,9 @@
63 <th class="left_without_line">Numero fattura</th>
64 <th class="left_without_line">Data fattura</th>
65 <th class="left_without_line">Sezionale</th>
66- <th class="right_without_line">Totale fattura</th>
67 <th class="right_without_line">Imposta</th>
68 <th class="right_without_line">Importo</th>
69+ <th class="right_without_line">Totale fattura</th>
70 <th></th>
71 </tr>
72 </thead>
73@@ -57,12 +57,12 @@
74 ${ counter | entity}
75 %endif
76 %if line['index']==0:
77- </td><td class="left_with_line">
78+ </td><td class="left_with_line">${object.partner_id.name or ''| entity}
79 %else:
80- </td><td class="left_without_line">
81- %endif
82- %if line['index']==0:
83- ${object.partner_id.name or ''| entity}
84+ %if line['index']==1:
85+ </td><td class="left_without_line" nowrap>${object.partner_id.fiscalcode and 'C.F.: ' or ''| entity}${object.partner_id.fiscalcode or ''| entity}
86+ <br/>${object.partner_id.vat and 'P.IVA: ' or ''| entity}${object.partner_id.vat or ''| entity}
87+ %endif
88 %endif
89 %if line['index']==0:
90 </td><td class="left_with_line">
91@@ -96,14 +96,6 @@
92 %if line['index']==0:
93 ${object.journal_id.name or ''| entity}
94 %endif
95- %if line['index']==0:
96- </td><td class="right_with_line">
97- %else:
98- </td><td class="right_without_line">
99- %endif
100- %if line['index']==0:
101- ${ formatLang(invoice_total(object)) | entity}
102- %endif
103 </td>
104 %if line['index']==0:
105 <td class="right_with_line">${ (line['tax_code_name']) or ''| entity}</td>
106@@ -115,6 +107,15 @@
107 %else:
108 <td class="right_without_line">${ formatLang(line['amount'])| entity}</td>
109 %endif
110+ %if line['index']==0:
111+ <td class="right_with_line">
112+ %else:
113+ <td class="right_without_line">
114+ %endif
115+ %if line['index']==0:
116+ ${ formatLang(invoice_total(object)) | entity}
117+ %endif
118+ </td>
119 </tr>
120 %endfor
121 %endfor
122
123=== modified file 'l10n_it_vat_registries/templates/registro_iva_corrispettivi.mako'
124--- l10n_it_vat_registries/templates/registro_iva_corrispettivi.mako 2013-08-22 11:09:52 +0000
125+++ l10n_it_vat_registries/templates/registro_iva_corrispettivi.mako 2014-02-08 09:10:47 +0000
126@@ -25,9 +25,9 @@
127 <th class="left_without_line">Numero</th>
128 <th class="left_without_line">Data registrazione</th>
129 <th class="left_without_line">Sezionale</th>
130- <th class="right_without_line">Importo totale</th>
131 <th class="right_without_line">Imposta</th>
132 <th class="right_without_line">Importo</th>
133+ <th class="right_without_line">Importo totale</th>
134 <th></th>
135 </tr>
136 </thead>
137@@ -60,14 +60,6 @@
138 %if line['index']==0:
139 ${object.journal_id.name or ''| entity}
140 %endif
141- %if line['index']==0:
142- </td><td class="right_with_line">
143- %else:
144- </td><td class="right_without_line">
145- %endif
146- %if line['index']==0:
147- ${ formatLang(invoice_total(object)) | entity}
148- %endif
149 </td>
150 %if line['index']==0:
151 <td class="right_with_line">${ (line['tax_code_name']) or ''| entity}</td>
152@@ -79,6 +71,15 @@
153 %else:
154 <td class="right_without_line">${ formatLang(line['amount'])| entity}</td>
155 %endif
156+ %if line['index']==0:
157+ <td class="right_with_line">
158+ %else:
159+ <td class="right_without_line">
160+ %endif
161+ %if line['index']==0:
162+ ${ formatLang(invoice_total(object)) | entity}
163+ %endif
164+ </td>
165 </tr>
166 %endfor
167 %endfor
168
169=== modified file 'l10n_it_vat_registries/templates/registro_iva_vendite.mako'
170--- l10n_it_vat_registries/templates/registro_iva_vendite.mako 2013-08-21 16:15:06 +0000
171+++ l10n_it_vat_registries/templates/registro_iva_vendite.mako 2014-02-08 09:10:47 +0000
172@@ -28,9 +28,9 @@
173 <th class="left_without_line">Numero fattura</th>
174 <th class="left_without_line">Data fattura</th>
175 <th class="left_without_line">Sezionale</th>
176- <th class="right_without_line">Totale fattura</th>
177 <th class="right_without_line">Imposta</th>
178 <th class="right_without_line">Importo</th>
179+ <th class="right_without_line">Totale fattura</th>
180 <th></th>
181 </tr>
182 </thead>
183@@ -56,12 +56,12 @@
184 ${ counter | entity}
185 %endif
186 %if line['index']==0:
187- </td><td class="left_with_line">
188+ </td><td class="left_with_line">${object.partner_id.name or ''| entity}
189 %else:
190- </td><td class="left_without_line">
191- %endif
192- %if line['index']==0:
193- ${object.partner_id.name or ''| entity}
194+ %if line['index']==1:
195+ </td><td class="left_without_line" nowrap>${object.partner_id.fiscalcode and 'C.F.: ' or ''| entity}${object.partner_id.fiscalcode or ''| entity}
196+ <br/>${object.partner_id.vat and 'P.IVA: ' or ''| entity}${object.partner_id.vat or ''| entity}
197+ %endif
198 %endif
199 %if line['index']==0:
200 </td><td class="left_with_line">
201@@ -87,14 +87,6 @@
202 %if line['index']==0:
203 ${object.journal_id.name or ''| entity}
204 %endif
205- %if line['index']==0:
206- </td><td class="right_with_line">
207- %else:
208- </td><td class="right_without_line">
209- %endif
210- %if line['index']==0:
211- ${ formatLang(invoice_total(object)) | entity}
212- %endif
213 </td>
214 %if line['index']==0:
215 <td class="right_with_line">${ (line['tax_code_name']) or ''| entity}</td>
216@@ -106,6 +98,15 @@
217 %else:
218 <td class="right_without_line">${ formatLang(line['amount'])| entity}</td>
219 %endif
220+ %if line['index']==0:
221+ <td class="right_with_line">
222+ %else:
223+ <td class="right_without_line">
224+ %endif
225+ %if line['index']==0:
226+ ${ formatLang(invoice_total(object)) | entity}
227+ %endif
228+ </td>
229 </tr>
230 %endfor
231 %endfor

Subscribers

People subscribed via source and target branches