feat: Added 'Add Multiple' options in all sales / purchase transactions

This commit is contained in:
Nabin Hait
2019-05-16 14:48:10 +05:30
parent 21085bf2be
commit 8e1a612b3b
7 changed files with 14 additions and 11 deletions

View File

@@ -20,6 +20,10 @@ frappe.ui.form.on("Opportunity", {
});
},
onload_post_render: function(frm) {
frm.get_field("items").grid.set_multiple_add("item_code", "qty");
},
party_name: function(frm) {
if (frm.doc.opportunity_from == "Customer") {
frm.trigger('set_contact_link');