← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-730885-skh into lp:openobject-addons

 

Somesh Khare(OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-730885-skh into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #730885 in OpenERP Addons: "[6.0] l10n_be: vat_intra report: used tax code are wrong"
  https://bugs.launchpad.net/openobject-addons/+bug/730885

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-730885-skh/+merge/55318

Hello,

Fix : l10n_be: vat_intra report: used tax code are wrong.

Thanks,
skh
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-730885-skh/+merge/55318
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-730885-skh.
=== modified file 'l10n_be/wizard/l10n_be_vat_intra.py'
--- l10n_be/wizard/l10n_be_vat_intra.py	2011-01-14 00:11:01 +0000
+++ l10n_be/wizard/l10n_be_vat_intra.py	2011-03-29 11:27:33 +0000
@@ -138,7 +138,7 @@
             amt = row['amount'] or 0
             amt = int(round(amt * 100))
             amount_sum += amt
-            intra_code = row['intra_code'] == '88' and 'L' or (row['intra_code'] == '44b' and 'T' or (row['intra_code'] == '44a' and 'S' or ''))
+            intra_code = row['intra_code'] == '46a' and 'L' or (row['intra_code'] == '46b' and 'T' or (row['intra_code'] == '44' and 'S' or ''))
             data_clientinfo +='\n\t\t<ClientList SequenceNum="'+str(seq)+'">\n\t\t\t<CompanyInfo>\n\t\t\t\t<VATNum>'+row['vat'][2:] +'</VATNum>\n\t\t\t\t<Country>'+row['vat'][:2] +'</Country>\n\t\t\t</CompanyInfo>\n\t\t\t<Amount>'+str(amt) +'</Amount>\n\t\t\t<Code>'+str(intra_code) +'</Code>\n\t\t</ClientList>'
         amount_sum = int(amount_sum)
         data_decl = '\n\t<DeclarantList SequenceNum="1" DeclarantNum="'+ dnum + '" ClientNbr="'+ str(seq) +'" AmountSum="'+ str(amount_sum) +'" >'


Follow ups