コード例 #1
0
 def setUp(self):
     self.dados = BankItau(
         carteira=u'110',
         conta=u'12345-7',
         agencia=u'0057',
         data_vencimento=datetime.date(2002, 5, 1),
         valor_documento=123.45,
         nosso_numero=u'12345678',
     )
コード例 #2
0
ファイル: test_boleto.py プロジェクト: Felipebros/stoq
 def setUp(self):
     payment = self.create_payment(value=Decimal('123.45'),
                                   date=datetime.date(2002, 5, 1))
     bank = self.create_bank_account(bank_branch=u'0057',
                                     bank_account=u'12345-7')
     bank.add_bill_option(u'especie_documento', u'DM')
     bank.add_bill_option(u'carteira', u'110')
     bank.add_bill_option(u'nosso_numero', u'12345678')
     payment.method.destination_account.bank = bank
     self.dados = BankItau(payment)
コード例 #3
0
ファイル: test_cnab.py プロジェクト: lulzzz/stoq
 def setUp(self):
     self.branch = self.create_branch()
     self.bank = self.create_bank_account(bank_branch=u'1102',
                                          bank_account=u'134',)
     company = self.create_company()
     self.create_address(person=company.person)
     group = self.create_payment_group(payer=company.person)
     self.payment = self.create_payment(date=datetime.date(2012, 7, 14),
                                        group=group)
     self.payment.identifier = 134
     self.payment.method.destination_account.bank = self.bank
     self.info = BankItau(self.payment)
     self.bank.add_bill_option(u'carteira', u'109')
     self.bank.add_bill_option(u'instrucao_1', u'1')
     self.bank.add_bill_option(u'instrucao_2', u'20')
     self.bank.add_bill_option(u'prazo', u'20')