mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-22 08:08:29 +00:00
fix: Serial Nos popup only appears 1 time
(cherry picked from commit 5503d4b05b)
# Conflicts:
# erpnext/public/js/controllers/transaction.js
This commit is contained in:
committed by
Mergify
parent
c2d07eb2b2
commit
196812017e
@@ -551,6 +551,32 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
|
|
||||||
item_code(doc, cdt, cdn) {
|
item_code(doc, cdt, cdn) {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
frappe.flags.dialog_set = false;
|
||||||
|
|
||||||
|
// Experimental: This will be removed once stability is achieved.
|
||||||
|
if (frappe.boot.sysdefaults.use_server_side_reactivity) {
|
||||||
|
var item = frappe.get_doc(cdt, cdn);
|
||||||
|
frappe.call({
|
||||||
|
doc: doc,
|
||||||
|
method: "process_item_selection",
|
||||||
|
args: {
|
||||||
|
item_idx: item.idx,
|
||||||
|
},
|
||||||
|
callback: function (r) {
|
||||||
|
if (!r.exc) {
|
||||||
|
me.frm.refresh_fields();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
me.process_item_selection(doc, cdt, cdn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
process_item_selection(doc, cdt, cdn) {
|
||||||
|
>>>>>>> 5503d4b05b (fix: Serial Nos popup only appears 1 time)
|
||||||
var item = frappe.get_doc(cdt, cdn);
|
var item = frappe.get_doc(cdt, cdn);
|
||||||
var update_stock = 0, show_batch_dialog = 0;
|
var update_stock = 0, show_batch_dialog = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user