From 91489e9539b9616ed16357aa036032e68e15cfaa Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Mon, 2 Jun 2025 23:44:19 +1000 Subject: [PATCH] austax: Add flag to enable or disable MLS --- libdrcr/plugins/austax/reporting.luau | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libdrcr/plugins/austax/reporting.luau b/libdrcr/plugins/austax/reporting.luau index 190baf0..7b93dfa 100644 --- a/libdrcr/plugins/austax/reporting.luau +++ b/libdrcr/plugins/austax/reporting.luau @@ -22,6 +22,10 @@ -- false = Charge income tax expense in one transaction at end of financial year 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 @@ -246,7 +250,10 @@ function reporting.CalculateIncomeTax.execute(args, context, kinds_for_account, local rfb_grossedup = calc.rfb_grossup(rfb_taxable, context) -- 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 table.insert(report.entries, { Row = { text = 'Medicare levy surcharge',