line/splitline: fremdwährung ok+test+migration

This commit is contained in:
Frederik Jaeckel 2022-10-04 16:47:14 +02:00
parent 0f6180ebdb
commit 25dcdde09b
10 changed files with 485 additions and 217 deletions

View file

@ -70,6 +70,7 @@ class BookTestCase(ModuleTestCase):
(usd, euro) = self.prep_2nd_currency(company)
category = self.prep_category(cattype='in')
self.assertEqual(company.currency.rec_name, 'Euro')
party = self.prep_party()
book, = Book.create([{
'name': 'Book 1',
@ -84,6 +85,7 @@ class BookTestCase(ModuleTestCase):
'bookingtype': 'in',
'category': category.id,
'amount': Decimal('10.0'),
'party': party.id,
}])],
}])
@ -118,6 +120,7 @@ class BookTestCase(ModuleTestCase):
(usd, euro) = self.prep_2nd_currency(company)
category = self.prep_category(cattype='in')
self.assertEqual(company.currency.rec_name, 'Euro')
party = self.prep_party()
book, = Book.create([{
'name': 'Book 1',
@ -136,6 +139,7 @@ class BookTestCase(ModuleTestCase):
'bookingtype': 'in',
'category': category.id,
'amount': Decimal('10.0'),
'party': party.id,
}])],
}])],
}])