Merge pull request #3353 from rmehta/barcode-fix

[fix] clear barcode from table, fixes #3320
This commit is contained in:
Nabin Hait 2015-05-28 11:07:16 +05:30
commit e7b37af525

View File

@ -125,6 +125,11 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
},
barcode: function(doc, cdt, cdn) {
var d = locals[cdt][cdn];
if(d.barcode=="" || d.barcode==null) {
// barcode cleared, remove item
d.item_code = "";
}
this.item_code(doc, cdt, cdn);
},