From 218053ff2df445d6f130db6a8dfca5d1a94b4d96 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 28 Jan 2021 16:07:29 +0100 Subject: [PATCH] Bug 20212: Restore price formatting for ecost and replacement_price --- .../intranet-tmpl/prog/en/modules/acqui/parcel.tt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt index 208ac30253..26a27ee34f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -521,14 +521,20 @@ "searchable": false }, { - "data": "replacement_price" + "data": "replacement_price", + "render": function(data, type, row, meta) { + return (row.replacement_price).format_price(); + }, }, { "data": "quantity", "orderable": true }, { - "data": "ecost" + "data": "ecost", + "render": function(data, type, row, meta) { + return (row.ecost).format_price(); + }, }, { "data": "", -- 2.20.1