Merge pull request #3353 from rmehta/barcode-fix
[fix] clear barcode from table, fixes #3320
This commit is contained in:
commit
e7b37af525
@ -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