Merge branch 'latest' of github.com:webnotes/erpnext into latest

This commit is contained in:
Rushabh Mehta 2012-02-16 11:00:23 +01:00
commit 22eb57a217

View File

@ -29,7 +29,6 @@ cur_frm.cscript.onload = function(doc, cdt, cdn) {
var ps_detail = getchildren('Packing Slip Detail', doc.name, 'item_details'); var ps_detail = getchildren('Packing Slip Detail', doc.name, 'item_details');
if(!(flt(ps_detail[0].net_weight) && cstr(ps_detail[0].weight_uom))) { if(!(flt(ps_detail[0].net_weight) && cstr(ps_detail[0].weight_uom))) {
cur_frm.cscript.update_item_details(doc); cur_frm.cscript.update_item_details(doc);
refresh_field('naming_series');
} }
} }
} }
@ -41,6 +40,7 @@ cur_frm.cscript.update_item_details = function(doc) {
msgprint(r.exc); msgprint(r.exc);
} else { } else {
refresh_field('item_details'); refresh_field('item_details');
refresh_field('naming_series');
} }
}); });
} }