revert: "fix: duplicate stock entry (#25486)"

Not required anymore, submit button is disabled.
This commit is contained in:
Ankush Menat 2021-05-18 16:33:15 +05:30
parent 042b8524cc
commit ecbb8cbc84
No known key found for this signature in database
GPG Key ID: 8EA82E09BBD13AAF

View File

@ -230,7 +230,6 @@ erpnext.stock.move_item = function (item, source, target, actual_qty, rate, call
},
],
});
var submitted = false;
dialog.show();
dialog.get_field('item_code').set_input(item);
@ -254,7 +253,6 @@ erpnext.stock.move_item = function (item, source, target, actual_qty, rate, call
}
dialog.set_primary_action(__('Submit'), function () {
if(submitted) return;
var values = dialog.get_values();
if (!values) {
return;
@ -267,7 +265,6 @@ erpnext.stock.move_item = function (item, source, target, actual_qty, rate, call
frappe.msgprint(__('Source and target warehouse must be different'));
}
submitted = true;
frappe.call({
method: 'erpnext.stock.doctype.stock_entry.stock_entry_utils.make_stock_entry',
args: values,