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:
Rohit Waghchaure
2025-08-21 23:24:35 +05:30
committed by Mergify
parent c2d07eb2b2
commit 196812017e

View File

@@ -551,6 +551,32 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
item_code(doc, cdt, cdn) {
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 update_stock = 0, show_batch_dialog = 0;