Moved flags like ignore_mandatory, ignore_validate etc to doc.flags
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py
index 8ecbc8d..415a51a 100644
--- a/erpnext/accounts/utils.py
+++ b/erpnext/accounts/utils.py
@@ -209,7 +209,7 @@
 		ch.docstatus = 1
 
 	# will work as update after submit
-	jv_obj.ignore_validate_update_after_submit = True
+	jv_obj.flags.ignore_validate_update_after_submit = True
 	jv_obj.save()
 
 def remove_against_link_from_jv(ref_type, ref_no, against_field):