fix: ewaybill could be modified after ewaybill generation

This commit is contained in:
Saqib Ansari
2020-11-07 21:00:38 +05:30
parent 020e6e980a
commit 72ed0fbbb4

View File

@@ -9,6 +9,10 @@ erpnext.setup_einvoice_actions = (doctype) => {
const { docstatus, irn, irn_cancelled, ewaybill, eway_bill_cancelled, name, __unsaved } = frm.doc;
if (ewaybill && irn) {
frm.set_df_property('ewaybill', 'read_only', 1);
}
if (docstatus == 0 && !irn && !__unsaved) {
const action = () => {
frappe.call({