mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
lp en edit terminadas
This commit is contained in:
@ -17,11 +17,7 @@ class Test extends BaseController
|
||||
|
||||
public function index()
|
||||
{
|
||||
$time = '99:59:59';
|
||||
|
||||
$time_parts = explode(":", $time);
|
||||
$seconds = $time_parts[2] + $time_parts[1] * 60 + $time_parts[0] * 3600;
|
||||
echo "Time in seconds: " . $seconds;
|
||||
$this->getLP();
|
||||
}
|
||||
|
||||
public function timeToSeconds(){
|
||||
@ -35,8 +31,15 @@ class Test extends BaseController
|
||||
public function getLP(){
|
||||
$lp_model = model('App\Models\Presupuestos\PresupuestoLineaModel');
|
||||
$data = $lp_model->getLineasPresupuesto(8);
|
||||
foreach($data as $linea)
|
||||
var_dump($linea->tipo);
|
||||
$papel_imp_model = model('App\Models\Configuracion\PapelImpresionModel');
|
||||
$maquina_model = model('App\Models\Configuracion\MaquinaModel');
|
||||
foreach($data as $linea){
|
||||
$linea->papel_impresion_id = $papel_imp_model->getValue_Nombre($linea->papel_impresion_id)[0];
|
||||
$linea->maquina_id = $maquina_model->getValue_Nombre($linea->maquina_id)[0];
|
||||
var_dump($linea->papel_impresion_id);
|
||||
var_dump($linea->maquina_id);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function createLP(){
|
||||
|
||||
Reference in New Issue
Block a user