Repository navigation
v3.7.0
·
212 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
v3.7.0, 18 November 2026, PAYG withholding and the v3.6.0 known issues fixed
Cut on 18 November 2026 from the changes on main since v3.6.0. It takes the library
from 150 to 151 functions. v3.6.0 still behaves as it did, including its 3 known issues,
which the fixes below resolve.
Added
oz.PAYGWithholdingλ(Earnings, Coefficients, [Period])returns the amount to withhold
from a weekly, fortnightly, monthly or quarterly payment under the ATO's Schedule 1
formulas (NAT 1004, for payments from 1 July 2026): weekly earnings in whole dollars
plus 99 cents,a * x - bfrom the caller's coefficient table, rounded to the nearest
dollar, and the schedule's conversions to and from the weekly amount. The native
self-test checks it against every row of the ATO's withholding amounts sample data for
scales 1, 2, 3, 5 and 6 and the ATO's worked examples. It does not choose the scale,
apply tax offsets or the Medicare levy adjustment, or do scale 4. A payment more than
a thousandth of a cent off a whole cent or of 10,000,000,000 or more, or a table whose
bounds do not rise (only the last row may repeat the bound above it), returns a message.ozzit payg_withholding
adds it tosrc/, the workbook andfunctions.csv.
Fixed
oz.CorkScrewReversalλreturned #REF! instead of a message when ReversalFlags was
narrower than Flow1, left out the extra flags of a wider row and used only the first
row of flags several rows deep. It now returns 'ReversalFlags needs one row with one
flag for each column of Flow1.' for each.oz.txtno longer ends 4 comment lines inoz.IntOnIntλandoz.IRRλwith a tab,
which the Advanced Formula Environment does not allow in a module, and
ozzit build_modulenow refuses a module that contains one.oz.CorkScrewReversalλtotalled its flows with SUM, asoz.Corkscrewλdid before
v3.6.0, and checked neither Opening nor flows, so a flow typed as text was left out
of the closing balance. It now takes
oz.Corkscrewλ's checks and messages: a flow that is text, TRUE or FALSE, and an
Opening that is not a single number or blank cell, return a message, and an Opening
of empty text counts as nil. Numbers and blank cells give the same result as before.
Empty text in a flow is nil, and an error still shows.oz.CorkscrewλDVrefused a blank or empty-text Opening and blank or empty-text flow
cells, whichoz.Corkscrewλaccepts as nil, and returned an error for an Opening of
several cells, whichoz.Corkscrewλrefuses. It now refuses the same values and
shapes asoz.Corkscrewλ, and its messages say a blank cell is allowed. It still
names an argument that holds an error, whichoz.Corkscrewλlets through when nothing
else is wrong, so the error shows.