Merge lp:~inddiana/sisb/sisb_fix_configuracion_ctas_ret_municipal into lp:sisb

Proposed by [SISB] Aryrosa Fuentes
Status: Merged
Merged at revision: 989
Proposed branch: lp:~inddiana/sisb/sisb_fix_configuracion_ctas_ret_municipal
Merge into: lp:sisb
Diff against target: 43 lines (+4/-4)
2 files modified
l10n_ve_withholding_muni/model/invoice.py (+2/-2)
l10n_ve_withholding_muni/model/wh_muni.py (+2/-2)
To merge this branch: bzr merge lp:~inddiana/sisb/sisb_fix_configuracion_ctas_ret_municipal
Reviewer Review Type Date Requested Status
Juan Lugo Pending
Review via email: mp+341900@code.launchpad.net

Description of the change

[FIX] Ajuste en la creacion del asiento contable de la retencion municipal cuando es factura o nota de credito.

To post a comment you must log in.
989. By [SISB] Aryrosa Fuentes

[FIX] Ajuste en la creacion del asiento contable de la retencion municipal cuando es factura o nota de credito.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'l10n_ve_withholding_muni/model/invoice.py'
--- l10n_ve_withholding_muni/model/invoice.py 2013-05-02 20:32:39 +0000
+++ l10n_ve_withholding_muni/model/invoice.py 2018-03-22 13:27:26 +0000
@@ -104,7 +104,7 @@
104 direction = types[invoice.type]104 direction = types[invoice.type]
105105
106 for tax_brw in to_wh:106 for tax_brw in to_wh:
107 if types[invoice.type]==1:107 if invoice.type in ('in_invoice','in_refund'):
108 acc = tax_brw.wh_id.company_id.wh_muni_collected_account_id and tax_brw.wh_id.company_id.wh_muni_collected_account_id.id or False108 acc = tax_brw.wh_id.company_id.wh_muni_collected_account_id and tax_brw.wh_id.company_id.wh_muni_collected_account_id.id or False
109 else:109 else:
110 acc = tax_brw.wh_id.company_id.wh_muni_paid_account_id and tax_brw.wh_id.company_id.wh_muni_paid_account_id.id or False110 acc = tax_brw.wh_id.company_id.wh_muni_paid_account_id and tax_brw.wh_id.company_id.wh_muni_paid_account_id.id or False
@@ -120,7 +120,7 @@
120 'currency_id': False,120 'currency_id': False,
121 'name':name121 'name':name
122 }))122 }))
123 123
124 return res124 return res
125125
126account_invoice()126account_invoice()
127127
=== modified file 'l10n_ve_withholding_muni/model/wh_muni.py'
--- l10n_ve_withholding_muni/model/wh_muni.py 2013-08-07 19:29:16 +0000
+++ l10n_ve_withholding_muni/model/wh_muni.py 2018-03-22 13:27:26 +0000
@@ -348,7 +348,7 @@
348348
349 ] 349 ]
350 350
351 def onchange_invoice_id(self, cr, uid, ids, type, invoice_id=False,base_amount=0.0,wh_muni_rate=10.0,context=None):351 def onchange_invoice_id(self, cr, uid, ids, type, invoice_id=False,base_amount=0.0,wh_muni_rate=0.10,context=None):
352 if context is None: context = {} 352 if context is None: context = {}
353 res = {}353 res = {}
354 inv_obj = self.pool.get('account.invoice')354 inv_obj = self.pool.get('account.invoice')
@@ -364,7 +364,7 @@
364 364
365 inv_brw = inv_obj.browse(cr, uid, invoice_id)365 inv_brw = inv_obj.browse(cr, uid, invoice_id)
366 base_amount = base_amount or inv_brw.amount_untaxed366 base_amount = base_amount or inv_brw.amount_untaxed
367 wh_muni_rate = wh_muni_rate or inv_brw.wh_muni_rate or 10.0367 wh_muni_rate = wh_muni_rate or inv_brw.wh_muni_rate or 0.10
368 wh_amount = base_amount * wh_muni_rate/100.0368 wh_amount = base_amount * wh_muni_rate/100.0
369 inv_ref = inv_brw.reference or ''369 inv_ref = inv_brw.reference or ''
370 res = {'value': {370 res = {'value': {

Subscribers

People subscribed via source and target branches