Revert "Prompt for mandatory batch number in POS (#8928)"
This reverts commit ce9ac7885e15f9ed511b29e70f579a46ffb2799f.
This commit is contained in:
parent
54fcf85317
commit
b3d4326dcc
@ -1763,14 +1763,10 @@ erpnext.pos.PointOfSale = erpnext.taxes_and_totals.extend({
|
|||||||
mandatory_batch_no: function () {
|
mandatory_batch_no: function () {
|
||||||
var me = this;
|
var me = this;
|
||||||
if (this.items[0].has_batch_no && !this.item_batch_no[this.items[0].item_code]) {
|
if (this.items[0].has_batch_no && !this.item_batch_no[this.items[0].item_code]) {
|
||||||
frappe.prompt([
|
frappe.throw(__(repl("Error: Batch no is mandatory for item %(item)s", {
|
||||||
{'fieldname': 'batch', 'fieldtype': 'Select', 'label': __('Batch No'), 'reqd': 1, 'options':this.batch_no_data[this.items[0].item_code]}
|
'item': this.items[0].item_code
|
||||||
],
|
})))
|
||||||
function(values){
|
}
|
||||||
me.item_batch_no[me.items[0].item_code] = values.batch;
|
|
||||||
},
|
|
||||||
__('Select Batch No'))
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
apply_pricing_rule: function () {
|
apply_pricing_rule: function () {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user