refactor: show company currency in purchase amount label

This commit is contained in:
khushi8112
2026-03-12 16:19:38 +05:30
parent c6efc403cd
commit b4c82c0f1a
2 changed files with 6 additions and 4 deletions

View File

@@ -87,6 +87,8 @@ frappe.ui.form.on("Asset", {
},
refresh: async function (frm) {
frm.set_currency_labels(["net_purchase_amount"], erpnext.get_currency(frm.doc.company));
frappe.ui.form.trigger("Asset", "asset_type");
frm.toggle_display("next_depreciation_date", frm.doc.docstatus < 1);

View File

@@ -9,13 +9,13 @@
"engine": "InnoDB",
"field_order": [
"naming_series",
"company",
"item_code",
"item_name",
"asset_name",
"location",
"image",
"column_break_3",
"location",
"company",
"asset_category",
"asset_type",
"maintenance_required",
@@ -533,7 +533,7 @@
"fieldtype": "Currency",
"label": "Net Purchase Amount",
"mandatory_depends_on": "eval:(doc.asset_type != \"Composite Asset\" || doc.docstatus==1)",
"options": "Company:company:default_currency",
"options": "currency",
"read_only_depends_on": "eval: doc.asset_type == \"Composite Asset\""
},
{
@@ -626,7 +626,7 @@
"link_fieldname": "target_asset"
}
],
"modified": "2026-03-09 17:15:32.819896",
"modified": "2026-03-12 16:07:39.543227",
"modified_by": "Administrator",
"module": "Assets",
"name": "Asset",