How to add Total rows in script report

I was trying to add total rows at the end of column of report .But the total field at end of column is not calculated Eventhough there was not issue in script .how can i fix the issue

check this:

https://github.com/frappe/frappe/pull/5852

also share your report screen

It is not working for field type -float