[fix] clear barcode from table, fixes #3320
This commit is contained in:
parent
dcbc4d1a46
commit
c2acfc9828
@ -125,6 +125,11 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
barcode: function(doc, cdt, cdn) {
|
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);
|
this.item_code(doc, cdt, cdn);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user