cambiado ael añadir envios

This commit is contained in:
2025-04-24 23:44:07 +02:00
parent f16654f4ad
commit 5c68334e9a
8 changed files with 200 additions and 109 deletions

View File

@ -259,13 +259,13 @@ class ProductionService extends BaseService
{
$fecha_encuadernado = Time::now()->addDays(2)->format("Y-m-d");
$fecha_entrega_real = Time::now()->addDays(5)->format("Y-m-d");
$fecha_embalaje_at = Time::now()->addDays(4)->format("Y-m-d");
//$fecha_embalaje_at = Time::now()->addDays(4)->format("Y-m-d");
$data = [
"orden_trabajo_id" => $this->ot->id,
"fecha_encuadernado_at" => $fecha_encuadernado,
"fecha_entrega_real_at" => $fecha_entrega_real,
"fecha_impresion_at" => Time::now()->format("Y-m-d"),
"embalaje_at" => $fecha_embalaje_at,
//"embalaje_at" => $fecha_embalaje_at,
"fecha_entrega_externo" => $this->pedido->fecha_entrega_externo,
];
$otDateId = $this->otDate->insert($data);