[Erp5-report] r11421 - /erp5/trunk/products/ERP5Banking/tests/
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Nov 22 11:28:53 CET 2006
Author: seb
Date: Wed Nov 22 11:28:43 2006
New Revision: 11421
URL: http://svn.erp5.org?rev=11421&view=rev
Log:
added description on all documents, it is necassary for some customer interfaces, fixed the usual cash transfer test
Modified:
erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashBalanceRegulation.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashExchange.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashIncident.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSorting.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSortingIncident.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencyPurchase.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencySale.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookMovement.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookReception.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCurrencyPurchase.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingCurrencySale.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryIssue.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryReception.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetarySurvey.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDeposit.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositRendering.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositTransfer.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingStopPayment.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckPurchase.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckSale.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashIncident.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashTransfer.py
erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingAccountIncident.py Wed Nov 22 11:28:43 2006
@@ -209,8 +209,12 @@
Create a cash transfer document and check it
"""
# Cash transfer has usual_cash for source, counter for destination, and a price cooreponding to the sum of banknote of 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.account_incident = self.account_incident_module.newContent(id='account_incident_1', portal_type='Account Incident', source_total_asset_price=52400.0,
- destination_payment_value=self.bank_account_1)
+ self.account_incident = self.account_incident_module.newContent(
+ id='account_incident_1',
+ portal_type='Account Incident',
+ source_total_asset_price=52400.0,
+ description='test',
+ destination_payment_value=self.bank_account_1)
# execute tic
self.stepTic()
# set source reference
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashBalanceRegulation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashBalanceRegulation.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashBalanceRegulation.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashBalanceRegulation.py Wed Nov 22 11:28:43 2006
@@ -272,7 +272,13 @@
def stepCreateCashBalanceRegulation(self, sequence=None, sequence_list=None, **kwd):
- self.cash_balance_regulation = self.cash_balance_regulation_module.newContent(id='cash_balance_regulation_1', portal_type='Cash Balance Regulation', source_value=self.guichet_1, destination_value=None, source_total_asset_price=52400.0)
+ self.cash_balance_regulation = self.cash_balance_regulation_module.newContent(
+ id='cash_balance_regulation_1',
+ portal_type='Cash Balance Regulation',
+ source_value=self.guichet_1,
+ destination_value=None,
+ description='test',
+ source_total_asset_price=52400.0)
self.stepTic()
self.assertEqual(len(self.cash_balance_regulation_module.objectValues()), 1)
self.cash_balance_regulation = getattr(self.cash_balance_regulation_module, 'cash_balance_regulation_1')
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashClassification.py Wed Nov 22 11:28:43 2006
@@ -220,7 +220,13 @@
Create a cash sorting document and check it
"""
# Cash sorting has encaisse_paris for source, encaisse_externe for destination, and a price cooreponding to the sum of banknote of 10000 and banknotes of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.cash_sorting = self.cash_sorting_module.newContent(id='cash_sorting_1', portal_type='Cash Sorting', source_value=self.encaisse_tri, destination_value=None, source_total_asset_price=52400.0)
+ self.cash_sorting = self.cash_sorting_module.newContent(
+ id='cash_sorting_1',
+ portal_type='Cash Sorting',
+ source_value=self.encaisse_tri,
+ description='test',
+ destination_value=None,
+ source_total_asset_price=52400.0)
# execute tic
self.stepTic()
# set source reference
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashExchange.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashExchange.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashExchange.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashExchange.py Wed Nov 22 11:28:43 2006
@@ -229,7 +229,14 @@
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 )
- self.cash_exchange = self.cash_exchange_module.newContent(id='cash_exchange_1', portal_type='Cash Exchange', source_value=self.guichet, destination_value=None, resource_value = self.currency_1, source_total_asset_price=52400.0)
+ self.cash_exchange = self.cash_exchange_module.newContent(
+ id='cash_exchange_1',
+ portal_type='Cash Exchange',
+ source_value=self.guichet,
+ destination_value=None,
+ description='test',
+ resource_value = self.currency_1,
+ source_total_asset_price=52400.0)
# execute tic
self.stepTic()
# check we have only one cash sorting
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashIncident.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashIncident.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashIncident.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashIncident.py Wed Nov 22 11:28:43 2006
@@ -178,7 +178,11 @@
Create a cash transfer document and check it
"""
# Cash transfer has usual_cash for source, counter for destination, and a price cooreponding to the sum of banknote of 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.cash_incident = self.cash_incident_module.newContent(id='cash_incident_1', portal_type='Cash Incident', source_total_asset_price=52400.0,)
+ self.cash_incident = self.cash_incident_module.newContent(
+ id='cash_incident_1',
+ portal_type='Cash Incident',
+ description='test',
+ source_total_asset_price=52400.0,)
# execute tic
self.stepTic()
# set source reference
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashMovement.py Wed Nov 22 11:28:43 2006
@@ -228,9 +228,13 @@
# Cash Movement has vault_source (Gros versment) for source, vault_destination for destination, and a price cooreponding to the sum of banknote of 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.cash_movement = self.cash_movement_module.newContent(id='cash_movement_1',
- portal_type='Cash Movement', source=self.vault_source.getRelativeUrl(),
- destination=self.vault_destination.getRelativeUrl(), source_total_asset_price=52400.0)
+ self.cash_movement = self.cash_movement_module.newContent(
+ id='cash_movement_1',
+ portal_type='Cash Movement',
+ source=self.vault_source.getRelativeUrl(),
+ destination=self.vault_destination.getRelativeUrl(),
+ description='test',
+ source_total_asset_price=52400.0)
# execute tic
self.stepTic()
# check we have only one vault transfer
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSorting.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSorting.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSorting.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSorting.py Wed Nov 22 11:28:43 2006
@@ -220,7 +220,13 @@
Create a cash sorting document and check it
"""
# Cash sorting has encaisse_paris for source, encaisse_externe for destination, and a price cooreponding to the sum of banknote of 10000 and banknotes of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.cash_sorting = self.cash_sorting_module.newContent(id='cash_sorting_1', portal_type='Cash Sorting', source_value=self.encaisse_tri, destination_value=None, source_total_asset_price=52400.0)
+ self.cash_sorting = self.cash_sorting_module.newContent(
+ id='cash_sorting_1',
+ portal_type='Cash Sorting',
+ source_value=self.encaisse_tri,
+ destination_value=None,
+ description='test',
+ source_total_asset_price=52400.0)
# execute tic
self.stepTic()
# set source reference
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSortingIncident.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSortingIncident.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSortingIncident.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashSortingIncident.py Wed Nov 22 11:28:43 2006
@@ -196,7 +196,11 @@
Create a cash transfer document and check it
"""
# Cash transfer has usual_cash for source, counter for destination, and a price cooreponding to the sum of banknote of 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.cash_sorting_incident = self.cash_sorting_incident_module.newContent(id='cash_sorting_incident_1', portal_type='Cash Sorting Incident', source_total_asset_price=52400.0,)
+ self.cash_sorting_incident = self.cash_sorting_incident_module.newContent(
+ id='cash_sorting_incident_1',
+ portal_type='Cash Sorting Incident',
+ description='test',
+ source_total_asset_price=52400.0,)
# execute tic
self.stepTic()
# check we have only one cash transfer
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencyPurchase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencyPurchase.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencyPurchase.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencyPurchase.py Wed Nov 22 11:28:43 2006
@@ -223,7 +223,14 @@
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 )
- self.cash_to_currency_purchase = self.cash_to_currency_purchase_module.newContent(id='cash_to_currency_purchase_1', portal_type='Cash To Currency Purchase', source_value=self.guichet, destination_value=None, resource_value = self.currency_2, source_total_asset_price=100.0)
+ self.cash_to_currency_purchase = self.cash_to_currency_purchase_module.newContent(
+ id='cash_to_currency_purchase_1',
+ portal_type='Cash To Currency Purchase',
+ source_value=self.guichet,
+ destination_value=None,
+ description='test',
+ resource_value = self.currency_2,
+ source_total_asset_price=100.0)
# execute tic
self.stepTic()
# check we have only one cash sorting
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencySale.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencySale.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencySale.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCashToCurrencySale.py Wed Nov 22 11:28:43 2006
@@ -212,6 +212,7 @@
portal_type='Cash To Currency Sale',
source_value=self.guichet,
destination_value=None,
+ description='test',
resource_value = self.currency_2,
source_total_asset_price=100.0,
discount = 3000.0, quantity = 70000.0)
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckDeposit.py Wed Nov 22 11:28:43 2006
@@ -178,12 +178,14 @@
"""
Create a check deposit document and check it
"""
- self.check_deposit = self.check_deposit_module.newContent(id = 'check_deposit',
- portal_type = 'Check Deposit',
- destination_payment_value = self.bank_account_1,
- start_date = DateTime().Date(),
- source_total_asset_price = 500.0,
- resource_value=self.currency_1)
+ self.check_deposit = self.check_deposit_module.newContent(
+ id = 'check_deposit',
+ portal_type = 'Check Deposit',
+ destination_payment_value = self.bank_account_1,
+ start_date = DateTime().Date(),
+ source_total_asset_price = 500.0,
+ description='test',
+ resource_value=self.currency_1)
self.assertNotEqual(self.check_deposit, None)
self.assertEqual(self.check_deposit.getTotalPrice(), 0.0)
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckPayment.py Wed Nov 22 11:28:43 2006
@@ -220,6 +220,7 @@
# aggregate_value = self.check_1,
resource_value = self.currency_1,
aggregate_free_text = "50",
+ description = "test",
# source_value = self.bi_counter,
start_date = DateTime().Date(),
source_total_asset_price = 20000.0)
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookDelivery.py Wed Nov 22 11:28:43 2006
@@ -235,6 +235,7 @@
resource_value=self.checkbook_model_1,
check_amount_value=self.checkbook_model_1.variant_1,
reference_range_min=1,
+ description='test',
reference_range_max=50,
aggregate_value=self.checkbook_1
)
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookMovement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookMovement.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookMovement.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookMovement.py Wed Nov 22 11:28:43 2006
@@ -182,9 +182,13 @@
"""
# We will do the transfer ot two items.
self.checkbook_movement = self.checkbook_movement_module.newContent(
- id='checkbook_movement', portal_type='Checkbook Movement',
- source_value=self.source_site, destination_value=self.destination_site,
- resource_value=self.currency_1,start_date=self.date)
+ id='checkbook_movement',
+ portal_type='Checkbook Movement',
+ source_value=self.source_site,
+ destination_value=self.destination_site,
+ resource_value=self.currency_1,
+ description='test',
+ start_date=self.date)
# check its portal type
self.assertEqual(self.checkbook_movement.getPortalType(), 'Checkbook Movement')
# check source
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookReception.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookReception.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookReception.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookReception.py Wed Nov 22 11:28:43 2006
@@ -166,6 +166,7 @@
id='checkbook_reception', portal_type='Checkbook Reception',
source_value=None, destination_value=self.destination_site,
resource_value=self.currency_1,
+ description='test',
start_date=self.date)
# get the checkbook reception document
self.checkbook_reception = getattr(self.checkbook_reception_module, 'checkbook_reception')
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookUsualCashTransfer.py Wed Nov 22 11:28:43 2006
@@ -93,6 +93,7 @@
id='checkbook_vault_transfer', portal_type='Checkbook Vault Transfer',
source_value=self.vault_transfer_source_site,
destination_value=self.vault_transfer_destination_site,
+ description='test',
start_date=(self.date-3))
# Add a line for traveler check
self.line_2 = self.checkbook_vault_transfer.newContent(quantity=1,
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py Wed Nov 22 11:28:43 2006
@@ -54,6 +54,7 @@
self.checkbook_reception = self.checkbook_reception_module.newContent(
id='checkbook_reception', portal_type='Checkbook Reception',
source_value=None, destination_value=self.reception_destination_site,
+ description='test',
start_date=(self.date-4))
# get the checkbook reception document
self.checkbook_reception = getattr(self.checkbook_reception_module, 'checkbook_reception')
@@ -86,6 +87,7 @@
self.checkbook_reception = self.checkbook_reception_module.newContent(
id='checkbook_reception', portal_type='Checkbook Reception',
source_value=None, destination_value=self.reception_destination_site,
+ description='test',
start_date=(self.date-4))
# get the checkbook reception document
self.checkbook_reception = getattr(self.checkbook_reception_module, 'checkbook_reception')
@@ -264,6 +266,7 @@
self.checkbook_vault_transfer = self.checkbook_vault_transfer_module.newContent(
id='checkbook_vault_transfer', portal_type='Checkbook Vault Transfer',
source_value=self.source_site, destination_value=self.destination_site,
+ description='test',
resource_value=self.currency_1)
# check its portal type
self.assertEqual(self.checkbook_vault_transfer.getPortalType(), 'Checkbook Vault Transfer')
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingClassificationSurvey.py Wed Nov 22 11:28:43 2006
@@ -197,7 +197,13 @@
Create a classification surveyg document and check it
"""
# classification surveyg has encaisse_paris for source, encaisse_externe for destination, and a price cooreponding to the sum of banknote of 10000 and banknotes of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.classification_survey = self.classification_survey_module.newContent(id='classification_survey_1', portal_type='Classification Survey', source_value=self.encaisse_a_detruire, destination_value=None, source_total_asset_price=52400.0)
+ self.classification_survey = self.classification_survey_module.newContent(
+ id='classification_survey_1',
+ portal_type='Classification Survey',
+ source_value=self.encaisse_a_detruire,
+ destination_value=None,
+ description='test',
+ source_total_asset_price=52400.0)
# execute tic
self.stepTic()
# set source reference
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCounterRendering.py Wed Nov 22 11:28:43 2006
@@ -227,7 +227,12 @@
"""
# Counter rendering has usual_cash for source, counter for destination, and a price cooreponding to the sum of banknote of 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.counter_rendering = self.counter_rendering_module.newContent(id='counter_rendering_1', portal_type='Counter Rendering', source_value=self.counter_vault, source_total_asset_price=52400.0)
+ self.counter_rendering = self.counter_rendering_module.newContent(
+ id='counter_rendering_1',
+ portal_type='Counter Rendering',
+ source_value=self.counter_vault,
+ description='test',
+ source_total_asset_price=52400.0)
# execute tic
self.stepTic()
# check we have only one counter rendering
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCurrencyPurchase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCurrencyPurchase.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCurrencyPurchase.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCurrencyPurchase.py Wed Nov 22 11:28:43 2006
@@ -169,10 +169,8 @@
self.currency_purchase = self.currency_purchase_module.newContent(id = 'currency_purchase', portal_type = 'Currency Purchase',
price_currency='currency_module/EUR',currency_exchange_type='purchase',
destination_payment_value = self.bank_account_1,
- # aggregate_value = self.check_1,
resource_value = self.currency_2,
-
- # source_value = self.bi_counter,
+ description='test',
start_date = DateTime().Date(),
source_total_asset_price = 100.0,
discount = 1000.0)
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingCurrencySale.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingCurrencySale.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingCurrencySale.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingCurrencySale.py Wed Nov 22 11:28:43 2006
@@ -188,9 +188,8 @@
self.currency_sale = self.currency_sale_module.newContent(id = 'currency_sale', portal_type = 'Currency Sale',
price_currency='currency_module/EUR',currency_exchange_type='sale',
destination_payment_value = self.bank_account_1,
- # aggregate_value = self.check_1,
resource_value = self.currency_2,
- # source_value = self.bi_counter,
+ description='test',
start_date = DateTime().Date(),
source_total_asset_price = 100.0,
discount = 3000.0,
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingDestructionSurvey.py Wed Nov 22 11:28:43 2006
@@ -168,7 +168,13 @@
Create a cash transfer document and check it
"""
# Cash transfer has cash for source, counter for destination, and a price cooreponding to the sum of banknote of 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.destruction_survey = self.destruction_survey_module.newContent(id='destruction_survey_1', portal_type='Destruction Survey', source_value=self.cash, destination_value=self.counter, source_total_asset_price=52400.0)
+ self.destruction_survey = self.destruction_survey_module.newContent(
+ id='destruction_survey_1',
+ portal_type='Destruction Survey',
+ source_value=self.cash,
+ description='test',
+ destination_value=self.counter,
+ source_total_asset_price=52400.0)
# execute tic
self.stepTic()
# check we have only one cash transfer
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingForeignCashReception.py Wed Nov 22 11:28:43 2006
@@ -155,6 +155,7 @@
id='foreign_cash_reception', portal_type='Foreign Cash Reception',
source_value=None, destination_value=self.reception,
resource_value=self.currency_1,
+ description='test',
source_total_asset_price=250)
# execute tic
self.stepTic()
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingInternalMoneyDeposit.py Wed Nov 22 11:28:43 2006
@@ -190,15 +190,15 @@
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 )
- self.internal_money_deposit = self.internal_money_deposit_module.newContent(id='internal_money_deposit', portal_type='Internal Money Deposit',
- #source_value=None, destination_value=self.bi_counter_vault,
- destination_value=self.bi_counter_vault,
- source_value=None,
- #destination_payment_value = self.bank_account_1,
- resource_value = self.currency_1,
- source_total_asset_price=20000.0,
- grouping_reference="lettering",
- )
+ self.internal_money_deposit = self.internal_money_deposit_module.newContent(
+ id='internal_money_deposit',
+ portal_type='Internal Money Deposit',
+ destination_value=self.bi_counter_vault,
+ resource_value = self.currency_1,
+ source_total_asset_price=20000.0,
+ grouping_reference="lettering",
+ description='test',
+ )
# execute tic
self.stepTic()
# set source reference
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryDestruction.py Wed Nov 22 11:28:43 2006
@@ -265,12 +265,14 @@
"""
#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 )
- 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)
+ 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,
+ description='test',
+ source_section_value=self.paris)
# execute tic
self.stepTic()
# set source reference
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryIssue.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryIssue.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryIssue.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryIssue.py Wed Nov 22 11:28:43 2006
@@ -217,7 +217,11 @@
# issue date must be a bit in the future so regenerate date
self.current_date = DateTime()
# Cash inventory has caisse_1 for source, caisse_2 for destination, and a price cooreponding to the sum of banknote of 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.monetary_issue = self.monetary_issue_module.newContent(id='monetary_issue', portal_type='Monetary Issue', start_date=self.current_date)
+ self.monetary_issue = self.monetary_issue_module.newContent(
+ id='monetary_issue',
+ portal_type='Monetary Issue',
+ description='test',
+ start_date=self.current_date)
# execute tic
self.stepTic()
# set source reference
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryRecall.py Wed Nov 22 11:28:43 2006
@@ -228,8 +228,12 @@
Create a monetary recall document and check it
"""
# Cash transfer has cash for source, counter for destination, and a price cooreponding to the sum of banknote of 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- #self.monetary_recall = self.monetary_recall_module.newContent(id='monetary_recall_1', portal_type='Monetary Recall', source_value=self.cash, #destination_value=self.counter, source_total_asset_price=52400.0)
- self.monetary_recall = self.monetary_recall_module.newContent(id='monetary_recall_1', portal_type='Monetary Recall', source_value=self.cash, source_total_asset_price=52400.0)
+ self.monetary_recall = self.monetary_recall_module.newContent(
+ id='monetary_recall_1',
+ portal_type='Monetary Recall',
+ source_value=self.cash,
+ description='test',
+ source_total_asset_price=52400.0)
# execute tic
self.stepTic()
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryReception.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryReception.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryReception.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetaryReception.py Wed Nov 22 11:28:43 2006
@@ -154,9 +154,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 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.monetary_reception = self.monetary_reception_module.newContent(id='monetary_reception', portal_type='Monetary Reception',
- source_value=None, destination_value=self.reception,
- resource_value=self.currency_1)
+ self.monetary_reception = self.monetary_reception_module.newContent(
+ id='monetary_reception',
+ portal_type='Monetary Reception',
+ source_value=None,
+ destination_value=self.reception,
+ description='test',
+ resource_value=self.currency_1)
# self.setDestinationValue(self.reception)
# self.setResourceValue(self.currency_1)
# execute tic
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetarySurvey.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetarySurvey.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetarySurvey.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMonetarySurvey.py Wed Nov 22 11:28:43 2006
@@ -193,7 +193,13 @@
Create a cash transfer document and check it
"""
# Cash transfer has usual_cash for source, counter for destination, and a price cooreponding to the sum of banknote of 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.monetary_survey = self.monetary_survey_module.newContent(id='monetary_survey_1', portal_type='Monetary Survey', source_value=self.source, destination_value=self.destination, source_total_asset_price=52400.0)
+ self.monetary_survey = self.monetary_survey_module.newContent(
+ id='monetary_survey_1',
+ portal_type='Monetary Survey',
+ source_value=self.source,
+ destination_value=self.destination,
+ description='test',
+ source_total_asset_price=52400.0)
# execute tic
self.stepTic()
# set source reference
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDeposit.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDeposit.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDeposit.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDeposit.py Wed Nov 22 11:28:43 2006
@@ -209,10 +209,13 @@
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 )
- self.money_deposit = self.money_deposit_module.newContent(id='money_deposit', portal_type='Money Deposit',
- destination_payment_value = self.bank_account_1,
- resource_value = self.currency_1,
- source_total_asset_price=20000.0)
+ self.money_deposit = self.money_deposit_module.newContent(
+ id='money_deposit',
+ portal_type='Money Deposit',
+ destination_payment_value = self.bank_account_1,
+ resource_value = self.currency_1,
+ description='test',
+ source_total_asset_price=20000.0)
# execute tic
self.stepTic()
# set source reference
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositRendering.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositRendering.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositRendering.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositRendering.py Wed Nov 22 11:28:43 2006
@@ -234,10 +234,12 @@
"""
# Money deposit rendering has auxiliaire for source, gros_versement for destination, and a price cooreponding to the sum of banknote of 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.money_deposit_rendering = self.money_deposit_rendering_module.newContent(id='money_deposit_rendering_1',
- portal_type='Money Deposit Rendering',
- source_value=self.gros_versement,
- source_total_asset_price=52400.0)
+ self.money_deposit_rendering = self.money_deposit_rendering_module.newContent(
+ id='money_deposit_rendering_1',
+ portal_type='Money Deposit Rendering',
+ source_value=self.gros_versement,
+ description='test',
+ source_total_asset_price=52400.0)
# execute tic
self.stepTic()
# check we have only one money deposit rendering
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositTransfer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositTransfer.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositTransfer.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMoneyDepositTransfer.py Wed Nov 22 11:28:43 2006
@@ -207,7 +207,13 @@
Create a money deposit transfer document and check it
"""
# Money Deposit transfer has usual_cash (Gros versment) for source, tri for destination, and a price cooreponding to the sum of banknote of 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.money_deposit_transfer = self.money_deposit_transfer_module.newContent(id='money_deposit_transfer_1', portal_type='Money Deposit Transfer', source_value=self.counter, destination_value=self.tri, source_total_asset_price=52400.0)
+ self.money_deposit_transfer = self.money_deposit_transfer_module.newContent(
+ id='money_deposit_transfer_1',
+ portal_type='Money Deposit Transfer',
+ source_value=self.counter,
+ destination_value=self.tri,
+ description='test',
+ source_total_asset_price=52400.0)
# execute tic
self.stepTic()
# check we have only one money deposit transfer
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingMutilatedBanknote.py Wed Nov 22 11:28:43 2006
@@ -159,11 +159,13 @@
"""
Create a mutilated banknote document and check it
"""
- self.mutilated_banknote = self.mutilated_banknote_module.newContent(id='mutilated_banknote',
- portal_type='Mutilated Banknote',
- source_total_asset_price=0.0,
- destination_total_asset_price=0.0,
- destination_value=self.mutilated_banknote_vault
+ self.mutilated_banknote = self.mutilated_banknote_module.newContent(
+ id='mutilated_banknote',
+ portal_type='Mutilated Banknote',
+ source_total_asset_price=0.0,
+ destination_total_asset_price=0.0,
+ description='test',
+ destination_value=self.mutilated_banknote_vault
)
self.stepTic()
self.assertEqual(len(self.mutilated_banknote_module.objectValues()), 1)
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingStopPayment.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingStopPayment.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingStopPayment.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingStopPayment.py Wed Nov 22 11:28:43 2006
@@ -142,6 +142,7 @@
id='stop_payment', portal_type='Stop Payment',
destination_payment_value=self.bank_account_2,
resource_value=self.currency_1,
+ description='test',
start_date=self.date,
reference_range_min=51,
source_total_asset_price=20000)
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckPurchase.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckPurchase.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckPurchase.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckPurchase.py Wed Nov 22 11:28:43 2006
@@ -174,6 +174,7 @@
source_value=self.traveler_check_source, destination_value=None,
destination_payment_value=self.bank_account_1,
resource_value=self.currency_1,
+ description='test',
start_date=self.date)
# check its portal type
self.assertEqual(self.traveler_check_purchase.getPortalType(), 'Traveler Check Purchase')
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckSale.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckSale.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckSale.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingTravelerCheckSale.py Wed Nov 22 11:28:43 2006
@@ -67,6 +67,7 @@
self.checkbook_vault_transfer = self.getCheckbookUsualCashTransferModule().newContent(
id='checkbook_usual_cash_transfer', portal_type='Checkbook Usual Cash Transfer',
source_value=self.source_vault,
+ description='test',
destination_value=self.destination_vault,
start_date=(self.date-1))
# Add a line for traveler check
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashIncident.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashIncident.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashIncident.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashIncident.py Wed Nov 22 11:28:43 2006
@@ -180,7 +180,11 @@
Create a cash transfer document and check it
"""
# Cash transfer has usual_cash for source, counter for destination, and a price cooreponding to the sum of banknote of 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.usual_cash_incident = self.usual_cash_incident_module.newContent(id='usual_cash_incident_1', portal_type='Usual Cash Incident', source_total_asset_price=52400.0,)
+ self.usual_cash_incident = self.usual_cash_incident_module.newContent(
+ id='usual_cash_incident_1',
+ portal_type='Usual Cash Incident',
+ description='test',
+ source_total_asset_price=52400.0,)
# execute tic
self.stepTic()
# check we have only one cash transfer
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashRendering.py Wed Nov 22 11:28:43 2006
@@ -226,6 +226,7 @@
self.usual_cash_rendering = self.usual_cash_rendering_module.newContent(id='usual_cash_rendering_1',
portal_type='Usual Cash Rendering', source=self.caisse_courante.getRelativeUrl(),
+ description='test',
destination=self.auxiliaire.getRelativeUrl(), source_total_asset_price=52400.0)
# execute tic
self.stepTic()
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashTransfer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashTransfer.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashTransfer.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingUsualCashTransfer.py Wed Nov 22 11:28:43 2006
@@ -148,13 +148,28 @@
line_list = [inventory_dict_line_1, inventory_dict_line_2]
self.usual_cash = self.paris.surface.caisse_courante.encaisse_des_billets_et_monnaies
- self.counter = self.paris.surface.banque_interne.guichet_1.encaisse_des_billets_et_monnaies
- self.counter_vault = self.paris.surface.banque_interne.guichet_1.encaisse_des_billets_et_monnaies.sortante
+ self.counter = self.paris.surface.banque_interne.guichet_1
+ self.counter_vault = self.paris.surface.banque_interne.guichet_1.encaisse_des_billets_et_monnaies
+ self.counter_final_vault = self.paris.surface.banque_interne.guichet_1.encaisse_des_billets_et_monnaies.sortante
+ self.createCashInventory(source=None, destination=self.usual_cash, currency=self.currency_1,
+ line_list=line_list)
+
+ # now we need to create a user as Manager to do the test
+ # in order to have an assigment defined which is used to do transition
+ # Create an Organisation that will be used for users assignment
+ self.checkUserFolderType()
+ self.organisation = self.organisation_module.newContent(id='baobab_org', portal_type='Organisation',
+ function='banking', group='baobab', site='testsite/paris')
+ # define the user
+ user_dict = {
+ 'super_user' : [['Manager'], self.organisation, 'banking/comptable', 'baobab', 'testsite/paris/surface/banque_interne/guichet_1']
+ }
+ # call method to create this user
+ self.createERP5Users(user_dict)
+ self.logout()
+ self.login('super_user')
self.openCounterDate(site=self.paris)
self.openCounter(self.counter)
- self.createCashInventory(source=None, destination=self.usual_cash, currency=self.currency_1,
- line_list=line_list)
-
def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd):
"""
@@ -199,11 +214,11 @@
Check inventory in destination vault (counter) before confirm
"""
# check we don't have banknotes of 10000
- self.assertEqual(self.simulation_tool.getCurrentInventory(node=self.counter_vault.getRelativeUrl(), resource = self.billet_10000.getRelativeUrl()), 0.0)
- self.assertEqual(self.simulation_tool.getFutureInventory(node=self.counter_vault.getRelativeUrl(), resource = self.billet_10000.getRelativeUrl()), 0.0)
+ self.assertEqual(self.simulation_tool.getCurrentInventory(node=self.counter_final_vault.getRelativeUrl(), resource = self.billet_10000.getRelativeUrl()), 0.0)
+ self.assertEqual(self.simulation_tool.getFutureInventory(node=self.counter_final_vault.getRelativeUrl(), resource = self.billet_10000.getRelativeUrl()), 0.0)
# check we don't have coins of 200
- self.assertEqual(self.simulation_tool.getCurrentInventory(node=self.counter_vault.getRelativeUrl(), resource = self.piece_200.getRelativeUrl()), 0.0)
- self.assertEqual(self.simulation_tool.getFutureInventory(node=self.counter_vault.getRelativeUrl(), resource = self.piece_200.getRelativeUrl()), 0.0)
+ self.assertEqual(self.simulation_tool.getCurrentInventory(node=self.counter_final_vault.getRelativeUrl(), resource = self.piece_200.getRelativeUrl()), 0.0)
+ self.assertEqual(self.simulation_tool.getFutureInventory(node=self.counter_final_vault.getRelativeUrl(), resource = self.piece_200.getRelativeUrl()), 0.0)
def stepCreateUsualCashTransfer(self, sequence=None, sequence_list=None, **kwd):
@@ -211,7 +226,13 @@
Create a cash transfer document and check it
"""
# Cash transfer has usual_cash for source, counter for destination, and a price cooreponding to the sum of banknote of 10000 abd coin of 200 ( (2+3) * 1000 + (5+7) * 200 )
- self.usual_cash_transfer = self.usual_cash_transfer_module.newContent(id='usual_cash_transfer_1', portal_type='Usual Cash Transfer', source_value=self.usual_cash, destination_value=self.counter, source_total_asset_price=52400.0)
+ self.usual_cash_transfer = self.usual_cash_transfer_module.newContent(
+ id='usual_cash_transfer_1',
+ portal_type='Usual Cash Transfer',
+ source_value=self.usual_cash,
+ destination_value=self.counter_vault,
+ description='test',
+ source_total_asset_price=52400.0)
# execute tic
self.stepTic()
# check we have only one cash transfer
@@ -262,7 +283,7 @@
# check the source vault is usual_cash
self.assertEqual(cell.getSourceValue(), self.usual_cash)
# check the destination vault is counter
- self.assertEqual(cell.getDestinationValue(), self.counter)
+ self.assertEqual(cell.getDestinationValue(), self.counter_vault)
if cell.getId() == 'movement_0_0_0':
# check the quantity of banknote for year 1992 is 2
self.assertEqual(cell.getQuantity(), 2.0)
@@ -426,13 +447,13 @@
Check that compution of inventory at vault counter is right after confirm and before deliver
"""
# check we have 0 banknote of 10000 currently
- self.assertEqual(self.simulation_tool.getCurrentInventory(node=self.counter_vault.getRelativeUrl(), resource = self.billet_10000.getRelativeUrl()), 0.0)
+ self.assertEqual(self.simulation_tool.getCurrentInventory(node=self.counter_final_vault.getRelativeUrl(), resource = self.billet_10000.getRelativeUrl()), 0.0)
# check we will have 5 banknotes of 10000 after deliver
- self.assertEqual(self.simulation_tool.getFutureInventory(node=self.counter_vault.getRelativeUrl(), resource = self.billet_10000.getRelativeUrl()), 5.0)
+ self.assertEqual(self.simulation_tool.getFutureInventory(node=self.counter_final_vault.getRelativeUrl(), resource = self.billet_10000.getRelativeUrl()), 5.0)
# check we have 0 coin of 200 currently
- self.assertEqual(self.simulation_tool.getCurrentInventory(node=self.counter_vault.getRelativeUrl(), resource = self.piece_200.getRelativeUrl()), 0.0)
+ self.assertEqual(self.simulation_tool.getCurrentInventory(node=self.counter_final_vault.getRelativeUrl(), resource = self.piece_200.getRelativeUrl()), 0.0)
# check we will have 12 coins of 200 after deliver
- self.assertEqual(self.simulation_tool.getFutureInventory(node=self.counter_vault.getRelativeUrl(), resource = self.piece_200.getRelativeUrl()), 12.0)
+ self.assertEqual(self.simulation_tool.getFutureInventory(node=self.counter_final_vault.getRelativeUrl(), resource = self.piece_200.getRelativeUrl()), 12.0)
def stepDeliverUsualCashTransfer(self, sequence=None, sequence_list=None, **kwd):
@@ -471,11 +492,11 @@
Check inventory at destination (vault counter) after deliver of the cash transfer
"""
# check we have 5 banknotes of 10000
- self.assertEqual(self.simulation_tool.getCurrentInventory(node=self.counter_vault.getRelativeUrl(), resource = self.billet_10000.getRelativeUrl()), 5.0)
- self.assertEqual(self.simulation_tool.getFutureInventory(node=self.counter_vault.getRelativeUrl(), resource = self.billet_10000.getRelativeUrl()), 5.0)
+ self.assertEqual(self.simulation_tool.getCurrentInventory(node=self.counter_final_vault.getRelativeUrl(), resource = self.billet_10000.getRelativeUrl()), 5.0)
+ self.assertEqual(self.simulation_tool.getFutureInventory(node=self.counter_final_vault.getRelativeUrl(), resource = self.billet_10000.getRelativeUrl()), 5.0)
# check we have 12 coins of 200
- self.assertEqual(self.simulation_tool.getCurrentInventory(node=self.counter_vault.getRelativeUrl(), resource = self.piece_200.getRelativeUrl()), 12.0)
- self.assertEqual(self.simulation_tool.getFutureInventory(node=self.counter_vault.getRelativeUrl(), resource = self.piece_200.getRelativeUrl()), 12.0)
+ self.assertEqual(self.simulation_tool.getCurrentInventory(node=self.counter_final_vault.getRelativeUrl(), resource = self.piece_200.getRelativeUrl()), 12.0)
+ self.assertEqual(self.simulation_tool.getFutureInventory(node=self.counter_final_vault.getRelativeUrl(), resource = self.piece_200.getRelativeUrl()), 12.0)
##################################
Modified: erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py?rev=11421&r1=11420&r2=11421&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/testERP5BankingVaultTransfer.py Wed Nov 22 11:28:43 2006
@@ -261,6 +261,7 @@
self.vault_transfer = self.vault_transfer_module.newContent(id='vault_transfer_1',
portal_type='Vault Transfer', source=self.usual_cash.getRelativeUrl(),
+ description='test',
destination=self.caisse_courante.getRelativeUrl(), source_total_asset_price=52400.0)
# execute tic
self.stepTic()
More information about the Erp5-report
mailing list