Update stock_entry.js
This commit is contained in:
parent
ebdac5db5c
commit
9472247b6e
@ -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) {
|
cur_frm.cscript.item_code = function(doc, cdt, cdn) {
|
||||||
var d = locals[cdt][cdn];
|
var d = locals[cdt][cdn];
|
||||||
|
if(d.item_code) {
|
||||||
args = {
|
args = {
|
||||||
'item_code' : d.item_code,
|
'item_code' : d.item_code,
|
||||||
'warehouse' : cstr(d.s_warehouse) || cstr(d.t_warehouse),
|
'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);
|
'mtn_details', doc, cdt, cdn, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
cur_frm.cscript.s_warehouse = function(doc, cdt, cdn) {
|
cur_frm.cscript.s_warehouse = function(doc, cdt, cdn) {
|
||||||
var d = locals[cdt][cdn];
|
var d = locals[cdt][cdn];
|
||||||
args = {
|
args = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user