mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 13:39:18 +00:00
Merge pull request #49289 from anwarpatelnoori/stage
fix: Company currency label is not displayed in Landed Cost Voucher doctype for the field Total Vendor Invoices Cost
This commit is contained in:
@@ -62,7 +62,10 @@ erpnext.stock.LandedCostVoucher = class LandedCostVoucher extends erpnext.stock.
|
|||||||
|
|
||||||
if (this.frm.doc.company) {
|
if (this.frm.doc.company) {
|
||||||
let company_currency = frappe.get_doc(":Company", this.frm.doc.company).default_currency;
|
let company_currency = frappe.get_doc(":Company", this.frm.doc.company).default_currency;
|
||||||
this.frm.set_currency_labels(["total_taxes_and_charges"], company_currency);
|
this.frm.set_currency_labels(
|
||||||
|
["total_taxes_and_charges", "total_vendor_invoices_cost"],
|
||||||
|
company_currency
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -152,6 +152,7 @@
|
|||||||
"fieldname": "total_vendor_invoices_cost",
|
"fieldname": "total_vendor_invoices_cost",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"label": "Total Vendor Invoices Cost (Company Currency)",
|
"label": "Total Vendor Invoices Cost (Company Currency)",
|
||||||
|
"options": "Company:company:default_currency",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
|
|||||||
Reference in New Issue
Block a user