mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
fix: args must be wrapped under a ctx
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
|
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
from frappe import _
|
from frappe import _
|
||||||
from frappe.query_builder import Order
|
from frappe.query_builder import Order
|
||||||
|
|||||||
@@ -396,6 +396,7 @@ erpnext.assets.AssetCapitalization = class AssetCapitalization extends erpnext.s
|
|||||||
method: "erpnext.assets.doctype.asset_capitalization.asset_capitalization.get_warehouse_details",
|
method: "erpnext.assets.doctype.asset_capitalization.asset_capitalization.get_warehouse_details",
|
||||||
child: item,
|
child: item,
|
||||||
args: {
|
args: {
|
||||||
|
ctx: {
|
||||||
item_code: item.item_code,
|
item_code: item.item_code,
|
||||||
warehouse: cstr(item.warehouse),
|
warehouse: cstr(item.warehouse),
|
||||||
qty: -1 * flt(item.stock_qty),
|
qty: -1 * flt(item.stock_qty),
|
||||||
@@ -408,6 +409,7 @@ erpnext.assets.AssetCapitalization = class AssetCapitalization extends erpnext.s
|
|||||||
allow_zero_valuation: 1,
|
allow_zero_valuation: 1,
|
||||||
serial_and_batch_bundle: item.serial_and_batch_bundle,
|
serial_and_batch_bundle: item.serial_and_batch_bundle,
|
||||||
},
|
},
|
||||||
|
},
|
||||||
callback: function (r) {
|
callback: function (r) {
|
||||||
if (!r.exc) {
|
if (!r.exc) {
|
||||||
me.calculate_totals();
|
me.calculate_totals();
|
||||||
|
|||||||
Reference in New Issue
Block a user