Update stock_entry.js

This commit is contained in:
Nabin Hait 2014-03-05 17:45:58 +05:30
parent ebdac5db5c
commit 9472247b6e

View File

@ -339,6 +339,7 @@ cur_frm.fields_dict['mtn_details'].grid.get_field('batch_no').get_query = functi
cur_frm.cscript.item_code = function(doc, cdt, cdn) {
var d = locals[cdt][cdn];
if(d.item_code) {
args = {
'item_code' : d.item_code,
'warehouse' : cstr(d.s_warehouse) || cstr(d.t_warehouse),
@ -353,6 +354,8 @@ cur_frm.cscript.item_code = function(doc, cdt, cdn) {
'mtn_details', doc, cdt, cdn, 1);
}
}
cur_frm.cscript.s_warehouse = function(doc, cdt, cdn) {
var d = locals[cdt][cdn];
args = {