Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Get Suppliers dialog #10025

Merged
merged 3 commits into from
Jul 25, 2017
Merged

Conversation

bcornwellmott
Copy link
Contributor

Adds a dialog box that gets called when using the new Get Suppliers button. Adds suppliers based on tag of supplier Type.

Needs frappe/frappe#3759 to work.

rfq_get_suppliers

},
callback: function(r) {
console.log(r);
if(r.message) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code seems very similar to the earlier block. make it common!

rmehta
rmehta previously requested changes Jul 24, 2017
dialog.fields_dict.search_type.$input.change( function() {
var args = dialog.get_values();
if(!args) return;
if (args.search_type === "Tag") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just use the depend_on property in the field definition above!

@rmehta
Copy link
Member

rmehta commented Jul 24, 2017

Closing for now, pls reopen

@rmehta rmehta closed this Jul 24, 2017
@bcornwellmott bcornwellmott reopened this Jul 24, 2017
@bcornwellmott bcornwellmott dismissed rmehta’s stale review July 24, 2017 16:25

Fixed the issues identified

}
}

function LoadSuppliers(r) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

snake_case :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants