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

Minor change: Alert to msgprint #8966

Merged
merged 2 commits into from
May 24, 2017
Merged

Minor change: Alert to msgprint #8966

merged 2 commits into from
May 24, 2017

Conversation

nick9822
Copy link
Contributor

No description provided.

@@ -21,7 +21,7 @@ frappe.ui.form.on("Material Request Item", {
"qty": function(frm, doctype, name) {
var d = locals[doctype][name];
if (flt(d.qty) < flt(d.min_order_qty)) {
alert(__("Warning: Material Requested Qty is less than Minimum Order Qty"));
msgprint(__("Warning: Material Requested Qty is less than Minimum Order Qty"));
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for your PR. Please use frappe.msgprint instead of msgprint, global methods like these will be deprecated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the information. I will apply that.

@nick9822
Copy link
Contributor Author

@netchampfaris
Please review new commit pushed as dictated.

@nabinhait nabinhait merged commit ca150ce into frappe:develop May 24, 2017
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