Commit 007e9612 authored by Sebastien Robin's avatar Sebastien Robin

set the source_total_asset_price

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9253 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6f1e39b7
...@@ -149,12 +149,13 @@ class TestERP5BankingForeignCashReception(TestERP5BankingMixin, ERP5TypeTestCase ...@@ -149,12 +149,13 @@ class TestERP5BankingForeignCashReception(TestERP5BankingMixin, ERP5TypeTestCase
""" """
Create a cash inventory document and check it 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 ) #and a price cooreponding to the sum of banknote of 50 and 20
self.foreign_cash_reception = self.foreign_cash_reception_module.newContent(id='foreign_cash_reception', portal_type='Foreign Cash Reception', #( (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, source_value=None, destination_value=self.reception,
resource_value=self.currency_1) resource_value=self.currency_1,
# self.setDestinationValue(self.reception) source_total_asset_price=250)
# self.setResourceValue(self.currency_1)
# execute tic # execute tic
self.stepTic() self.stepTic()
# get the cash inventory document # get the cash inventory document
......
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