[Erp5-report] r23727 - /erp5/trunk/products/ERP5/tests/testAccounting.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Sep 22 10:11:18 CEST 2008
Author: jerome
Date: Mon Sep 22 10:11:05 2008
New Revision: 23727
URL: http://svn.erp5.org?rev=23727&view=rev
Log:
now that we check that conversion is not set when it should not, we should
create transactions with different currencies.
Modified:
erp5/trunk/products/ERP5/tests/testAccounting.py
Modified: erp5/trunk/products/ERP5/tests/testAccounting.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccounting.py?rev=23727&r1=23726&r2=23727&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccounting.py (original)
+++ erp5/trunk/products/ERP5/tests/testAccounting.py Mon Sep 22 10:11:05 2008
@@ -3170,7 +3170,7 @@
# asset price have priority (ie. if asset price is not balanced,
# refuses validation even if quantity is balanced)
- transaction = self.createAccountingTransaction()
+ transaction = self.createAccountingTransaction(resource_value=self.YEN)
line_list = transaction.getMovementList()
line_list[0].setDestinationTotalAssetPrice(10)
line_list[1].setDestinationTotalAssetPrice(100)
@@ -3179,7 +3179,7 @@
transaction,
'stop_action')
- transaction = self.createAccountingTransaction()
+ transaction = self.createAccountingTransaction(resource_value=self.YEN)
line_list = transaction.getMovementList()
line_list[0].setSourceTotalAssetPrice(10)
line_list[1].setSourceTotalAssetPrice(100)
@@ -3189,7 +3189,7 @@
'stop_action')
# only asset price needs to be balanced
- transaction = self.createAccountingTransaction()
+ transaction = self.createAccountingTransaction(resource_value=self.YEN)
line_list = transaction.getMovementList()
line_list[0].setSourceTotalAssetPrice(100)
line_list[0].setDestinationTotalAssetPrice(100)
More information about the Erp5-report
mailing list