Merge pull request #22206 from frappe/clarkejj-patch-1

fix: TypeError in Stock ageing report