From 4d711ab2634d75879303d90fa05b7ccc833a6d73 Mon Sep 17 00:00:00 2001 From: fro1991 Date: Tue, 11 Mar 2025 21:10:51 +0700 Subject: [PATCH] update asset --- src/entity/asset_purchase_invoice.ts | 29 +++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/entity/asset_purchase_invoice.ts b/src/entity/asset_purchase_invoice.ts index c7ade23..3ccab58 100644 --- a/src/entity/asset_purchase_invoice.ts +++ b/src/entity/asset_purchase_invoice.ts @@ -76,6 +76,30 @@ export class AssetPurchaseInvoice { }) file: string; + @Column({ type: 'boolean', nullable: true }) + is_finance_approved: boolean; + + @Column({ type: 'varchar', length: 100, nullable: true }) + finance_approved_by: string; + + @Column({ nullable: true }) + finance_approved_at: Date; + + @Column({ type: 'text', nullable: true }) + finance_approved_note: string; + + @Column({ type: 'boolean', nullable: true }) + is_gm_approved: boolean; + + @Column({ type: 'varchar', length: 100, nullable: true }) + gm_approved_by: string; + + @Column({ nullable: true }) + gm_approved_at: Date; + + @Column({ type: 'text', nullable: true }) + gm_approved_note: string; + @Column({ nullable: true }) payment_at: Date; @@ -83,7 +107,7 @@ export class AssetPurchaseInvoice { nullable: true, length: 4096 }) - payment_proof: string; + payment_file: string; @Column({ nullable: true, @@ -91,6 +115,9 @@ export class AssetPurchaseInvoice { }) payment_by: string; + @Column({ type: 'text', nullable: true }) + payment_note: string; + @Column() @CreateDateColumn() created_at: Date;