chore: rename method

This commit is contained in:
ruthra kumar
2024-12-04 14:03:18 +05:30
parent af580c9977
commit d0153065b0
2 changed files with 2 additions and 2 deletions

View File

@@ -500,7 +500,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
var item = frappe.get_doc(cdt, cdn);
frappe.call({
doc: doc,
method: "item_code_trigger",
method: "process_item_selection",
args: {
item: item
},

View File

@@ -288,7 +288,7 @@ class TransactionBase(StatusUpdater):
)
@frappe.whitelist()
def item_code_trigger(self, item):
def process_item_selection(self, item):
# 'item' - child table row from UI. Possibly has user-set values
# Convert it to Frappe doc for better attribute access
item = frappe.get_doc(item)