From 76b4c823c7b4cac5eb0109aef78499c3390ce43b Mon Sep 17 00:00:00 2001 From: Rizki Date: Tue, 3 Feb 2026 15:19:11 +0700 Subject: [PATCH] upd --- src/entity/procurement/procurement_work_orders.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/entity/procurement/procurement_work_orders.ts b/src/entity/procurement/procurement_work_orders.ts index c75b577..a12d599 100644 --- a/src/entity/procurement/procurement_work_orders.ts +++ b/src/entity/procurement/procurement_work_orders.ts @@ -2,6 +2,7 @@ import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateCol import { ProcurementTender } from "./procurement_tender"; import { ProcurementWorkOrderStatus } from "../../types/procurement"; import { ProcurementWorkOrderCopy } from "./procurement_work_order_copies"; +import { HrmsEmployee } from "../hrms/hrms_employee"; @Entity("procurement_work_orders", { schema: "procurement" }) export class ProcurementWorkOrder { @@ -40,8 +41,9 @@ export class ProcurementWorkOrder { // SIGNATURE // ========================= - @Column({ length: 256, nullable: true }) - signer_name: string; // ENG. JOSÉ ANTÓNÍO SANCHES + @ManyToOne(() => HrmsEmployee, { nullable: true }) + @JoinColumn() + signer: HrmsEmployee; // ENG. JOSÉ ANTÓNÍO SANCHES @Column({ length: 256, nullable: true }) signer_position: string; // DIRECTOR U-APROVISIONAMENTO ANATL, E.P.