chore: add field Against Stock Reservation Entry in DN Item
This commit is contained in:
parent
744166da73
commit
cdc625806d
@ -77,6 +77,17 @@ frappe.ui.form.on("Delivery Note", {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
frm.set_query("against_sre", "items", (doc, cdt, cdn) => {
|
||||||
|
var row = locals[cdt][cdn];
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
|
"voucher_type": "Sales Order",
|
||||||
|
"voucher_no": row.against_sales_order,
|
||||||
|
"voucher_detail_no": row.so_detail
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
frm.set_df_property('packed_items', 'cannot_add_rows', true);
|
frm.set_df_property('packed_items', 'cannot_add_rows', true);
|
||||||
frm.set_df_property('packed_items', 'cannot_delete_rows', true);
|
frm.set_df_property('packed_items', 'cannot_delete_rows', true);
|
||||||
},
|
},
|
||||||
|
|||||||
@ -76,6 +76,7 @@
|
|||||||
"si_detail",
|
"si_detail",
|
||||||
"dn_detail",
|
"dn_detail",
|
||||||
"pick_list_item",
|
"pick_list_item",
|
||||||
|
"against_sre",
|
||||||
"section_break_40",
|
"section_break_40",
|
||||||
"batch_no",
|
"batch_no",
|
||||||
"serial_no",
|
"serial_no",
|
||||||
@ -831,13 +832,22 @@
|
|||||||
"fieldname": "material_request_item",
|
"fieldname": "material_request_item",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"label": "Material Request Item"
|
"label": "Material Request Item"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "against_sre",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"label": "Against Stock Reservation Entry",
|
||||||
|
"no_copy": 1,
|
||||||
|
"options": "Stock Reservation Entry",
|
||||||
|
"print_hide": 1,
|
||||||
|
"read_only": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2022-11-09 12:17:50.850142",
|
"modified": "2023-03-26 16:53:08.283469",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Delivery Note Item",
|
"name": "Delivery Note Item",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user