[6.0] l10n_ve_fiscal_requirements: web-service no devuelve tasa de retención

Bug #1187089 reported by Aristóbulo Meneses
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Openerp Venezuela
Fix Released
Critical
Katherine Zaoral (Vauxoo)
6.0
Fix Released
Critical
Katherine Zaoral (Vauxoo)
Trunk
Fix Released
Critical
Katherine Zaoral (Vauxoo)

Bug Description

Al consultar un RIF la tasa de retención se devuelve vacía, esto se debe a un cambio en la estructura que retorna el portal del SENIAT. Ya el web-service fue modficado para que podamos seguirlo aprovechando. Para que funcione se debe aplicar el siguiente diferencial:

=== modified file 'l10n_ve_fiscal_requirements/seniat_url.py'
--- l10n_ve_fiscal_requirements/seniat_url.py 2012-02-22 15:22:25 +0000
+++ l10n_ve_fiscal_requirements/seniat_url.py 2013-06-03 18:18:43 +0000
@@ -79,11 +79,12 @@
     def _parse_dom(self,dom,rif,url_seniat):
         name = dom.childNodes[0].childNodes[0].firstChild.data
         vat_subjected = dom.childNodes[0].childNodes[2].firstChild.data.upper()=='SI' and True or False
+ rate = dom.childNodes[0].childNodes[3].firstChild.data
         self.logger.notifyChannel("info", netsvc.LOG_INFO,
             "RIF: %s Found" % rif)
         if name.count('(') > 0:
             name = name[:name.index('(')].rstrip()
- res= {'name': name,'vat_subjected': vat_subjected,}
+ res= {'name': name,'vat_subjected': vat_subjected, 'wh_iva_rate': rate}
         return res

     def _print_error(self, error, msg):

=== modified file 'l10n_ve_fiscal_requirements/wizard/search_info_partner_seniat.py'
--- l10n_ve_fiscal_requirements/wizard/search_info_partner_seniat.py 2012-02-14 16:45:37 +0000
+++ l10n_ve_fiscal_requirements/wizard/search_info_partner_seniat.py 2013-06-03 18:17:26 +0000
@@ -48,7 +48,7 @@
         if var_vat:
             aux = var_vat[0]['vat']
         res = su_obj._dom_giver(url1, url2, context, aux)
- res.update({'wh_iva_rate':su_obj._buscar_porcentaje(aux,url2)})
+ #res.update({'wh_iva_rate':su_obj._buscar_porcentaje(aux,url2)})
         self.write(cr,uid,vat,res)

         return False

Related branches

Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :

Gracias aristóbulo, ya lo estaremos colocando en la v6 y trunk.

Saludos.

Changed in openerp-venezuela-localization:
status: New → In Progress
Changed in openerp-venezuela-localization:
status: In Progress → Fix Committed
importance: Undecided → Critical
assignee: nobody → Katherine Zaoral (Vauxoo) (katherine-zaoral-7)
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :

Se agregaron algunos cambios para que todo se pudiera hacer en un solo modulo l10n_ve_fiscal_requirements

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.