commit | e7b37af52596cf85dac231681107b39d74a20723 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Thu May 28 11:07:16 2015 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Thu May 28 11:07:16 2015 +0530 |
tree | 07c430b8ed317406572dbf652053d092095ecd9f | |
parent | 10026ea85ccded75924da7be98e67a9a68a8c6b1 [diff] | |
parent | c2acfc982850d00700c620f16f325638814d6e19 [diff] |
Merge pull request #3353 from rmehta/barcode-fix [fix] clear barcode from table, fixes #3320
diff --git a/erpnext/selling/sales_common.js b/erpnext/selling/sales_common.js index 1e4ec7f..3ef8525 100644 --- a/erpnext/selling/sales_common.js +++ b/erpnext/selling/sales_common.js
@@ -125,6 +125,11 @@ }, 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); },