mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
button imprimir code safekat
This commit is contained in:
@ -443,6 +443,15 @@ class Ordentrabajo extends BaseController
|
||||
$color = $this->produccionService->init($orden_trabajo_id)->getOtColorStatus();
|
||||
return $this->response->setJSON(["color" => $color]);
|
||||
}
|
||||
public function imprimir_codigo_safekat(int $orden_trabajo_id)
|
||||
{
|
||||
helper('file');
|
||||
$barcode = $this->produccionService->init($orden_trabajo_id)->getFileBarCode();
|
||||
return $this->response
|
||||
->setHeader('Content-Type', 'image/png')
|
||||
->setHeader('Content-Disposition', "attachment; filename=CodigoBarrasOT_{$orden_trabajo_id}.png")
|
||||
->setBody($barcode);
|
||||
}
|
||||
public function maquinista_maquinas_view(){}
|
||||
public function maquinista_colas_view(){}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user