Merge lp:~scigghia/openobject-italia/adding_cf_piva_stampa_registri_iva into lp:~openobject-italia-core-devs/openobject-italia/italian-addons-7.0
- adding_cf_piva_stampa_registri_iva
- Merge into italian-addons-7.0
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 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lorenzo Battistini | Needs Fixing | ||
giudalo (community) | Approve | ||
Review via email:
|
Commit message
Description of the change
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
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
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
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.
- 235. By Andrea Cometa
-
[fix] stampa registri iva, rimosso False quando non presente p\.iva o c\.f\.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
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
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
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
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
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?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
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
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
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.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
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
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lorenzo Battistini (elbati) wrote : | # |
This project is now hosted on https:/
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
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 | 21 | } | 21 | } |
6 | 22 | </script> | 22 | </script> |
7 | 23 | </head> | 23 | </head> |
9 | 24 | <body style="border:0; margin: 0;" onload="subst()"> | 24 | <body style="border:0; margin: 0; font:Arial;" onload="subst()"> |
10 | 25 | <% setLang(company.partner_id.lang or "en_US") %> | 25 | <% setLang(company.partner_id.lang or "en_US") %> |
11 | 26 | <h1>Registro I.V.A. Vendite</h1> | 26 | <h1>Registro I.V.A. Vendite</h1> |
12 | 27 | <h3>${company.partner_id.name or ''|entity}</h3> | 27 | <h3>${company.partner_id.name or ''|entity}</h3> |
13 | @@ -65,7 +65,7 @@ | |||
14 | 65 | } | 65 | } |
15 | 66 | </script> | 66 | </script> |
16 | 67 | </head> | 67 | </head> |
18 | 68 | <body style="border:0; margin: 0;" onload="subst()"> | 68 | <body style="border:0; margin: 0; font:Arial;" onload="subst()"> |
19 | 69 | <table style="border-top: 1px solid black; width: 100%"> | 69 | <table style="border-top: 1px solid black; width: 100%"> |
20 | 70 | <tr > | 70 | <tr > |
21 | 71 | <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> | 71 | <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 | 102 | } | 102 | } |
24 | 103 | </script> | 103 | </script> |
25 | 104 | </head> | 104 | </head> |
27 | 105 | <body style="border:0; margin: 0;" onload="subst()"> | 105 | <body style="border:0; margin: 0; font:Arial;" onload="subst()"> |
28 | 106 | <% setLang(company.partner_id.lang or "en_US") %> | 106 | <% setLang(company.partner_id.lang or "en_US") %> |
29 | 107 | <h1>Registro I.V.A. Acquisti</h1> | 107 | <h1>Registro I.V.A. Acquisti</h1> |
30 | 108 | <h3>${company.partner_id.name or ''|entity}</h3> | 108 | <h3>${company.partner_id.name or ''|entity}</h3> |
31 | @@ -146,7 +146,7 @@ | |||
32 | 146 | } | 146 | } |
33 | 147 | </script> | 147 | </script> |
34 | 148 | </head> | 148 | </head> |
36 | 149 | <body style="border:0; margin: 0;" onload="subst()"> | 149 | <body style="border:0; margin: 0; font:Arial;" onload="subst()"> |
37 | 150 | <table style="border-top: 1px solid black; width: 100%"> | 150 | <table style="border-top: 1px solid black; width: 100%"> |
38 | 151 | <tr > | 151 | <tr > |
39 | 152 | <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> | 152 | <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 | 183 | } | 183 | } |
42 | 184 | </script> | 184 | </script> |
43 | 185 | </head> | 185 | </head> |
45 | 186 | <body style="border:0; margin: 0;" onload="subst()"> | 186 | <body style="border:0; margin: 0; font:Arial;" onload="subst()"> |
46 | 187 | <% setLang(company.partner_id.lang or "en_US") %> | 187 | <% setLang(company.partner_id.lang or "en_US") %> |
47 | 188 | <h1>Registro I.V.A. Corrispettivi</h1> | 188 | <h1>Registro I.V.A. Corrispettivi</h1> |
48 | 189 | <h3>${company.partner_id.name or ''|entity}</h3> | 189 | <h3>${company.partner_id.name or ''|entity}</h3> |
49 | @@ -227,7 +227,7 @@ | |||
50 | 227 | } | 227 | } |
51 | 228 | </script> | 228 | </script> |
52 | 229 | </head> | 229 | </head> |
54 | 230 | <body style="border:0; margin: 0;" onload="subst()"> | 230 | <body style="border:0; margin: 0; font:Arial;" onload="subst()"> |
55 | 231 | <table style="border-top: 1px solid black; width: 100%"> | 231 | <table style="border-top: 1px solid black; width: 100%"> |
56 | 232 | <tr > | 232 | <tr > |
57 | 233 | <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> | 233 | <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 | 234 | 234 | ||
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 | 29 | <th class="left_without_line">Numero fattura</th> | 29 | <th class="left_without_line">Numero fattura</th> |
64 | 30 | <th class="left_without_line">Data fattura</th> | 30 | <th class="left_without_line">Data fattura</th> |
65 | 31 | <th class="left_without_line">Sezionale</th> | 31 | <th class="left_without_line">Sezionale</th> |
66 | 32 | <th class="right_without_line">Totale fattura</th> | ||
67 | 33 | <th class="right_without_line">Imposta</th> | 32 | <th class="right_without_line">Imposta</th> |
68 | 34 | <th class="right_without_line">Importo</th> | 33 | <th class="right_without_line">Importo</th> |
69 | 34 | <th class="right_without_line">Totale fattura</th> | ||
70 | 35 | <th></th> | 35 | <th></th> |
71 | 36 | </tr> | 36 | </tr> |
72 | 37 | </thead> | 37 | </thead> |
73 | @@ -57,12 +57,12 @@ | |||
74 | 57 | ${ counter | entity} | 57 | ${ counter | entity} |
75 | 58 | %endif | 58 | %endif |
76 | 59 | %if line['index']==0: | 59 | %if line['index']==0: |
78 | 60 | </td><td class="left_with_line"> | 60 | </td><td class="left_with_line">${object.partner_id.name or ''| entity} |
79 | 61 | %else: | 61 | %else: |
84 | 62 | </td><td class="left_without_line"> | 62 | %if line['index']==1: |
85 | 63 | %endif | 63 | </td><td class="left_without_line" nowrap>${object.partner_id.fiscalcode and 'C.F.: ' or ''| entity}${object.partner_id.fiscalcode or ''| entity} |
86 | 64 | %if line['index']==0: | 64 | <br/>${object.partner_id.vat and 'P.IVA: ' or ''| entity}${object.partner_id.vat or ''| entity} |
87 | 65 | ${object.partner_id.name or ''| entity} | 65 | %endif |
88 | 66 | %endif | 66 | %endif |
89 | 67 | %if line['index']==0: | 67 | %if line['index']==0: |
90 | 68 | </td><td class="left_with_line"> | 68 | </td><td class="left_with_line"> |
91 | @@ -96,14 +96,6 @@ | |||
92 | 96 | %if line['index']==0: | 96 | %if line['index']==0: |
93 | 97 | ${object.journal_id.name or ''| entity} | 97 | ${object.journal_id.name or ''| entity} |
94 | 98 | %endif | 98 | %endif |
95 | 99 | %if line['index']==0: | ||
96 | 100 | </td><td class="right_with_line"> | ||
97 | 101 | %else: | ||
98 | 102 | </td><td class="right_without_line"> | ||
99 | 103 | %endif | ||
100 | 104 | %if line['index']==0: | ||
101 | 105 | ${ formatLang(invoice_total(object)) | entity} | ||
102 | 106 | %endif | ||
103 | 107 | </td> | 99 | </td> |
104 | 108 | %if line['index']==0: | 100 | %if line['index']==0: |
105 | 109 | <td class="right_with_line">${ (line['tax_code_name']) or ''| entity}</td> | 101 | <td class="right_with_line">${ (line['tax_code_name']) or ''| entity}</td> |
106 | @@ -115,6 +107,15 @@ | |||
107 | 115 | %else: | 107 | %else: |
108 | 116 | <td class="right_without_line">${ formatLang(line['amount'])| entity}</td> | 108 | <td class="right_without_line">${ formatLang(line['amount'])| entity}</td> |
109 | 117 | %endif | 109 | %endif |
110 | 110 | %if line['index']==0: | ||
111 | 111 | <td class="right_with_line"> | ||
112 | 112 | %else: | ||
113 | 113 | <td class="right_without_line"> | ||
114 | 114 | %endif | ||
115 | 115 | %if line['index']==0: | ||
116 | 116 | ${ formatLang(invoice_total(object)) | entity} | ||
117 | 117 | %endif | ||
118 | 118 | </td> | ||
119 | 118 | </tr> | 119 | </tr> |
120 | 119 | %endfor | 120 | %endfor |
121 | 120 | %endfor | 121 | %endfor |
122 | 121 | 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 | 25 | <th class="left_without_line">Numero</th> | 25 | <th class="left_without_line">Numero</th> |
128 | 26 | <th class="left_without_line">Data registrazione</th> | 26 | <th class="left_without_line">Data registrazione</th> |
129 | 27 | <th class="left_without_line">Sezionale</th> | 27 | <th class="left_without_line">Sezionale</th> |
130 | 28 | <th class="right_without_line">Importo totale</th> | ||
131 | 29 | <th class="right_without_line">Imposta</th> | 28 | <th class="right_without_line">Imposta</th> |
132 | 30 | <th class="right_without_line">Importo</th> | 29 | <th class="right_without_line">Importo</th> |
133 | 30 | <th class="right_without_line">Importo totale</th> | ||
134 | 31 | <th></th> | 31 | <th></th> |
135 | 32 | </tr> | 32 | </tr> |
136 | 33 | </thead> | 33 | </thead> |
137 | @@ -60,14 +60,6 @@ | |||
138 | 60 | %if line['index']==0: | 60 | %if line['index']==0: |
139 | 61 | ${object.journal_id.name or ''| entity} | 61 | ${object.journal_id.name or ''| entity} |
140 | 62 | %endif | 62 | %endif |
141 | 63 | %if line['index']==0: | ||
142 | 64 | </td><td class="right_with_line"> | ||
143 | 65 | %else: | ||
144 | 66 | </td><td class="right_without_line"> | ||
145 | 67 | %endif | ||
146 | 68 | %if line['index']==0: | ||
147 | 69 | ${ formatLang(invoice_total(object)) | entity} | ||
148 | 70 | %endif | ||
149 | 71 | </td> | 63 | </td> |
150 | 72 | %if line['index']==0: | 64 | %if line['index']==0: |
151 | 73 | <td class="right_with_line">${ (line['tax_code_name']) or ''| entity}</td> | 65 | <td class="right_with_line">${ (line['tax_code_name']) or ''| entity}</td> |
152 | @@ -79,6 +71,15 @@ | |||
153 | 79 | %else: | 71 | %else: |
154 | 80 | <td class="right_without_line">${ formatLang(line['amount'])| entity}</td> | 72 | <td class="right_without_line">${ formatLang(line['amount'])| entity}</td> |
155 | 81 | %endif | 73 | %endif |
156 | 74 | %if line['index']==0: | ||
157 | 75 | <td class="right_with_line"> | ||
158 | 76 | %else: | ||
159 | 77 | <td class="right_without_line"> | ||
160 | 78 | %endif | ||
161 | 79 | %if line['index']==0: | ||
162 | 80 | ${ formatLang(invoice_total(object)) | entity} | ||
163 | 81 | %endif | ||
164 | 82 | </td> | ||
165 | 82 | </tr> | 83 | </tr> |
166 | 83 | %endfor | 84 | %endfor |
167 | 84 | %endfor | 85 | %endfor |
168 | 85 | 86 | ||
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 | 28 | <th class="left_without_line">Numero fattura</th> | 28 | <th class="left_without_line">Numero fattura</th> |
174 | 29 | <th class="left_without_line">Data fattura</th> | 29 | <th class="left_without_line">Data fattura</th> |
175 | 30 | <th class="left_without_line">Sezionale</th> | 30 | <th class="left_without_line">Sezionale</th> |
176 | 31 | <th class="right_without_line">Totale fattura</th> | ||
177 | 32 | <th class="right_without_line">Imposta</th> | 31 | <th class="right_without_line">Imposta</th> |
178 | 33 | <th class="right_without_line">Importo</th> | 32 | <th class="right_without_line">Importo</th> |
179 | 33 | <th class="right_without_line">Totale fattura</th> | ||
180 | 34 | <th></th> | 34 | <th></th> |
181 | 35 | </tr> | 35 | </tr> |
182 | 36 | </thead> | 36 | </thead> |
183 | @@ -56,12 +56,12 @@ | |||
184 | 56 | ${ counter | entity} | 56 | ${ counter | entity} |
185 | 57 | %endif | 57 | %endif |
186 | 58 | %if line['index']==0: | 58 | %if line['index']==0: |
188 | 59 | </td><td class="left_with_line"> | 59 | </td><td class="left_with_line">${object.partner_id.name or ''| entity} |
189 | 60 | %else: | 60 | %else: |
194 | 61 | </td><td class="left_without_line"> | 61 | %if line['index']==1: |
195 | 62 | %endif | 62 | </td><td class="left_without_line" nowrap>${object.partner_id.fiscalcode and 'C.F.: ' or ''| entity}${object.partner_id.fiscalcode or ''| entity} |
196 | 63 | %if line['index']==0: | 63 | <br/>${object.partner_id.vat and 'P.IVA: ' or ''| entity}${object.partner_id.vat or ''| entity} |
197 | 64 | ${object.partner_id.name or ''| entity} | 64 | %endif |
198 | 65 | %endif | 65 | %endif |
199 | 66 | %if line['index']==0: | 66 | %if line['index']==0: |
200 | 67 | </td><td class="left_with_line"> | 67 | </td><td class="left_with_line"> |
201 | @@ -87,14 +87,6 @@ | |||
202 | 87 | %if line['index']==0: | 87 | %if line['index']==0: |
203 | 88 | ${object.journal_id.name or ''| entity} | 88 | ${object.journal_id.name or ''| entity} |
204 | 89 | %endif | 89 | %endif |
205 | 90 | %if line['index']==0: | ||
206 | 91 | </td><td class="right_with_line"> | ||
207 | 92 | %else: | ||
208 | 93 | </td><td class="right_without_line"> | ||
209 | 94 | %endif | ||
210 | 95 | %if line['index']==0: | ||
211 | 96 | ${ formatLang(invoice_total(object)) | entity} | ||
212 | 97 | %endif | ||
213 | 98 | </td> | 90 | </td> |
214 | 99 | %if line['index']==0: | 91 | %if line['index']==0: |
215 | 100 | <td class="right_with_line">${ (line['tax_code_name']) or ''| entity}</td> | 92 | <td class="right_with_line">${ (line['tax_code_name']) or ''| entity}</td> |
216 | @@ -106,6 +98,15 @@ | |||
217 | 106 | %else: | 98 | %else: |
218 | 107 | <td class="right_without_line">${ formatLang(line['amount'])| entity}</td> | 99 | <td class="right_without_line">${ formatLang(line['amount'])| entity}</td> |
219 | 108 | %endif | 100 | %endif |
220 | 101 | %if line['index']==0: | ||
221 | 102 | <td class="right_with_line"> | ||
222 | 103 | %else: | ||
223 | 104 | <td class="right_without_line"> | ||
224 | 105 | %endif | ||
225 | 106 | %if line['index']==0: | ||
226 | 107 | ${ formatLang(invoice_total(object)) | entity} | ||
227 | 108 | %endif | ||
228 | 109 | </td> | ||
229 | 109 | </tr> | 110 | </tr> |
230 | 110 | %endfor | 111 | %endfor |
231 | 111 | %endfor | 112 | %endfor |
Ciao Andrea, puoi descrivere a cosa servono le modifiche del diff?
Grazie