mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
arreglado bug. Ahora se ordenan las filas de lp
This commit is contained in:
@ -503,7 +503,12 @@ class Cosidotapablanda extends \App\Controllers\GoBaseResourceController
|
||||
|
||||
$datosPedido->solapas = $reqData['solapas'];
|
||||
$datosPedido->solapas_ancho = $reqData['solapas_ancho'];
|
||||
$datosPedido->lomo = $reqData['lomo'];
|
||||
|
||||
if($type=='sobrecubierta')
|
||||
$datosPedido->lomo_cubierta = $reqData['lomo_cubierta'];
|
||||
|
||||
$datosPedido->anchoExteriores = PresupuestoService::getAnchoTotalExteriores($datosPedido);
|
||||
// Cubierta y sobrecubierta siempre color HQ
|
||||
$resourceData = $this->getCompIntData($type, $datosPedido, $papel_generico, $gramaje, $isColor, 1, $cliente_id);
|
||||
|
||||
|
||||
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user