[hot] fix quotation (#7039)

This commit is contained in:
Rushabh Mehta 2016-11-22 23:16:40 +05:30 committed by GitHub
parent c381327e6e
commit 698c040d21

View File

@ -66,7 +66,8 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
});
}
if(this.frm.fields_dict["packed_items"].grid.get_field('batch_no')) {
if(this.frm.fields_dict["packed_items"] &&
this.frm.fields_dict["packed_items"].grid.get_field('batch_no')) {
this.frm.set_query("batch_no", "packed_items", function(doc, cdt, cdn) {
return me.set_query_for_batch(doc, cdt, cdn)
});