Start balance and last balance

Hi guys. I am writing a cash report on opening and closing balances. I need some code to understand. Please help me

Hello @Hieu_Bang.

Have you tried tutorials from the Frappe?

https://frappe.io/docs/user/en/guides/reports-and-printing/how-to-make-script-reports

Regards,

Ivan