fix papel ot color

This commit is contained in:
amazuecos
2025-05-05 08:04:46 +02:00
parent 46176adc70
commit 8cbe5a7051

View File

@ -1642,22 +1642,22 @@ class ProductionService extends BaseService
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['default']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['default'];
$papel_code = $papel->code_ot; $papel_code = $papel->code_ot;
if ($papel_code) { if ($papel_code) {
if (strpos($papel_code, "BCLOF")) { if (str_contains($papel_code, "BCLOF")) {
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['blanco']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['blanco'];
} }
if (strpos($papel_code, "AH") && $papel->code == "OFF2") { if (str_contains($papel_code, "AH")) {
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['ahuesado']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['ahuesado'];
} }
if (strpos($papel_code, "MARF")) { if (str_contains($papel_code, "MARF")) {
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['marfil']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['marfil'];
} }
if (strpos($papel_code, "VOLAH")) { if (str_contains($papel_code, "VOLAH")) {
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['volumen_ahuesado']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['volumen_ahuesado'];
} }
if ($papel_code == "EM") { if (str_contains($papel_code, "EM")) {
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['estucado_mate']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['estucado_mate'];
} }
if ($papel_code == "CGE") { if (str_contains($papel->nombre, "CARTULINA")) {
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['cartulina']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['cartulina'];
} }
} }
@ -1675,22 +1675,22 @@ class ProductionService extends BaseService
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['default']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['default'];
$papel_code = $papel->code_ot; $papel_code = $papel->code_ot;
if ($papel_code) { if ($papel_code) {
if (strpos($papel_code, "BCLOF")) { if (str_contains($papel_code, "BCLOF")) {
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['blanco']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['blanco'];
} }
if (strpos($papel_code, "AH") && $papel->code == "OFF2") { if (str_contains($papel_code, "AH")) {
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['ahuesado']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['ahuesado'];
} }
if (strpos($papel_code, "MARF")) { if (str_contains($papel_code, "MARF")) {
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['marfil']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['marfil'];
} }
if (strpos($papel_code, "VOLAH")) { if (str_contains($papel_code, "VOLAH")) {
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['volumen_ahuesado']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['volumen_ahuesado'];
} }
if ($papel_code == "EM") { if (str_contains($papel_code, "EM")) {
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['estucado_mate']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['estucado_mate'];
} }
if ($papel_code == "CGE") { if (str_contains($papel->nombre, "CARTULINA")) {
$color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['cartulina']; $color = $this->ordenTrabajoConfig->OT_PAPEL_COLOR['cartulina'];
} }
} }