mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
Merge pull request #4369 from bohlian/develop
Removed Warehouse Requirement for SerialNo Listing
This commit is contained in:
@@ -50,8 +50,7 @@ cur_frm.fields_dict['contact_person'].get_query = function(doc, cdt, cdn) {
|
|||||||
cur_frm.fields_dict['serial_no'].get_query = function(doc, cdt, cdn) {
|
cur_frm.fields_dict['serial_no'].get_query = function(doc, cdt, cdn) {
|
||||||
var cond = [];
|
var cond = [];
|
||||||
var filter = [
|
var filter = [
|
||||||
['Serial No', 'docstatus', '!=', 2],
|
['Serial No', 'docstatus', '!=', 2]
|
||||||
['Serial No', 'warehouse', '=', ""]
|
|
||||||
];
|
];
|
||||||
if(doc.item_code) {
|
if(doc.item_code) {
|
||||||
cond = ['Serial No', 'item_code', '=', doc.item_code];
|
cond = ['Serial No', 'item_code', '=', doc.item_code];
|
||||||
|
|||||||
Reference in New Issue
Block a user