mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadidos totales a tarifas de clientes
This commit is contained in:
@ -141,10 +141,12 @@ class tarifasClienteView {
|
||||
name: "precio_hora"
|
||||
}, {
|
||||
name: "margen"
|
||||
}, {
|
||||
name: "total_precio_hora",
|
||||
type: 'hidden',
|
||||
}, {
|
||||
name: "user_updated_id",
|
||||
type: 'hidden',
|
||||
|
||||
}, {
|
||||
name: "updated_at",
|
||||
type: 'hidden',
|
||||
@ -365,10 +367,17 @@ class tarifasClienteView {
|
||||
return window.language.ClientePrecios.colorhq;
|
||||
}
|
||||
},
|
||||
{ 'data': 'tiempo_min' },
|
||||
{ 'data': 'tiempo_max' },
|
||||
{ 'data': 'precio_hora' },
|
||||
{ 'data': 'tiempo_min', render: (d) => `<span class="autonumeric">${d}</span>`},
|
||||
{ 'data': 'tiempo_max', render: (d) => `<span class="autonumeric">${d}</span>`},
|
||||
{ 'data': 'precio_hora', render: (d) => `<span class="autonumeric">${d}</span>`},
|
||||
{ 'data': 'margen' },
|
||||
{
|
||||
'data': 'total_precio_hora',
|
||||
'render': function (data, type, row, meta) {
|
||||
const value = row.precio_hora*(1+row.margen/100.0);
|
||||
return `<span class="autonumeric">${value}</span>`;
|
||||
}
|
||||
},
|
||||
{ 'data': 'user_updated' },
|
||||
{ 'data': 'updated_at' },
|
||||
{
|
||||
|
||||
@ -192,7 +192,11 @@ class PlantillasTarifasClienteForm {
|
||||
name: "precio_hora"
|
||||
}, {
|
||||
name: "margen"
|
||||
}, {
|
||||
},{
|
||||
name: "total_precio_hora",
|
||||
type: "hidden"
|
||||
},
|
||||
{
|
||||
name: "user_updated",
|
||||
type: "hidden",
|
||||
def: ''
|
||||
@ -560,10 +564,14 @@ class PlantillasTarifasClienteForm {
|
||||
return window.language.ClientePrecios.colorhq;
|
||||
}
|
||||
},
|
||||
{ 'data': 'tiempo_min' },
|
||||
{ 'data': 'tiempo_max' },
|
||||
{ 'data': 'precio_hora' },
|
||||
{ 'data': 'tiempo_min', render: (d) => `<span class="autonumeric">${d}</span>` },
|
||||
{ 'data': 'tiempo_max', render: (d) => `<span class="autonumeric">${d}</span>` },
|
||||
{ 'data': 'precio_hora', render: (d) => `<span class="autonumeric">${d}</span>` },
|
||||
{ 'data': 'margen' },
|
||||
{ 'data': 'total_precio_hora', render: (d, t, r) => {
|
||||
const value = r.precio_hora*(1+r.margen/100.0);
|
||||
return `<span class="autonumeric">${value}</span>`;
|
||||
}},
|
||||
{ 'data': 'user_updated' },
|
||||
{ 'data': 'updated_at' },
|
||||
|
||||
|
||||
Reference in New Issue
Block a user