mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
fix filter ferro
This commit is contained in:
@ -242,7 +242,7 @@ class Ordentrabajo extends BaseController
|
|||||||
{
|
{
|
||||||
$logo = config(LogoImpresion::class);
|
$logo = config(LogoImpresion::class);
|
||||||
|
|
||||||
$q = $this->otModel->getDatatableQuery()->where("ferro_ok_at", null);
|
$q = $this->otModel->getDatatableQuery()->where('presupuestos.ferro',1)->where("ferro_ok_at", null);
|
||||||
// return $this->response->setJSON($q->get()->getResultArray());
|
// return $this->response->setJSON($q->get()->getResultArray());
|
||||||
return DataTable::of($q)
|
return DataTable::of($q)
|
||||||
->add("logo", fn($q) => ["logo" => site_url($logo->get_logo_path($q->presupuesto_linea_tipo)), "imposicion" => $q->imposicion_name, "color" => $this->produccionService->init($q->id)->getOtColorStatus()])
|
->add("logo", fn($q) => ["logo" => site_url($logo->get_logo_path($q->presupuesto_linea_tipo)), "imposicion" => $q->imposicion_name, "color" => $this->produccionService->init($q->id)->getOtColorStatus()])
|
||||||
@ -257,7 +257,7 @@ class Ordentrabajo extends BaseController
|
|||||||
{
|
{
|
||||||
$logo = config(LogoImpresion::class);
|
$logo = config(LogoImpresion::class);
|
||||||
|
|
||||||
$q = $this->otModel->getDatatableQuery()->where("ferro_ok_at is NOT NULL", NULL, FALSE);
|
$q = $this->otModel->getDatatableQuery()->where('presupuestos.ferro',1)->where("ferro_ok_at is NOT NULL", NULL, FALSE);
|
||||||
// return $this->response->setJSON($q->get()->getResultArray());
|
// return $this->response->setJSON($q->get()->getResultArray());
|
||||||
return DataTable::of($q)
|
return DataTable::of($q)
|
||||||
->add("logo", fn($q) => ["logo" => site_url($logo->get_logo_path($q->presupuesto_linea_tipo)), "imposicion" => $q->imposicion_name, "color" => $this->produccionService->init($q->id)->getOtColorStatus()])
|
->add("logo", fn($q) => ["logo" => site_url($logo->get_logo_path($q->presupuesto_linea_tipo)), "imposicion" => $q->imposicion_name, "color" => $this->produccionService->init($q->id)->getOtColorStatus()])
|
||||||
|
|||||||
Reference in New Issue
Block a user