mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
realizado el calculo por horas e introducido en el comparador
This commit is contained in:
@ -441,6 +441,21 @@ class PresupuestoService extends BaseService
|
||||
}
|
||||
}
|
||||
|
||||
public static function getHorasMaquina($totalClicks, $precioClick, $velocidadMaquina) {
|
||||
try {
|
||||
|
||||
if($precioClick>0 && $velocidadMaquina>0)
|
||||
$horas = (1.0*$totalClicks/$precioClick)/$velocidadMaquina/60.0;
|
||||
else
|
||||
$horas = 0;
|
||||
|
||||
return $horas;
|
||||
|
||||
} catch (Exception $e) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Devuelve la dimensión del lomo interior.
|
||||
|
||||
Reference in New Issue
Block a user