austax: Add D2 deduction
This commit is contained in:
parent
08ff000899
commit
f1594b2392
@ -31,6 +31,7 @@ def plugin_init():
|
|||||||
drcr.plugins.account_kinds.append(('austax.income1', 'Salary or wages (1)'))
|
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.income5', 'Australian Government allowances and payments (5)'))
|
||||||
drcr.plugins.account_kinds.append(('austax.income10', 'Gross interest (10)'))
|
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.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.d5', 'Other work-related expenses (D5)'))
|
||||||
drcr.plugins.account_kinds.append(('austax.paygw', 'PAYG withheld amounts'))
|
drcr.plugins.account_kinds.append(('austax.paygw', 'PAYG withheld amounts'))
|
||||||
|
@ -93,6 +93,11 @@ def tax_summary_report():
|
|||||||
bordered=True
|
bordered=True
|
||||||
),
|
),
|
||||||
Spacer(),
|
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(
|
Section(
|
||||||
title='Work-related self-education expenses (D4)',
|
title='Work-related self-education expenses (D4)',
|
||||||
entries=entries_for_kind(account_configurations, accounts, 'austax.d4') + [Subtotal('Total item D4', id='d4', floor=100)]
|
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(),
|
Spacer(),
|
||||||
Calculated(
|
Calculated(
|
||||||
'Total deductions',
|
'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',
|
id='deductions',
|
||||||
heading=True,
|
heading=True,
|
||||||
bordered=True
|
bordered=True
|
||||||
|
Loading…
Reference in New Issue
Block a user