POS batch fixes (#12005)
This commit is contained in:
committed by
Nabin Hait
parent
ee7b4f00f8
commit
2b95a5438b
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user