mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
modificadas tarifas en las que import minimo y precio minimo no tenian sentido. Revision de Presupuestos* para calcular la tarifa
This commit is contained in:
@ -69,7 +69,6 @@ class PresupuestoPreimpresionesModel extends \App\Models\BaseModel
|
||||
];
|
||||
return $ret_array;
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
private function calcularTarifa($tarifa){
|
||||
@ -78,12 +77,6 @@ class PresupuestoPreimpresionesModel extends \App\Models\BaseModel
|
||||
$precio = $precio * (1+ floatval($tarifa->margen)/100.0);
|
||||
$margen = $tarifa->margen;
|
||||
|
||||
if($tarifa->tarifa_precio_min > $precio){
|
||||
$precio = $precio-($precio * $margen/100.0);
|
||||
$margen = round(100.0 * (floatval($tarifa->tarifa_precio_min) - $precio) / floatval($tarifa->tarifa_precio_min), 0);
|
||||
$precio = floatval($tarifa->tarifa_precio_min);
|
||||
}
|
||||
|
||||
return [$precio, $margen];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user