mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-20 03:47:11 +00:00
feat: show formatted currency symbol on ledger preview
(cherry picked from commit 5c8cb1e7ec)
This commit is contained in:
@@ -84,6 +84,14 @@ erpnext.accounts.ledger_preview = {
|
||||
},
|
||||
|
||||
get_datatable(columns, data, wrapper) {
|
||||
columns.forEach((col) => {
|
||||
if (col.fieldtype === "Currency") {
|
||||
col.format = (value) => {
|
||||
return format_currency(value);
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
const datatable_options = {
|
||||
columns: columns,
|
||||
data: data,
|
||||
|
||||
Reference in New Issue
Block a user