Commit 8deb35f4 authored by Jérome Perrin's avatar Jérome Perrin

amendements to 28301, wrong method name was called, and expected results were

wrongly rounded.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28309 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 084526b2
......@@ -268,11 +268,11 @@ class TestCurrencyExchangeLine(AccountingTestCase, ERP5TypeTestCase):
portal_type=portal.getPortalAccountingMovementTypeList())
for line in line_list:
if line.getSourceValue() == self.account_module.goods_purchase:
self.assertEquals(line.getSourceTotalAssetDebit(),
327978)
self.assertEquals(line.getSourceInventoriatedTotalAssetDebit(),
327979)
elif line.getSourceValue() == self.account_module.receivable:
self.assertEquals(line.getSourceTotalAssetCredit(),
327978)
self.assertEquals(line.getSourceInventoriatedTotalAssetCredit(),
327979)
else:
self.fail('line not found')
......@@ -379,11 +379,11 @@ class TestCurrencyExchangeLine(AccountingTestCase, ERP5TypeTestCase):
portal_type=portal.getPortalAccountingMovementTypeList())
for line in line_list:
if line.getDestinationValue() == self.account_module.goods_purchase:
self.assertEquals(line.getDestinationTotalAssetDebit(),
327978)
self.assertEquals(line.getDestinationInventoriatedTotalAssetDebit(),
327979)
elif line.getDestinationValue() == self.account_module.receivable:
self.assertEquals(line.getDestinationTotalAssetCredit(),
327978)
self.assertEquals(line.getDestinationInventoriatedTotalAssetCredit(),
327979)
else:
self.fail('line not found')
......@@ -504,11 +504,11 @@ class TestCurrencyExchangeLine(AccountingTestCase, ERP5TypeTestCase):
for line in line_list:
if line.getDestinationValue() == self.account_module.goods_purchase:
self.assertEquals(line.getDestinationTotalAssetDebit(),
327978)
self.assertEquals(line.getDestinationInventoriatedTotalAssetDebit(),
327979)
elif line.getDestinationValue() == self.account_module.receivable:
self.assertEquals(line.getDestinationTotalAssetCredit(),
327978)
self.assertEquals(line.getDestinationInventoriatedTotalAssetCredit(),
327979)
else:
self.fail('line not found')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment