diff --git a/erpnext/accounts/doctype/sales_invoice/pos.js b/erpnext/accounts/doctype/sales_invoice/pos.js index d9ef6d8562..e7cbcb761e 100644 --- a/erpnext/accounts/doctype/sales_invoice/pos.js +++ b/erpnext/accounts/doctype/sales_invoice/pos.js @@ -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();