This commit is contained in:
lizandrogd
2026-01-19 23:34:01 -05:00
parent b47e83ff08
commit ab385649ca
2 changed files with 22 additions and 3 deletions
@@ -28,7 +28,8 @@ class PipelineOrdersWidget extends Widget
{
$this->ordersByState = [];
foreach (array_keys($this->states) as $s) {
$this->ordersByState[$s] = OrdenProduccion::where('estado', $s)
$this->ordersByState[$s] = OrdenProduccion::with(['tela', 'confeccions', 'tintorerias', 'procesosAcabado'])
->where('estado', $s)
->orderBy('fecha_entrega_estimada')
->limit(12)
->get();