This commit is contained in:
Narul Hidayah
2026-02-03 11:18:20 +07:00
parent e57d3f84d7
commit 362836cdfc
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
import { Entity, PrimaryColumn, ManyToOne, JoinColumn } from "typeorm";
import { HrmsEmployee } from "../hrms/hrms_employee";
/**
* Single-row config for CPV default signatories.
* Used when creating CPV to auto-fill: AUTORIZADOR DA AGENCIA, CERTIFICADO DA AGENCIA, AUTORIZADOR DO TESOURO.
*/
@Entity("finance_cpv_config", { schema: "finances" })
export class FinanceCpvConfig {
@PrimaryColumn({ length: 64, default: "default" })
id: string;
@ManyToOne(() => HrmsEmployee, { onDelete: "NO ACTION", nullable: true })
@JoinColumn()
agency_authorizer: HrmsEmployee;
@ManyToOne(() => HrmsEmployee, { onDelete: "NO ACTION", nullable: true })
@JoinColumn()
agency_certifier: HrmsEmployee;
@ManyToOne(() => HrmsEmployee, { onDelete: "NO ACTION", nullable: true })
@JoinColumn()
treasury_authorizer: HrmsEmployee;
}

View File

@ -12,6 +12,7 @@ export * from "../entity/finance/finance_plan_items";
export * from "../entity/finance/finance_purchase_requests";
export * from "../entity/finance/finance_purchase_request_items";
export * from "../entity/finance/finance_cpvs";
export * from "../entity/finance/finance_cpv_config";
export * from "../entity/finance/finance_checklist_payment";
export * from "../entity/finance/finance_checklist_payment_item";
export * from "../entity/finance/finance_checklist_payment_approval";