nbpy2017: Bugfix entry data key name for custom Ledger template.

This commit is contained in:
Brett Smith 2018-01-24 18:01:16 -05:00
parent 15bba54e4e
commit 5681545267
2 changed files with 7 additions and 7 deletions

View file

@ -138,5 +138,5 @@ class InvoiceImporter:
def __iter__(self):
for entry in self.invoice:
entry['ledger entry'] = self.LEDGER_TEMPLATE_KEY_FMT.format(entry['status'].lower())
entry['ledger template'] = self.LEDGER_TEMPLATE_KEY_FMT.format(entry['status'].lower())
yield entry

View file

@ -86,7 +86,7 @@
importer: nbpy2017.InvoiceImporter
expect:
- payee: Python Person A
ledger entry: nbpy2017 invoice ledger entry
ledger template: nbpy2017 invoice ledger entry
date: !!python/object/apply:datetime.date [2017, 10, 19]
amount: !!python/object/apply:decimal.Decimal ["80.00"]
tickets_sold: !!python/object/apply:decimal.Decimal ["1"]
@ -98,7 +98,7 @@
invoice_id: "83"
invoice_date: !!python/object/apply:datetime.date [2017, 10, 19]
- payee: Python Person A
ledger entry: nbpy2017 payment ledger entry
ledger template: nbpy2017 payment ledger entry
date: !!python/object/apply:datetime.date [2017, 10, 19]
amount: !!python/object/apply:decimal.Decimal ["80.00"]
tickets_sold: !!python/object/apply:decimal.Decimal ["1"]
@ -116,7 +116,7 @@
importer: nbpy2017.InvoiceImporter
expect:
- payee: Python Person B
ledger entry: nbpy2017 invoice ledger entry
ledger template: nbpy2017 invoice ledger entry
date: !!python/object/apply:datetime.date [2017, 12, 3]
amount: !!python/object/apply:decimal.Decimal ["50.00"]
tickets_sold: !!python/object/apply:decimal.Decimal ["1"]
@ -128,7 +128,7 @@
invoice_date: !!python/object/apply:datetime.date [2017, 12, 3]
invoice_id: "304"
- payee: Python Person B
ledger entry: nbpy2017 payment ledger entry
ledger template: nbpy2017 payment ledger entry
date: !!python/object/apply:datetime.date [2017, 12, 3]
amount: !!python/object/apply:decimal.Decimal ["50.00"]
tickets_sold: !!python/object/apply:decimal.Decimal ["1"]
@ -146,7 +146,7 @@
importer: nbpy2017.InvoiceImporter
expect:
- payee: Python Person C
ledger entry: nbpy2017 invoice ledger entry
ledger template: nbpy2017 invoice ledger entry
date: !!python/object/apply:datetime.date [2017, 10, 5]
amount: !!python/object/apply:decimal.Decimal ["55.00"]
tickets_sold: !!python/object/apply:decimal.Decimal ["1"]
@ -158,7 +158,7 @@
invoice_date: !!python/object/apply:datetime.date [2017, 10, 5]
invoice_id: "11"
- payee: Python Person C
ledger entry: nbpy2017 payment ledger entry
ledger template: nbpy2017 payment ledger entry
date: !!python/object/apply:datetime.date [2017, 10, 5]
amount: !!python/object/apply:decimal.Decimal ["55.00"]
tickets_sold: !!python/object/apply:decimal.Decimal ["1"]