mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-12 14:58:24 +00:00
fix: ewaybill could be modified after ewaybill generation
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user