Merge pull request #32520 from s-aga-r/refactor/stock/reports

refactor: rewrite stock reports queries in qb