Serial No, wont relates to the warehouse

The serial no, picker wont follow the target serial no
This commit is contained in:
Maxwell Morais
2018-01-22 22:33:28 -02:00
committed by GitHub
parent ef31637549
commit 7cffd618ab

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;