POS batch fixes (#12005)

This commit is contained in:
rohitwaghchaure
2017-12-14 16:06:23 +05:30
committed by Nabin Hait
parent ee7b4f00f8
commit 2b95a5438b
3 changed files with 35 additions and 10 deletions

View File

@@ -20,6 +20,7 @@ erpnext.SerialNoBatchSelector = Class.extend({
this.item_code = this.item.item_code;
this.qty = this.item.qty;
this.make_dialog();
this.on_close_dialog();
},
make_dialog: function() {
@@ -115,6 +116,12 @@ erpnext.SerialNoBatchSelector = Class.extend({
this.dialog.show();
},
on_close_dialog: function() {
this.dialog.get_close_btn().on('click', () => {
this.on_close && this.on_close(this.item);
});
},
validate: function() {
let values = this.values;
if(!values.warehouse) {