chore: add field Against Stock Reservation Entry in DN Item

This commit is contained in:
s-aga-r 2023-03-26 16:00:25 +05:30
parent 744166da73
commit cdc625806d
2 changed files with 22 additions and 1 deletions

View File

@ -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_delete_rows', true);
},

View File

@ -76,6 +76,7 @@
"si_detail",
"dn_detail",
"pick_list_item",
"against_sre",
"section_break_40",
"batch_no",
"serial_no",
@ -831,13 +832,22 @@
"fieldname": "material_request_item",
"fieldtype": "Data",
"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,
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2022-11-09 12:17:50.850142",
"modified": "2023-03-26 16:53:08.283469",
"modified_by": "Administrator",
"module": "Stock",
"name": "Delivery Note Item",