Commit ae5d6281 authored by Jérome Perrin's avatar Jérome Perrin

now that we check that conversion is not set when it should not, we should

create transactions with different currencies.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23727 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1e586ec1
...@@ -3170,7 +3170,7 @@ class TestAccountingWithSequences(ERP5TypeTestCase): ...@@ -3170,7 +3170,7 @@ class TestAccountingWithSequences(ERP5TypeTestCase):
# asset price have priority (ie. if asset price is not balanced, # asset price have priority (ie. if asset price is not balanced,
# refuses validation even if quantity is balanced) # refuses validation even if quantity is balanced)
transaction = self.createAccountingTransaction() transaction = self.createAccountingTransaction(resource_value=self.YEN)
line_list = transaction.getMovementList() line_list = transaction.getMovementList()
line_list[0].setDestinationTotalAssetPrice(10) line_list[0].setDestinationTotalAssetPrice(10)
line_list[1].setDestinationTotalAssetPrice(100) line_list[1].setDestinationTotalAssetPrice(100)
...@@ -3179,7 +3179,7 @@ class TestAccountingWithSequences(ERP5TypeTestCase): ...@@ -3179,7 +3179,7 @@ class TestAccountingWithSequences(ERP5TypeTestCase):
transaction, transaction,
'stop_action') 'stop_action')
transaction = self.createAccountingTransaction() transaction = self.createAccountingTransaction(resource_value=self.YEN)
line_list = transaction.getMovementList() line_list = transaction.getMovementList()
line_list[0].setSourceTotalAssetPrice(10) line_list[0].setSourceTotalAssetPrice(10)
line_list[1].setSourceTotalAssetPrice(100) line_list[1].setSourceTotalAssetPrice(100)
...@@ -3189,7 +3189,7 @@ class TestAccountingWithSequences(ERP5TypeTestCase): ...@@ -3189,7 +3189,7 @@ class TestAccountingWithSequences(ERP5TypeTestCase):
'stop_action') 'stop_action')
# only asset price needs to be balanced # only asset price needs to be balanced
transaction = self.createAccountingTransaction() transaction = self.createAccountingTransaction(resource_value=self.YEN)
line_list = transaction.getMovementList() line_list = transaction.getMovementList()
line_list[0].setSourceTotalAssetPrice(100) line_list[0].setSourceTotalAssetPrice(100)
line_list[0].setDestinationTotalAssetPrice(100) line_list[0].setDestinationTotalAssetPrice(100)
......
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