add placeholder 'rate'
This commit is contained in:
parent
a3cba97892
commit
722b265c33
5 changed files with 28 additions and 9 deletions
|
@ -364,12 +364,13 @@ class PlannerTestCase(object):
|
|||
asset_book = self.prep_planner_asset_book()
|
||||
self.assertEqual(Planner.fill_placeholder({
|
||||
'date': date(2022, 5, 2),
|
||||
'amount': Decimal('12.4567'),
|
||||
'amount': Decimal('126.4567'),
|
||||
'quantity': Decimal('32.4423'),
|
||||
'cashbook': asset_book.id,
|
||||
'booktransf': asset_book.id,
|
||||
'description': '- ${amount} - ${date} - ${month} - ' +
|
||||
'${year} - ${quantity}'}),
|
||||
'- usd12.46 - 05/02/2022 - 5 - 2022 - 32.4423\xa0u')
|
||||
'${year} - ${quantity} - ${rate}'}),
|
||||
'- usd126.46 - 05/02/2022 - 5 - 2022 - 32.4423\xa0u - 3.90 usd/u')
|
||||
|
||||
@with_transaction()
|
||||
def test_planner_cronjobs_booking_with_category(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue