austax: Add D15 (Other deductions)
This commit is contained in:
parent
0194a4e006
commit
d50b6a0e0a
@ -1,5 +1,5 @@
|
|||||||
# DrCr: Web-based double-entry bookkeeping framework
|
# DrCr: Web-based double-entry bookkeeping framework
|
||||||
# Copyright (C) 2022–2023 Lee Yingtong Li (RunasSudo)
|
# Copyright (C) 2022–2024 Lee Yingtong Li (RunasSudo)
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as published by
|
# it under the terms of the GNU Affero General Public License as published by
|
||||||
@ -39,6 +39,7 @@ def plugin_init():
|
|||||||
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.d9', 'Gifts or donations (D9)'))
|
drcr.plugins.account_kinds.append(('austax.d9', 'Gifts or donations (D9)'))
|
||||||
|
drcr.plugins.account_kinds.append(('austax.d15', 'Other deductions (D15)'))
|
||||||
drcr.plugins.account_kinds.append(('austax.offset', 'Tax offset'))
|
drcr.plugins.account_kinds.append(('austax.offset', 'Tax offset'))
|
||||||
drcr.plugins.account_kinds.append(('austax.paygw', 'PAYG withheld amounts'))
|
drcr.plugins.account_kinds.append(('austax.paygw', 'PAYG withheld amounts'))
|
||||||
drcr.plugins.account_kinds.append(('austax.cgtasset', 'CGT asset'))
|
drcr.plugins.account_kinds.append(('austax.cgtasset', 'CGT asset'))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# DrCr: Web-based double-entry bookkeeping framework
|
# DrCr: Web-based double-entry bookkeeping framework
|
||||||
# Copyright (C) 2022–2023 Lee Yingtong Li (RunasSudo)
|
# Copyright (C) 2022–2024 Lee Yingtong Li (RunasSudo)
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU Affero General Public License as published by
|
# it under the terms of the GNU Affero General Public License as published by
|
||||||
@ -156,9 +156,15 @@ def tax_summary_report():
|
|||||||
auto_hide=True
|
auto_hide=True
|
||||||
),
|
),
|
||||||
Spacer(),
|
Spacer(),
|
||||||
|
Section(
|
||||||
|
title='Other deductions (D15)',
|
||||||
|
entries=entries_for_kind(account_configurations, accounts, 'austax.d15') + [Subtotal('Total item D15', id='d15', floor=100)],
|
||||||
|
auto_hide=True
|
||||||
|
),
|
||||||
|
Spacer(),
|
||||||
Calculated(
|
Calculated(
|
||||||
'Total deductions',
|
'Total deductions',
|
||||||
lambda r: r.by_id('d2').amount + r.by_id('d4').amount + r.by_id('d5').amount + r.by_id('d9').amount,
|
lambda r: r.by_id('d2').amount + r.by_id('d4').amount + r.by_id('d5').amount + r.by_id('d9').amount + r.by_id('d15').amount,
|
||||||
id='deductions',
|
id='deductions',
|
||||||
heading=True,
|
heading=True,
|
||||||
bordered=True
|
bordered=True
|
||||||
|
Loading…
Reference in New Issue
Block a user