austax: Add flag to enable or disable MLS

This commit is contained in:
RunasSudo 2025-06-02 23:44:19 +10:00
parent c798bd2207
commit 91489e9539
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -22,6 +22,10 @@
-- false = Charge income tax expense in one transaction at end of financial year -- false = Charge income tax expense in one transaction at end of financial year
local charge_tax_monthly = true local charge_tax_monthly = true
-- true = Include the Medicare levy surcharge
-- false = Do not include the Medicare levy surcharge
local include_mls = false
----------------- -----------------
-- Reporting code -- Reporting code
@ -246,7 +250,10 @@ function reporting.CalculateIncomeTax.execute(args, context, kinds_for_account,
local rfb_grossedup = calc.rfb_grossup(rfb_taxable, context) local rfb_grossedup = calc.rfb_grossup(rfb_taxable, context)
-- Medicare levy surcharge row -- Medicare levy surcharge row
local tax_mls = calc.medicare_levy_surcharge(net_taxable, rfb_grossedup, context) local tax_mls = 0
if include_mls then
tax_mls = calc.medicare_levy_surcharge(net_taxable, rfb_grossedup, context)
end
if tax_mls ~= 0 then if tax_mls ~= 0 then
table.insert(report.entries, { Row = { table.insert(report.entries, { Row = {
text = 'Medicare levy surcharge', text = 'Medicare levy surcharge',