[Erp5-report] r9253 - /erp5/trunk/products/ERP5Banking/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Aug 18 14:45:25 CEST 2006


Author: seb
Date: Fri Aug 18 14:45:14 2006
New Revision: 9253

URL: http://svn.erp5.org?rev=9253&view=rev
Log:
set the source_total_asset_price

Modified:
    erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py

Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py?rev=9253&r1=9252&r2=9253&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py Fri Aug 18 14:45:14 2006
@@ -149,12 +149,13 @@
     """
     Create a cash inventory document and check it
     """
-    # Cash inventory has caisse_1 for source, caisse_2 for destination, and a price cooreponding to the sum of banknote of 50 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
-    self.foreign_cash_reception = self.foreign_cash_reception_module.newContent(id='foreign_cash_reception', portal_type='Foreign Cash Reception',
-                                                                        source_value=None, destination_value=self.reception,
-                                                                        resource_value=self.currency_1)
-    #     self.setDestinationValue(self.reception)
-    #     self.setResourceValue(self.currency_1)
+    #and a price cooreponding to the sum of banknote of 50 and 20 
+    #( (3) * 50 + (5) * 20 ) = 250
+    self.foreign_cash_reception = self.foreign_cash_reception_module.newContent(
+		    id='foreign_cash_reception', portal_type='Foreign Cash Reception',
+                    source_value=None, destination_value=self.reception,
+                    resource_value=self.currency_1,
+		    source_total_asset_price=250)
     # execute tic
     self.stepTic()
     # get the cash inventory document




More information about the Erp5-report mailing list