mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'fix/round_tiempo_rot_descuento_admin' into 'main'
corregidos los dos fallos See merge request jjimenez/safekat!730
This commit is contained in:
@ -309,7 +309,7 @@ class PresupuestoService extends BaseService
|
|||||||
$linea['fields']['precio_click'],
|
$linea['fields']['precio_click'],
|
||||||
$maquina->velocidad
|
$maquina->velocidad
|
||||||
);
|
);
|
||||||
[$precio_hora, $margen_precio_hora] = $clientePreciosModel->get_precio_hora($cliente_id, $config, $tiempo);
|
[$precio_hora, $margen_precio_hora] = $clientePreciosModel->get_precio_hora($cliente_id, $config, round($tiempo, 2));
|
||||||
|
|
||||||
if (is_null($precio_hora)) {
|
if (is_null($precio_hora)) {
|
||||||
return [];
|
return [];
|
||||||
|
|||||||
@ -11,13 +11,18 @@ class Resumen {
|
|||||||
const self = this;
|
const self = this;
|
||||||
this.toastPresupuestoTotal = null
|
this.toastPresupuestoTotal = null
|
||||||
$(".update-totales").on("change", function () {
|
$(".update-totales").on("change", function () {
|
||||||
self.updateTotales(null, { updateLP: true, updateServicios: true, updateEnvio: true });
|
self.updateTotales({ updateLP: true, updateServicios: true, updateEnvio: true });
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on('update-totales', async function () {
|
$(document).on('update-totales', async function () {
|
||||||
await self.updateTotales();
|
await self.updateTotales();
|
||||||
$(document).trigger('update-totales-completed');
|
$(document).trigger('update-totales-completed');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#total_descuentoPercent').on('change', function () {
|
||||||
|
this.updateTotales({ updateLP: false, updateServicios: false, updateEnvio: false }, false);
|
||||||
|
}.bind(this));
|
||||||
|
|
||||||
$("#totalDespuesDecuento").on('change', this.updateToastSummary.bind(this))
|
$("#totalDespuesDecuento").on('change', this.updateToastSummary.bind(this))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user