[feature] pull from material request based on supplier

This commit is contained in:
Nabin Hait
2013-07-26 19:45:22 +05:30
parent 114bc09164
commit 834a4db596
3 changed files with 88 additions and 30 deletions

View File

@@ -80,7 +80,8 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend(
company: cur_frm.doc.company
}
})
});
}
);
cur_frm.add_custom_button(wn._('From Supplier Quotation'),
function() {
@@ -93,7 +94,20 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend(
company: cur_frm.doc.company
}
})
});
}
);
cur_frm.add_custom_button(wn._('For Supplier'),
function() {
wn.model.map_current_doc({
method: "stock.doctype.material_request.material_request.make_purchase_order_based_on_supplier",
source_doctype: "Supplier",
get_query_filters: {
docstatus: ["!=", 2],
}
})
}
);
},
tc_name: function() {