V10: sales invoice rounding blank after edit

When in ERPNext V10.0.5 a new sales invoice is created, the rounded total is calculated. If then the item list is edited (more quantity or additional row), the update triggers the system to set the rounded total to 0.

I have created a GitHub issue as well as this reproduces on several systems: https://github.com/frappe/erpnext/issues/12336