focus on barcode field after adding a row

This commit is contained in:
Nabin Hait 2014-12-30 17:53:16 +05:30
parent 54c31b498b
commit 40431cbf89

View File

@ -492,7 +492,7 @@ erpnext.POS = Class.extend({
});
me.refresh_delete_btn();
if(me.frm.doc[this.party]) {
if(me.frm.doc[this.party.toLowerCase()]) {
this.barcode.$input.focus();
} else {
this.party_field.$input.focus();