auxtax: Add more categories

This commit is contained in:
RunasSudo 2023-09-10 20:40:40 +10:00
parent d37d88e173
commit 9555da387c
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
2 changed files with 19 additions and 1 deletions

View File

@ -31,6 +31,9 @@ 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.income13', 'Partnerships and trusts (13)'))
#drcr.plugins.account_kinds.append(('austax.income18', 'Net capital gain (18)'))
drcr.plugins.account_kinds.append(('austax.income20', 'Foreign source income and foreign assets or property (20)'))
drcr.plugins.account_kinds.append(('austax.d2', 'Work-related travel expenses (D2)')) 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)'))

View File

@ -80,9 +80,24 @@ def tax_summary_report():
entries=entries_for_kind(account_configurations, accounts, 'austax.income10', neg=True) + [Subtotal('Total item 10', id='income10', floor=100)] entries=entries_for_kind(account_configurations, accounts, 'austax.income10', neg=True) + [Subtotal('Total item 10', id='income10', floor=100)]
), ),
Spacer(), Spacer(),
Section(
title='Partnerships and trusts (13)',
entries=entries_for_kind(account_configurations, accounts, 'austax.income13', neg=True, floor=100) + [Subtotal('Total item 13', id='income13', floor=100)]
),
Spacer(),
#Section(
# title='Net capital gains (18)',
# entries=entries_for_kind(account_configurations, accounts, 'austax.income18', neg=True) + [Subtotal('Total item 18', id='income18', floor=100)]
#),
#Spacer(),
Section(
title='Foreign source income and foreign assets or property (20)',
entries=entries_for_kind(account_configurations, accounts, 'austax.income20', neg=True, floor=100) + [Subtotal('Total item 20', id='income20', floor=100)]
),
Spacer(),
Calculated( Calculated(
'Total assessable income', 'Total assessable income',
lambda r: r.by_id('income1').amount + r.by_id('income5').amount, lambda r: r.by_id('income1').amount + r.by_id('income5').amount + r.by_id('income10').amount + r.by_id('income13').amount + r.by_id('income20').amount,
id='assessable', id='assessable',
heading=True, heading=True,
bordered=True bordered=True