Cash flow statement & cash book detailed with each entry wise break up

How to get cash flow statement ?
How to get cash book - detailed with break up of each expenses wise ?
Means one Cash payment entry passed and in that if there are 10 heads of account then how one can get cash book of any particular month with each entry wise detail ?
Kindly guide.

This can be done doing a script report https://frappe.github.io/frappe/user/en/guides/reports-and-printing/how-to-make-script-reports