Commit 1a248129 authored by Sebastien Robin's avatar Sebastien Robin

make sure to set well the source reference

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10476 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d5363ad0
...@@ -206,8 +206,15 @@ class TestERP5BankingCashToCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -206,8 +206,15 @@ class TestERP5BankingCashToCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase):
""" """
Create a cash sorting document and check it Create a cash sorting document and check it
""" """
# Cash sorting has encaisse_paris for source, guichet_1 for destination, and a price cooreponding to the sum of banknote of 10000 and banknotes of 200 ( (2+3) * 10000 + (2+3) * 200 ) # Create Cash sorting
self.cash_to_currency_sale = self.cash_to_currency_sale_module.newContent(id='cash_to_currency_sale_1', portal_type='Cash To Currency Sale', source_value=self.guichet, destination_value=None, resource_value = self.currency_2, source_total_asset_price=100.0, discount = 3000.0, quantity = 70000.0) self.cash_to_currency_sale = self.cash_to_currency_sale_module.newContent(
id='cash_to_currency_sale_1',
portal_type='Cash To Currency Sale',
source_value=self.guichet,
destination_value=None,
resource_value = self.currency_2,
source_total_asset_price=100.0,
discount = 3000.0, quantity = 70000.0)
# execute tic # execute tic
self.stepTic() self.stepTic()
# check we have only one cash sorting # check we have only one cash sorting
...@@ -220,6 +227,7 @@ class TestERP5BankingCashToCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase): ...@@ -220,6 +227,7 @@ class TestERP5BankingCashToCurrencySale(TestERP5BankingMixin, ERP5TypeTestCase):
self.assertEqual(self.cash_to_currency_sale.getSource(), 'site/testsite/paris/surface/banque_interne/guichet_1') self.assertEqual(self.cash_to_currency_sale.getSource(), 'site/testsite/paris/surface/banque_interne/guichet_1')
# check that its destination is guichet_1 # check that its destination is guichet_1
self.assertEqual(self.cash_to_currency_sale.getDestination(), None) self.assertEqual(self.cash_to_currency_sale.getDestination(), None)
self.setDocumentSourceReference(self.cash_to_currency_sale)
#def stepCreateValidIncomingLine(self, sequence=None, sequence_list=None, **kwd): #def stepCreateValidIncomingLine(self, sequence=None, sequence_list=None, **kwd):
......
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