From 03fa53c4475c2d2ca2288c63a1107fdbb618b996 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 Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- .../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.39.5