Merge lp:~matjaz-6/openerpsl/openerpsl_04_29 into lp:openerpsl/7.0

Proposed by Matjaz Kalic
Status: Merged
Merged at revision: 432
Proposed branch: lp:~matjaz-6/openerpsl/openerpsl_04_29
Merge into: lp:openerpsl/7.0
Diff against target: 15 lines (+2/-2)
1 file modified
intrastat/wizard/intrastat_export.py (+2/-2)
To merge this branch: bzr merge lp:~matjaz-6/openerpsl/openerpsl_04_29
Reviewer Review Type Date Requested Status
Mentis Pending
Review via email: mp+226655@code.launchpad.net

Description of the change

[FIX] intrastat_export (round invoicedAmount)

To post a comment you must log in.
432. By Dušan Laznik (Mentis)

[FIX] intrastat_export (round invoicedAmount)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'intrastat/wizard/intrastat_export.py'
2--- intrastat/wizard/intrastat_export.py 2014-07-03 11:40:28 +0000
3+++ intrastat/wizard/intrastat_export.py 2014-07-14 11:50:48 +0000
4@@ -143,9 +143,9 @@
5 _countryOfOriginCode = etree.SubElement(_Item, 'countryOfOriginCode')
6 _countryOfOriginCode.text = line.country_origin_code
7 _netMass = etree.SubElement(_Item, 'netMass')
8- _netMass.text = str(round(line.weight, 2))
9+ _netMass.text = str(round(line.weight, 3))
10 _invoicedAmount = etree.SubElement(_Item, 'invoicedAmount')
11- _invoicedAmount.text = str(line.value)
12+ _invoicedAmount.text = str(round(line.value, 2))
13 _NatureOfTransaction = etree.SubElement(_Item, 'NatureOfTransaction')
14 _natureOfTransactionACode = etree.SubElement(_NatureOfTransaction, 'natureOfTransactionACode')
15 _natureOfTransactionACode.text = '1'

Subscribers

People subscribed via source and target branches