Merge pull request #12610 from MaxMorais/patch-7

Serial No, wont relates to the warehouse
This commit is contained in:
rohitwaghchaure 2018-01-23 14:46:46 +05:30 committed by GitHub
commit b607c6f8b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,7 +314,7 @@ erpnext.SerialNoBatchSelector = Class.extend({
fieldtype: 'Link', fieldname: 'serial_no_select', options: 'Serial No',
label: __('Select'),
get_query: function() {
return { filters: {item_code: me.item_code}};
return { filters: {item_code: me.item_code, warehouse: me.warehouse_details.name}};
},
onchange: function(e) {
if(this.in_local_change) return;