Merge pull request #35617 from s-aga-r/FIX-CBAL-TypeError

fix: `TypeError` in Closing Stock Balance