[fix] clear barcode from table, fixes #3320

This commit is contained in:
Rushabh Mehta 2015-05-27 12:00:47 +05:30
parent dcbc4d1a46
commit c2acfc9828

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);
},