Skip to content

Commit

Permalink
Merge pull request frappe#7530 from KanchanChauhan/website-default-wa…
Browse files Browse the repository at this point in the history
…rehouse

[Minor] Set website warehouse as default warehouse
  • Loading branch information
nabinhait authored Jan 20, 2017
2 parents c81621d + 03dc695 commit 188f9da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions erpnext/stock/doctype/item/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ frappe.ui.form.on("Item", {

has_variants: function(frm) {
erpnext.item.toggle_attributes(frm);
},

show_in_website: function(frm) {
if (frm.doc.default_warehouse && !frm.doc.website_warehouse){
frm.set_value("website_warehouse", frm.doc.default_warehouse);
}
}
});

Expand Down

0 comments on commit 188f9da

Please sign in to comment.