Lines 342-355
$(document).ready(function() {
Link Here
|
342 |
"data": "cost", |
342 |
"data": "cost", |
343 |
"orderable": true, |
343 |
"orderable": true, |
344 |
"render": function(data, type, row, meta) { |
344 |
"render": function(data, type, row, meta) { |
345 |
return escape_str(data); |
345 |
let cost = row.cost && row.cost.replaceAll(',','.'); |
|
|
346 |
cost = Number(cost) || 0; |
347 |
return cost.escapeHtml().format_price(); |
346 |
} |
348 |
} |
347 |
}, |
349 |
}, |
348 |
{ |
350 |
{ |
349 |
"data": "paid_price", |
351 |
"data": "paid_price", |
350 |
"orderable": true, |
352 |
"orderable": true, |
351 |
"render": function(data, type, row, meta) { |
353 |
"render": function(data, type, row, meta) { |
352 |
return escape_str(data); |
354 |
let paid_price = row.paid_price && row.paid_price.replaceAll(',','.'); |
|
|
355 |
paid_price = Number(paid_price) || 0; |
356 |
return paid_price.escapeHtml().format_price(); |
353 |
} |
357 |
} |
354 |
}, |
358 |
}, |
355 |
{ |
359 |
{ |
356 |
- |
|
|