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): ...@@ -268,11 +268,11 @@ class TestCurrencyExchangeLine(AccountingTestCase, ERP5TypeTestCase):
portal_type=portal.getPortalAccountingMovementTypeList()) portal_type=portal.getPortalAccountingMovementTypeList())
for line in line_list: for line in line_list:
if line.getSourceValue() == self.account_module.goods_purchase: if line.getSourceValue() == self.account_module.goods_purchase:
self.assertEquals(line.getSourceTotalAssetDebit(), self.assertEquals(line.getSourceInventoriatedTotalAssetDebit(),
327978) 327979)
elif line.getSourceValue() == self.account_module.receivable: elif line.getSourceValue() == self.account_module.receivable:
self.assertEquals(line.getSourceTotalAssetCredit(), self.assertEquals(line.getSourceInventoriatedTotalAssetCredit(),
327978) 327979)
else: else:
self.fail('line not found') self.fail('line not found')
...@@ -379,11 +379,11 @@ class TestCurrencyExchangeLine(AccountingTestCase, ERP5TypeTestCase): ...@@ -379,11 +379,11 @@ class TestCurrencyExchangeLine(AccountingTestCase, ERP5TypeTestCase):
portal_type=portal.getPortalAccountingMovementTypeList()) portal_type=portal.getPortalAccountingMovementTypeList())
for line in line_list: for line in line_list:
if line.getDestinationValue() == self.account_module.goods_purchase: if line.getDestinationValue() == self.account_module.goods_purchase:
self.assertEquals(line.getDestinationTotalAssetDebit(), self.assertEquals(line.getDestinationInventoriatedTotalAssetDebit(),
327978) 327979)
elif line.getDestinationValue() == self.account_module.receivable: elif line.getDestinationValue() == self.account_module.receivable:
self.assertEquals(line.getDestinationTotalAssetCredit(), self.assertEquals(line.getDestinationInventoriatedTotalAssetCredit(),
327978) 327979)
else: else:
self.fail('line not found') self.fail('line not found')
...@@ -504,11 +504,11 @@ class TestCurrencyExchangeLine(AccountingTestCase, ERP5TypeTestCase): ...@@ -504,11 +504,11 @@ class TestCurrencyExchangeLine(AccountingTestCase, ERP5TypeTestCase):
for line in line_list: for line in line_list:
if line.getDestinationValue() == self.account_module.goods_purchase: if line.getDestinationValue() == self.account_module.goods_purchase:
self.assertEquals(line.getDestinationTotalAssetDebit(), self.assertEquals(line.getDestinationInventoriatedTotalAssetDebit(),
327978) 327979)
elif line.getDestinationValue() == self.account_module.receivable: elif line.getDestinationValue() == self.account_module.receivable:
self.assertEquals(line.getDestinationTotalAssetCredit(), self.assertEquals(line.getDestinationInventoriatedTotalAssetCredit(),
327978) 327979)
else: else:
self.fail('line not found') 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