Commit 3beb8c62 authored by Aurel's avatar Aurel

define source_section on document


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9538 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c0ff7c62
...@@ -101,11 +101,11 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase) ...@@ -101,11 +101,11 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase)
need to be installed to run the test on. need to be installed to run the test on.
""" """
return ('erp5_base' return ('erp5_base'
, 'erp5_trade' , 'erp5_trade'
, 'erp5_accounting' , 'erp5_accounting'
, 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking , 'erp5_banking_core' # erp5_banking_core contains all generic methods for banking
, 'erp5_banking_inventory' , 'erp5_banking_inventory'
, 'erp5_banking_cash' , 'erp5_banking_cash'
) )
def getMonetaryDestructionModule(self): def getMonetaryDestructionModule(self):
...@@ -179,7 +179,6 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase) ...@@ -179,7 +179,6 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase)
self.organisation_externe = self.organisation_module.newContent(id='baobab_org_externe', portal_type='Organisation', self.organisation_externe = self.organisation_module.newContent(id='baobab_org_externe', portal_type='Organisation',
function='banking', group='baobab', site='testsite/madrid') function='banking', group='baobab', site='testsite/madrid')
# define the user # define the user
user_dict = { user_dict = {
'super_user' : [['Manager'], self.organisation, 'banking/comptable', 'baobab', 'testsite/paris'] 'super_user' : [['Manager'], self.organisation, 'banking/comptable', 'baobab', 'testsite/paris']
...@@ -264,7 +263,8 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase) ...@@ -264,7 +263,8 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase)
""" """
#print self.portal.portal_categories.objectIds() #print self.portal.portal_categories.objectIds()
# Monetary Destruction has source(serre) for source, destinat (serre) for destination, and a price coresponding to the sum of banknote of 10000 and of 5000 ( (2*3) * 10000 + (5*7) * 5000 ) # Monetary Destruction has source(serre) for source, destinat (serre) for destination, and a price coresponding to the sum of banknote of 10000 and of 5000 ( (2*3) * 10000 + (5*7) * 5000 )
self.monetary_destruction = self.monetary_destruction_module.newContent(id='monetary_destruction_1', portal_type='Monetary Destruction', source_value=self.source, destination_value=None, source_total_asset_price=110000.0) self.monetary_destruction = self.monetary_destruction_module.newContent(id='monetary_destruction_1', portal_type='Monetary Destruction', source_value=self.source, destination_value=None,
source_total_asset_price=110000.0, source_section_value=self.paris)
# execute tic # execute tic
self.stepTic() self.stepTic()
# check we have only one monetary destruction # check we have only one monetary destruction
...@@ -284,7 +284,8 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase) ...@@ -284,7 +284,8 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase)
Create a monetary destruction document and check it Create a monetary destruction document and check it
""" """
# Monetary Destruction has source(serre) for source, destinat (serre) for destination, and a price coresponding to the sum of banknote of 10000 and of 5000 ( (2*3) * 10000 + (5*7) * 5000 ) # Monetary Destruction has source(serre) for source, destinat (serre) for destination, and a price coresponding to the sum of banknote of 10000 and of 5000 ( (2*3) * 10000 + (5*7) * 5000 )
self.monetary_destruction = self.monetary_destruction_module.newContent(id='monetary_destruction_1', portal_type='Monetary Destruction', source_value=self.source_for_externe, destination_value=None, source_total_asset_price=110000.0) self.monetary_destruction = self.monetary_destruction_module.newContent(id='monetary_destruction_1', portal_type='Monetary Destruction', source_value=self.source_for_externe, destination_value=None,
source_total_asset_price=110000.0, source_section_value=self.madrid)
# execute tic # execute tic
self.stepTic() self.stepTic()
# check we have only one monetary destruction # check we have only one monetary destruction
...@@ -766,8 +767,8 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase) ...@@ -766,8 +767,8 @@ class TestERP5BankingMonetaryDestruction(TestERP5BankingMixin, ERP5TypeTestCase)
+ 'CreateInvalidLine ' \ + 'CreateInvalidLine ' \
+ 'TryPlannedMonetaryDestructionWithBadInventory ' \ + 'TryPlannedMonetaryDestructionWithBadInventory ' \
+ 'DelInvalidLine Tic CheckTotal ' \ + 'DelInvalidLine Tic CheckTotal ' \
+ 'PlanMonetaryDestruction ' \ + 'PlanMonetaryDestruction ' \
+ 'CheckSourceDebitPlannedForExterne ' \ + 'CheckSourceDebitPlannedForExterne ' \
+ 'OrderMonetaryDestruction ' \ + 'OrderMonetaryDestruction ' \
+ 'ConfirmMonetaryDestruction ' \ + 'ConfirmMonetaryDestruction ' \
+ 'ConfirmToDeliverMonetaryDestruction ' \ + 'ConfirmToDeliverMonetaryDestruction ' \
......
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