Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 966 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 966 Bytes

Octo-ERP

App for using Octo-part to look up part pricing and availability

To implement, add this to your custom script for 'Supplier Quotation':

frappe.ui.form.on("Supplier Quotation",{
	refresh: function(frm) {
		frm.add_custom_button(__("Octopart Lookup"), function(foo) {

				frappe.call({
					method:"octoerp.octo_erp.octo_erp.octopart_lookup",
					args: {
						sq_number: cur_frm.doc.name
					}, 
					callback: function(r) { 
						frm.reload_doc();

					}
				});
		});
	}
});

The system will only look up items in a supplier quotation where the manufacturer's part number has been set.

You also need to set up your API key in Octo-ERP Settings. There is a custom field in each supplier (under Additional Information) where you should plug in the supplier's Octopart Name (this may be different from the supplier name you have entered). You can look up the formatting of this name in the Settings field.

=

License

MIT