Merge lp:~vauxoo/openerp-venezuela-localization/edgar_formato_libro_retencion into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk

Proposed by [SISB] Edgar Rivero
Status: Superseded
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/edgar_formato_libro_retencion
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 89 lines (+21/-6)
3 files modified
l10n_ve_fiscal_reports/report/wh_book.py (+13/-2)
l10n_ve_fiscal_reports/report/witholding_book.rml (+3/-3)
l10n_ve_withholding_iva/model/generate_txt.py (+5/-1)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/edgar_formato_libro_retencion
Reviewer Review Type Date Requested Status
Javier Duran (community) Approve
Review via email: mp+105338@code.launchpad.net

This proposal supersedes a proposal from 2012-05-07.

This proposal has been superseded by a proposal from 2012-05-10.

Description of the change

[FIX] Corregido formato del libro de retencion y cambiado ordenamiento
por comprobante.

[FIX] Corregido error en la Base Imponible, en el libro de retencion.

[FIX] Corregido formato de las lineas, del "Generar txt" de retencion.

To post a comment you must log in.
664. By [SISB] Edgar Rivero

[FIX] En generar txt se coloca el monto en positivo y en el momento
de calcular el total del monto retenido y base imponible, se calcula
tomando en cuenta si es factura, nota de credito o de debito.

Revision history for this message
Javier Duran (javieredm) wrote : Posted in a previous version of this proposal

Unido a la rama principal de la localización en la revisión:

revno: 668 [merge]
revision-id: javier@squezee-vir-20120510203417-mrzh5rtwkdpb76f9

review: Approve
Revision history for this message
Javier Duran (javieredm) wrote :

Unido a la rama principal de la localización en la revisión:

revno: 668 [merge]
revision-id: javier@squezee-vir-20120510203417-mrzh5rtwkdpb76f9

review: Approve
Revision history for this message
Javier Duran (javieredm) wrote : Posted in a previous version of this proposal

Unido a la rama principal de la localización en la revisión:

revno: 668 [merge]
revision-id: javier@squezee-vir-20120510203417-mrzh5rtwkdpb76f9

review: Approve

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'l10n_ve_fiscal_reports/report/wh_book.py'
--- l10n_ve_fiscal_reports/report/wh_book.py 2012-02-16 21:14:14 +0000
+++ l10n_ve_fiscal_reports/report/wh_book.py 2012-05-10 19:20:25 +0000
@@ -49,6 +49,7 @@
49 'get_totals':self._get_totals,49 'get_totals':self._get_totals,
50 'get_total_excent':self._get_total_excent,50 'get_total_excent':self._get_total_excent,
51 'get_total_wh':self._get_total_wh,51 'get_total_wh':self._get_total_wh,
52 'get_totals_base': self.get_totals_base,
52 })53 })
5354
54 def _get_partner_addr(self, idp=None):55 def _get_partner_addr(self, idp=None):
@@ -100,7 +101,7 @@
100 book_type='fiscal.reports.whs'101 book_type='fiscal.reports.whs'
101 data=[]102 data=[]
102 fr_obj = self.pool.get(book_type)103 fr_obj = self.pool.get(book_type)
103 fr_ids = fr_obj.search(self.cr,self.uid,[('ar_date_ret', '<=', d2), ('ar_date_ret', '>=', d1)])104 fr_ids = fr_obj.search(self.cr,self.uid,[('ar_date_ret', '<=', d2), ('ar_date_ret', '>=', d1)], order='ar_number')
104 data = fr_obj.browse(self.cr,self.uid, fr_ids)105 data = fr_obj.browse(self.cr,self.uid, fr_ids)
105 return data106 return data
106107
@@ -163,7 +164,17 @@
163 total_excent=total_excent+self._get_exc(d.ar_line_id)164 total_excent=total_excent+self._get_exc(d.ar_line_id)
164 return total_excent165 return total_excent
165 166
166 167 def get_totals_base(self, form):
168 data = self._get_data(form)
169 total = 0
170 for base in data:
171 for line in base.ar_line_id.tax_line:
172 if line.base:
173 if base.ai_id.type == 'in_refund':
174 total += line.base * (-1)
175 else:
176 total += line.base
177 return total
167 178
168report_sxw.report_sxw(179report_sxw.report_sxw(
169 'report.fiscal.reports.whp.whp_seniat',180 'report.fiscal.reports.whp.whp_seniat',
170181
=== modified file 'l10n_ve_fiscal_reports/report/witholding_book.rml'
--- l10n_ve_fiscal_reports/report/witholding_book.rml 2012-02-16 21:14:14 +0000
+++ l10n_ve_fiscal_reports/report/witholding_book.rml 2012-05-10 19:20:25 +0000
@@ -106,10 +106,10 @@
106 <para style="ENCABEZADO">Factura Afectada</para>106 <para style="ENCABEZADO">Factura Afectada</para>
107 </td>107 </td>
108 <td>108 <td>
109 <para style="ENCABEZADO">Total Ventas</para>109 <para style="ENCABEZADO">[[ (data['form']['model'] == 'wh_p') and "Total Compras" or "Total Ventas" ]]</para>
110 </td>110 </td>
111 <td>111 <td>
112 <para style="ENCABEZADO">Ventas Exentas</para>112 <para style="ENCABEZADO">[[ (data['form']['model'] == 'wh_p') and "Compras Exentas" or "Ventas Exentas" ]]</para>
113 </td>113 </td>
114 <td>114 <td>
115 <para style="ENCABEZADO">Impuesto</para>115 <para style="ENCABEZADO">Impuesto</para>
@@ -219,7 +219,7 @@
219 <td>219 <td>
220 </td>220 </td>
221 <td>221 <td>
222 <para style="TOTALES">[[ formatLang(get_totals(data['form'])[1]) ]]</para>222 <para style="TOTALES">[[ formatLang(get_totals_base(data['form'])) ]]</para>
223 </td>223 </td>
224 </tr>224 </tr>
225 </blockTable>225 </blockTable>
226226
=== modified file 'l10n_ve_withholding_iva/model/generate_txt.py'
--- l10n_ve_withholding_iva/model/generate_txt.py 2012-02-16 19:12:15 +0000
+++ l10n_ve_withholding_iva/model/generate_txt.py 2012-05-10 19:20:25 +0000
@@ -54,7 +54,10 @@
54 for txt in self.browse(cr,uid,ids,context):54 for txt in self.browse(cr,uid,ids,context):
55 res[txt.id]= 0.055 res[txt.id]= 0.0
56 for txt_line in txt.txt_ids:56 for txt_line in txt.txt_ids:
57 res[txt.id] += txt_line.untaxed57 if txt_line.invoice_id.type in ['out_refund','in_refund']:
58 res[txt.id] -= txt_line.untaxed
59 else:
60 res[txt.id] += txt_line.untaxed
58 return res61 return res
5962
60 _columns = {63 _columns = {
@@ -125,6 +128,7 @@
125 for voucher_lines in voucher.wh_lines:128 for voucher_lines in voucher.wh_lines:
126 129
127 if voucher_lines.invoice_id.state in ['open','paid']:130 if voucher_lines.invoice_id.state in ['open','paid']:
131
128 txt_iva_obj.create(cr,uid,132 txt_iva_obj.create(cr,uid,
129 {'partner_id':voucher.partner_id.id,133 {'partner_id':voucher.partner_id.id,
130 'voucher_id':voucher.id,134 'voucher_id':voucher.id,