Bug 20212: Restore price formatting for ecost and replacement_price

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-01-28 16:07:29 +01:00
parent f0669a0c1a
commit 03fa53c447
1 changed files with 8 additions and 2 deletions

View File

@ -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": "",