fix: pass doc to frappe.format so doc currency is set for the row, not system default currency

This commit is contained in:
prssanna 2019-11-18 19:00:33 +05:30
parent 0871db97f6
commit 3a976d82e7

View file

@ -996,7 +996,7 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView {
content: d[cdt_field(col.field)],
editable: Boolean(name && this.is_editable(col.docfield, d)),
format: value => {
return frappe.format(value, col.docfield, { always_show_decimals: true });
return frappe.format(value, col.docfield, { always_show_decimals: true }, d);
}
};
}