Commit b95a6f4b authored by Sebastien Robin's avatar Sebastien Robin

use 7 digits for check numbers

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15139 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2a5b5927
...@@ -216,7 +216,7 @@ class TestERP5BankingCheckPaymentMixin: ...@@ -216,7 +216,7 @@ class TestERP5BankingCheckPaymentMixin:
destination_payment_value = self.bank_account_1, destination_payment_value = self.bank_account_1,
# aggregate_value = self.check_1, # aggregate_value = self.check_1,
resource_value = self.currency_1, resource_value = self.currency_1,
aggregate_free_text = "50", aggregate_free_text = "0000050",
description = "test", description = "test",
# source_value = self.bi_counter, # source_value = self.bi_counter,
start_date = DateTime().Date(), start_date = DateTime().Date(),
...@@ -244,27 +244,27 @@ class TestERP5BankingCheckPaymentMixin: ...@@ -244,27 +244,27 @@ class TestERP5BankingCheckPaymentMixin:
def stepValidateAnotherCheckPaymentWorks(self, sequence=None, sequence_list=None, **kwd): def stepValidateAnotherCheckPaymentWorks(self, sequence=None, sequence_list=None, **kwd):
""" Make sure we can validate another check payment """ """ Make sure we can validate another check payment """
self.createAnotherCheckPayment(sequence=sequence,will_fail=0,number="51") self.createAnotherCheckPayment(sequence=sequence,will_fail=0,number="0000051")
def stepPayAnotherCheckPaymentFails(self, sequence=None, sequence_list=None, **kwd): def stepPayAnotherCheckPaymentFails(self, sequence=None, sequence_list=None, **kwd):
""" Make sure we can validate another check payment """ """ Make sure we can validate another check payment """
self.createAnotherCheckPayment(sequence=sequence, self.createAnotherCheckPayment(sequence=sequence,
check_pay_will_fail=1, number="56") check_pay_will_fail=1, number="0000056")
def stepValidateAnotherCheckPaymentWorksAgain(self, sequence=None, sequence_list=None, **kwd): def stepValidateAnotherCheckPaymentWorksAgain(self, sequence=None, sequence_list=None, **kwd):
""" Make sure we can validate another check payment """ """ Make sure we can validate another check payment """
self.createAnotherCheckPayment(sequence=sequence, self.createAnotherCheckPayment(sequence=sequence,
will_fail=0, number="54") will_fail=0, number="0000054")
def stepValidateAnotherCheckPaymentFails(self, sequence=None, sequence_list=None, **kwd): def stepValidateAnotherCheckPaymentFails(self, sequence=None, sequence_list=None, **kwd):
""" Make sure that we can not validate another check payment """ """ Make sure that we can not validate another check payment """
self.createAnotherCheckPayment(sequence=sequence, will_fail=1, self.createAnotherCheckPayment(sequence=sequence, will_fail=1,
pending_account=1, number="52") pending_account=1, number="0000052")
def stepValidateAnotherCheckPaymentFailsAgain(self, sequence=None, sequence_list=None, **kwd): def stepValidateAnotherCheckPaymentFailsAgain(self, sequence=None, sequence_list=None, **kwd):
""" Make sure that we can not validate another check payment """ """ Make sure that we can not validate another check payment """
self.createAnotherCheckPayment(sequence=sequence, will_fail=1, self.createAnotherCheckPayment(sequence=sequence, will_fail=1,
insuffisient_balance=1, number="53") insuffisient_balance=1, number="0000053")
def createAnotherCheckPayment(self, will_fail=0, check_pay_will_fail=0, sequence=None, def createAnotherCheckPayment(self, will_fail=0, check_pay_will_fail=0, sequence=None,
number=None, pending_account=0, number=None, pending_account=0,
......
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