arreglado bug. Ahora se ordenan las filas de lp

This commit is contained in:
2024-01-24 18:14:50 +01:00
parent 07c1b8bc86
commit 32f51e6718
5 changed files with 140 additions and 48 deletions

View File

@ -17,12 +17,18 @@ class Test extends BaseController
public function index()
{
/*
$maquina_id = 114;
echo '<pre>';
$maquina_id = 63;
$maquina_model = model('App\Models\Configuracion\MaquinaModel');
$maquina = $maquina_model->find($maquina_id);
$formas = PresupuestoService::getNumFormasPlana('interior', $maquina, 150, 210, true);
$formas = PresupuestoService::getNumFormasPlana('cubierta', $maquina, 493.2, 210, true);
var_dump($formas);
echo '</pre>';
/*
$linea = PresupuestoService::getCostesLinea('interior', $datosPedido, $maquina, $papel, $opciones_papel, $tarifa);
@ -30,14 +36,14 @@ class Test extends BaseController
var_dump($formas);
echo '</pre>';*/
echo '</pre>';
echo '<pre>';
$tarifa_value = $this->get_tarifa_enc(18,150,22,150,210);
var_dump($tarifa_value[0]);
$model = model('App\Models\Presupuestos\PresupuestoEncuadernacionesModel');
$result = $model->calcularTarifa($tarifa_value[0], 150, true);
var_dump($result);
echo '</pre>';
echo '</pre>';*/
}
private function asignar_tarifa_defecto_todos_usuarios()