diff --git a/product/ERP5Banking/tests/testERP5BankingCheckDeposit.py b/product/ERP5Banking/tests/testERP5BankingCheckDeposit.py index 4e5064fe0c7a4e4c4aaf13a7ab930f11f494ca83..869a6382af1fd4fe297809038a98518a56bf94b0 100755 --- a/product/ERP5Banking/tests/testERP5BankingCheckDeposit.py +++ b/product/ERP5Banking/tests/testERP5BankingCheckDeposit.py @@ -140,8 +140,8 @@ class TestERP5BankingCheckDeposit(TestERP5BankingMixin, ERP5TypeTestCase): self.checkbook_1 = self.createCheckbook(id= 'checkbook_1', vault=None, bank_account=self.bank_account_2, - min=50, - max=100, + min='0000050', + max='0000100', ) self.check_1 = self.createCheck(id='check_1', diff --git a/product/ERP5Banking/tests/testERP5BankingCheckPayment.py b/product/ERP5Banking/tests/testERP5BankingCheckPayment.py index e147a5ac6a067136fe44b17aac6246469df41f0f..1ba58d7273f8497268f8c23408007240bc2164ad 100755 --- a/product/ERP5Banking/tests/testERP5BankingCheckPayment.py +++ b/product/ERP5Banking/tests/testERP5BankingCheckPayment.py @@ -150,30 +150,30 @@ class TestERP5BankingCheckPaymentMixin: ) self.check_1 = self.createCheck(id='check_1', - reference='50', + reference='0000050', resource_value=self.check_model, checkbook=self.checkbook_1) self.check_2 = self.createCheck(id='check_2', - reference='51', + reference='0000051', resource_value=self.check_model, checkbook=self.checkbook_1) self.check_3 = self.createCheck(id='check_3', - reference='52', + reference='0000052', resource_value=self.check_model, checkbook=self.checkbook_1) self.check_4 = self.createCheck(id='check_4', - reference='53', + reference='0000053', resource_value=self.check_model, checkbook=self.checkbook_1) self.check_5 = self.createCheck(id='check_5', - reference='54', + reference='0000054', resource_value=self.check_model, checkbook=self.checkbook_1) self.check_5 = self.createCheck(id='check_6', - reference='56', + reference='0000056', resource_value=self.check_model, checkbook=self.checkbook_1) - self.non_existant_check_reference = '55' + self.non_existant_check_reference = '0000055' def stepCheckObjects(self, sequence=None, sequence_list=None, **kwd): """ diff --git a/product/ERP5Banking/tests/testERP5BankingCheckbookReception.py b/product/ERP5Banking/tests/testERP5BankingCheckbookReception.py index 05fc73b27b253055ec62e07a132315f8dec494b7..fa54214cae2bae15a6654d957f2e919c9ff411a2 100755 --- a/product/ERP5Banking/tests/testERP5BankingCheckbookReception.py +++ b/product/ERP5Banking/tests/testERP5BankingCheckbookReception.py @@ -181,8 +181,8 @@ class TestERP5BankingCheckbookReception(TestERP5BankingMixin, ERP5TypeTestCase): resource_value=self.checkbook_model_1, check_amount_value=self.checkbook_model_1.variant_1, destination_payment_value=self.bank_account_1, - reference_range_min=50, - reference_range_max=99, + reference_range_min='0000050', + reference_range_max='0000099', ) def stepCreateCheckAndCheckbookLineList3(self, sequence=None, sequence_list=None, **kwd): @@ -194,8 +194,8 @@ class TestERP5BankingCheckbookReception(TestERP5BankingMixin, ERP5TypeTestCase): resource_value=self.checkbook_model_1, check_amount_value=self.checkbook_model_1.variant_1, destination_payment_value=self.bank_account_1, - reference_range_min=150, - reference_range_max=199, + reference_range_min='0000150', + reference_range_max='0000199', ) def stepCreateCheckAndCheckbookLineList4(self, sequence=None, sequence_list=None, **kwd): @@ -210,8 +210,8 @@ class TestERP5BankingCheckbookReception(TestERP5BankingMixin, ERP5TypeTestCase): resource_value=self.checkbook_model_1, check_amount_value=self.checkbook_model_1.variant_1, destination_payment_value=self.bank_account_1, - reference_range_min=101, - reference_range_max=150, + reference_range_min='0000101', + reference_range_max='0000150', ) def stepCreateCheckAndCheckbookLineList(self, sequence=None, sequence_list=None, **kwd): @@ -226,15 +226,15 @@ class TestERP5BankingCheckbookReception(TestERP5BankingMixin, ERP5TypeTestCase): resource_value=self.checkbook_model_1, check_amount_value=self.checkbook_model_1.variant_1, destination_payment_value=self.bank_account_1, - reference_range_min=1, - reference_range_max=50 + reference_range_min='0000001', + reference_range_max='0000050' ) self.line_2 = self.checkbook_reception.newContent(quantity=1, resource_value=self.check_model_1, check_amount_value=None, destination_payment_value=self.bank_account_2, - reference_range_min=51, - reference_range_max=51 + reference_range_min='0000051', + reference_range_max='0000051' ) def stepCheckItemsCreated(self, sequence=None, sequence_list=None, **kwd): diff --git a/product/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py b/product/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py index 8e64e452e1dffc112f99accbbd7a128f2f100859..e32e025d111000907a4a7e0647441fe7196f3959 100755 --- a/product/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py +++ b/product/ERP5Banking/tests/testERP5BankingCheckbookVaultTransfer.py @@ -63,15 +63,15 @@ class TestERP5BankingCheckbookVaultTransferMixin: resource_value=self.checkbook_model_1, check_amount_value=self.checkbook_model_1.variant_1, destination_payment_value=self.bank_account_1, - reference_range_min=1, - reference_range_max=50, + reference_range_min='0000001', + reference_range_max='0000050', ) self.line_2 = self.checkbook_reception.newContent(quantity=1, resource_value=self.check_model_1, check_amount_value=None, destination_payment_value=self.bank_account_2, - reference_range_min=51, - reference_range_max=51, + reference_range_min='0000051', + reference_range_max='0000051', ) self.workflow_tool.doActionFor(self.checkbook_reception, 'confirm_action', wf_id='checkbook_reception_workflow') @@ -280,15 +280,15 @@ class TestERP5BankingCheckbookVaultTransfer(TestERP5BankingCheckbookVaultTransfe self.line_1 = self.checkbook_vault_transfer.newContent(quantity=1, resource_value=self.checkbook_model_1, check_amount_value=self.checkbook_model_1.variant_1, - reference_range_min=1, - reference_range_max=50, + reference_range_min='0000001', + reference_range_max='0000050', aggregate_value=self.checkbook_1 ) self.line_2 = self.checkbook_vault_transfer.newContent(quantity=1, resource_value=self.check_model_1, check_amount_value=None, - reference_range_min=51, - reference_range_max=51, + reference_range_min='0000051', + reference_range_max='0000051', aggregate_value=self.check_1 ) diff --git a/product/ERP5Banking/tests/testERP5BankingStopPayment.py b/product/ERP5Banking/tests/testERP5BankingStopPayment.py index b543d17d84281ed02106e49a9d35ce1816ae369f..f8fd8f94c9044699d576566a9d0c032604581db9 100755 --- a/product/ERP5Banking/tests/testERP5BankingStopPayment.py +++ b/product/ERP5Banking/tests/testERP5BankingStopPayment.py @@ -128,7 +128,7 @@ class TestERP5BankingStopPayment( TestERP5BankingCheckbookDeliveryMixin, resource_value=self.currency_1, description='test', start_date=self.date, - reference_range_min=51, + reference_range_min='0000051', aggregate_resource_value=self.check_model_1, source_total_asset_price=20000) # set source reference