示例#1
0
 def test_account2(self):
     p = Parser(self.acc)
     p.account('1024', 'Kassa')
     account, = blm.accounting.Account._query().run()
     assert account.accounting == [self.acc]
     assert account.number == ['1024']
     assert account.name == ['Kassa']
示例#2
0
    def test_vatcode(self):
        p = Parser(self.acc)

        blm.accounting.bootstrap()  # Set up vat codes

        p.account('2610', 'Mums!')
        p.vatcode('2610', '05')

        a, = blm.accounting.Account._query().run()

        assert a.vatCode[0] == '05'