Merge lp:~agilebg/openobject-italia/6.1-bug-1214971-elbati into lp:~openobject-italia-core-devs/openobject-italia/italian-addons-6.1

Proposed by Lorenzo Battistini
Status: Merged
Merged at revision: 238
Proposed branch: lp:~agilebg/openobject-italia/6.1-bug-1214971-elbati
Merge into: lp:~openobject-italia-core-devs/openobject-italia/italian-addons-6.1
Diff against target: 66 lines (+13/-3)
4 files modified
l10n_it_vat_registries/invoice.py (+10/-0)
l10n_it_vat_registries/templates/registro_iva_acquisti.mako (+1/-1)
l10n_it_vat_registries/templates/registro_iva_corrispettivi.mako (+1/-1)
l10n_it_vat_registries/templates/registro_iva_vendite.mako (+1/-1)
To merge this branch: bzr merge lp:~agilebg/openobject-italia/6.1-bug-1214971-elbati
Reviewer Review Type Date Requested Status
Sergio Corato (community) Approve
Review via email: mp+181353@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sergio Corato (icsergio) wrote :

Confermo che funziona per il registro vendite. E' necessario estenderlo anche al registro acquisti e corrispettivi.

review: Needs Fixing
Revision history for this message
Franco Tampieri (dr.dran) wrote :

A tal proposito... credo sia conveniente, fare altromodifiche per quanto riguarda la parte dei corrispettivi.

Spesserei il modulo originario, in corrispettivi_journal e corrispettivi_invoice in questo modo aggiungerei il flag corrispettivi ai vari sezionali che così mediante la stampa dei registri iva potrebbero essere prefiltrati e non selezionati a manina fra tutti i registri vendite...

Che ne dite?

239. By Lorenzo Battistini

[FIX] estendo fix per acquisti e corrispettivi

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

On 08/22/2013 12:50 PM, Sergio Corato wrote:
> Confermo che funziona per il registro vendite. E' necessario estenderlo anche al registro acquisti e corrispettivi

Vero.
Ho esteso la fix.
Grazie.

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

On 08/22/2013 12:55 PM, Franco Tampieri wrote:
> A tal proposito... credo sia conveniente, fare altromodifiche per quanto riguarda la parte dei corrispettivi.
>
> Spesserei il modulo originario, in corrispettivi_journal e corrispettivi_invoice in questo modo aggiungerei il flag corrispettivi ai vari sezionali che così mediante la stampa dei registri iva potrebbero essere prefiltrati e non selezionati a manina fra tutti i registri vendite...
>
> Che ne dite?

Se stai parlando di l10n_it_corrispettivi, sposterei la discussione in
un luogo più adatto, ad esempio la mailing list.

Revision history for this message
Sergio Corato (icsergio) :
review: Approve
Revision history for this message
Sergio Corato (icsergio) wrote :

ah, il merge chi lo fa?

Revision history for this message
Leonardo Pistone (lepistone) wrote :

io!

)

Revision history for this message
Leonardo Pistone (lepistone) wrote :

Sergio, hai per caso provato anche la versione per la 7?

https://code.launchpad.net/~agilebg/openobject-italia/7.0-bug-1214971-elbati/+merge/181349

grazie!

Revision history for this message
Sergio Corato (icsergio) wrote :

Il 22/08/2013 16:19, Leonardo Pistone - Agile BG - Domsense ha scritto:
> Sergio, hai per caso provato anche la versione per la 7?
>
> https://code.launchpad.net/~agilebg/openobject-italia/7.0-bug-1214971-elbati/+merge/181349
>
> grazie!
>
ehm, purtroppo sono un po' indietro con la 7... non ci fidiamo dici?
appena ho un attimo la provo

--
Sergio Corato

IcsTools.it

web : www.icstools.it
skype : sergiocorato
mail : <email address hidden>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'l10n_it_vat_registries/invoice.py'
--- l10n_it_vat_registries/invoice.py 2013-05-23 04:42:51 +0000
+++ l10n_it_vat_registries/invoice.py 2013-08-22 11:10:50 +0000
@@ -65,6 +65,15 @@
65 res.append(tax_item)65 res.append(tax_item)
66 index += 166 index += 1
67 return res67 return res
68
69 def _get_invoice_total(self, move):
70 total = 0.0
71 for move_line in move.line_id:
72 if move_line.account_id.type == 'receivable':
73 total += move_line.debit or ( - move_line.credit)
74 elif move_line.account_id.type == 'payable':
75 total += ( - move_line.debit) or move_line.credit
76 return abs(total)
68 77
69 def build_parent_tax_codes(self, tax_code):78 def build_parent_tax_codes(self, tax_code):
70 res={}79 res={}
@@ -132,6 +141,7 @@
132 'used_tax_codes': {},141 'used_tax_codes': {},
133 'start_date': self._get_start_date,142 'start_date': self._get_start_date,
134 'end_date': self._get_end_date,143 'end_date': self._get_end_date,
144 'invoice_total': self._get_invoice_total,
135 })145 })
136146
137 def set_context(self, objects, data, ids, report_type=None):147 def set_context(self, objects, data, ids, report_type=None):
138148
=== modified file 'l10n_it_vat_registries/templates/registro_iva_acquisti.mako'
--- l10n_it_vat_registries/templates/registro_iva_acquisti.mako 2013-05-23 04:42:51 +0000
+++ l10n_it_vat_registries/templates/registro_iva_acquisti.mako 2013-08-22 11:10:50 +0000
@@ -102,7 +102,7 @@
102 </td><td class="right_without_line">102 </td><td class="right_without_line">
103 %endif103 %endif
104 %if line['index']==0:104 %if line['index']==0:
105 ${ formatLang(object.amount) | entity}105 ${ formatLang(invoice_total(object)) | entity}
106 %endif106 %endif
107 </td>107 </td>
108 %if line['index']==0:108 %if line['index']==0:
109109
=== modified file 'l10n_it_vat_registries/templates/registro_iva_corrispettivi.mako'
--- l10n_it_vat_registries/templates/registro_iva_corrispettivi.mako 2013-05-03 14:48:41 +0000
+++ l10n_it_vat_registries/templates/registro_iva_corrispettivi.mako 2013-08-22 11:10:50 +0000
@@ -66,7 +66,7 @@
66 </td><td class="right_without_line">66 </td><td class="right_without_line">
67 %endif67 %endif
68 %if line['index']==0:68 %if line['index']==0:
69 ${ formatLang(object.amount) | entity}69 ${ formatLang(invoice_total(object)) | entity}
70 %endif70 %endif
71 </td>71 </td>
72 %if line['index']==0:72 %if line['index']==0:
7373
=== modified file 'l10n_it_vat_registries/templates/registro_iva_vendite.mako'
--- l10n_it_vat_registries/templates/registro_iva_vendite.mako 2013-05-03 14:48:41 +0000
+++ l10n_it_vat_registries/templates/registro_iva_vendite.mako 2013-08-22 11:10:50 +0000
@@ -93,7 +93,7 @@
93 </td><td class="right_without_line">93 </td><td class="right_without_line">
94 %endif94 %endif
95 %if line['index']==0:95 %if line['index']==0:
96 ${ formatLang(object.amount) | entity}96 ${ formatLang(invoice_total(object)) | entity}
97 %endif97 %endif
98 </td>98 </td>
99 %if line['index']==0:99 %if line['index']==0:

Subscribers

People subscribed via source and target branches