Continuing the discussion from Issue in automating GST Sales/Purchase Invoice:
There is a minor bug in ERPNext unless my setup was flawed which is highly unlikely.
I realised a simple way to fix it
Whenever the field “Sales Taxes and Charges Template” is changed the default behavior in ERPNext is to refresh “Sales Taxes and Charges” child table
If every time a Invoice/PO is saved this process can be repeated ie based on the value in field “Sales Taxes and Charges Template” “Sales Taxes and Charges” child table is refreshed things would be sorted.
How can we implement this using a custom script since not everyone may not need this.