Merge pull request #7310 from bhupennewalkar1337/hotfix

Fix #7202 unchecking pos will reflect automatically
diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js
index 57e0faa..6268fe3 100644
--- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js
+++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js
@@ -270,6 +270,7 @@
 				});
 			}
 		}
+		else this.frm.trigger("refresh")
 	},
 
 	amount: function(){