fix: update calling signature (#44299)

This commit is contained in:
David Arnold
2024-11-23 01:29:00 +01:00
committed by GitHub
parent 15c607306a
commit e9ea9ee57b
2 changed files with 4 additions and 4 deletions

View File

@@ -1381,7 +1381,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
if(child.service_start_date) {
frappe.call({
"method": "erpnext.stock.get_item_details.calculate_service_end_date",
args: {"args": child},
args: {ctx: child},
callback: function(r) {
frappe.model.set_value(cdt, cdn, "service_end_date", r.message.service_end_date);
}
@@ -1548,7 +1548,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
frappe.call({
method: "erpnext.stock.get_item_details.get_batch_based_item_price",
args: {
params: params,
pctx: params,
item_code: row.item_code,
},
callback: function(r) {
@@ -2527,7 +2527,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
frappe.call({
method: "erpnext.stock.get_item_details.get_blanket_order_details",
args: {
args:{
ctx:{
item_code: item.item_code,
customer: doc.customer,
supplier: doc.supplier,

View File

@@ -236,7 +236,7 @@ frappe.ui.form.on("Material Request", {
frappe.call({
method: "erpnext.stock.get_item_details.get_item_details",
args: {
args: {
ctx: {
item_code: item.item_code,
from_warehouse: item.from_warehouse,
warehouse: item.warehouse,