From f6b518aea175b9106bdddc00167eb37eefdc80e3 Mon Sep 17 00:00:00 2001 From: fadlydev Date: Fri, 10 Jan 2025 13:05:05 +0700 Subject: [PATCH] update field discrepancy price and quantity --- src/entity/asset_realizations.ts | 34 +++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/src/entity/asset_realizations.ts b/src/entity/asset_realizations.ts index ffe9487..b39c49b 100644 --- a/src/entity/asset_realizations.ts +++ b/src/entity/asset_realizations.ts @@ -28,11 +28,11 @@ export class AssetRealization { nullable: false, type: 'date', }) - realization_date: Date; + realization_date: Date; @ManyToOne(() => Goods, (goods) => goods.id, { nullable: false }) @JoinColumn({ name: 'goods_id' }) - goods: Goods; + goods: Goods; @Column({ nullable: false, @@ -70,11 +70,35 @@ export class AssetRealization { nullable: false, length: 64, }) - status: string; + status: string; + + @Column({ + nullable: true, + type: 'float', + }) + quantity_discrepancy: number; + + @Column({ + nullable: true, + type: 'float', + }) + payment_discrepancy: number; + + @Column({ + nullable: true, + type: 'text', + }) + discrepancy_remarks: string; + + @Column({ + nullable: true, + type: 'text', + }) + discrepancy_images: string; @Column() @CreateDateColumn() - created_at: Date; + created_at: Date; @Column({ nullable: true }) @UpdateDateColumn() @@ -82,5 +106,5 @@ export class AssetRealization { @Column({ nullable: true }) @DeleteDateColumn() - deleted_at: Date; + deleted_at: Date; }