Commit 045537b5 by Billy Larru

[EDIT detalle montos administrativos, descuento 0.00 de color azul]

parent 79ee31ec
......@@ -26,7 +26,17 @@ function getColumns() {
data: `descuento`,
className: 'text-center',
render: (data) => {
return `<span class="text-danger">${parseFloat(data).toFixed(2)}</span>`;
let label = ""
let contenido = ""
if(data === 0){
label = "text-primary"
}else{
label = "text-danger"
}
contenido = parseFloat(data).toFixed(2);
return `<span class="${label}">${contenido}</span>`;
}
},
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment