Skip to content

bcornwellmott/octoerp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published