fixes in packing slip
This commit is contained in:
parent
4ceb1b5164
commit
35e037651c
@ -28,18 +28,10 @@ cur_frm.fields_dict['item_details'].grid.get_field('item_code').get_query = func
|
|||||||
|
|
||||||
|
|
||||||
// Fetch item details
|
// Fetch item details
|
||||||
cur_frm.cscript.item_code = function(doc, cdt, cdn) {
|
cur_frm.add_fetch("item_code", "item_name", "item_name");
|
||||||
if(locals[cdt][cdn].item_code) {
|
cur_frm.add_fetch("item_code", "stock_uom", "stock_uom");
|
||||||
$c_obj(make_doclist(cdt, cdn), 'get_item_details', doc.delivery_note, function(r, rt) {
|
cur_frm.add_fetch("item_code", "net_weight", "net_weight");
|
||||||
if(r.exc) {
|
cur_frm.add_fetch("item_code", "weight_uom", "weight_uom");
|
||||||
msgprint(r.exc);
|
|
||||||
} else {
|
|
||||||
refresh_field('item_details');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
cur_frm.cscript.onload_post_render = function(doc, cdt, cdn) {
|
cur_frm.cscript.onload_post_render = function(doc, cdt, cdn) {
|
||||||
if(doc.delivery_note && doc.__islocal) {
|
if(doc.delivery_note && doc.__islocal) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user