austax: Add D2 deduction

This commit is contained in:
RunasSudo 2023-01-27 21:49:29 +11:00
parent 08ff000899
commit f1594b2392
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
2 changed files with 7 additions and 1 deletions

View File

@ -31,6 +31,7 @@ def plugin_init():
drcr.plugins.account_kinds.append(('austax.income1', 'Salary or wages (1)'))
drcr.plugins.account_kinds.append(('austax.income5', 'Australian Government allowances and payments (5)'))
drcr.plugins.account_kinds.append(('austax.income10', 'Gross interest (10)'))
drcr.plugins.account_kinds.append(('austax.d2', 'Work-related travel expenses (D2)'))
drcr.plugins.account_kinds.append(('austax.d4', 'Work-related self-education expenses (D4)'))
drcr.plugins.account_kinds.append(('austax.d5', 'Other work-related expenses (D5)'))
drcr.plugins.account_kinds.append(('austax.paygw', 'PAYG withheld amounts'))

View File

@ -93,6 +93,11 @@ def tax_summary_report():
bordered=True
),
Spacer(),
Section(
title='Work-related travel expenses (D2)',
entries=entries_for_kind(account_configurations, accounts, 'austax.d2') + [Subtotal('Total item D2', id='d2', floor=100)]
),
Spacer(),
Section(
title='Work-related self-education expenses (D4)',
entries=entries_for_kind(account_configurations, accounts, 'austax.d4') + [Subtotal('Total item D4', id='d4', floor=100)]
@ -105,7 +110,7 @@ def tax_summary_report():
Spacer(),
Calculated(
'Total deductions',
lambda r: r.by_id('d4').amount + r.by_id('d5').amount,
lambda r: r.by_id('d2').amount + r.by_id('d4').amount + r.by_id('d5').amount,
id='deductions',
heading=True,
bordered=True