Added rate_idr column to AssetRequestOrder and AssetRequestOrderGood entities

This commit is contained in:
fro1991
2025-03-19 18:12:48 +07:00
parent fbf36bbc82
commit a99f3c58c7
2 changed files with 11 additions and 6 deletions

View File

@ -38,14 +38,16 @@ export class AssetRequestOrder {
type: string; type: string;
@Column({ @Column({
type: 'date', type: 'date', nullable: true,
nullable: true,
}) })
request_at: Date; request_at: Date;
@Column({ type: 'text', nullable: true }) @Column({ type: 'text', nullable: true })
description: string; description: string;
@Column({ type: 'float8', nullable: false, default: 0 })
rate_idr: number;
@Column({ type: 'int2' }) @Column({ type: 'int2' })
quantity: number; quantity: number;
@ -53,13 +55,10 @@ export class AssetRequestOrder {
sub_total: number; sub_total: number;
@Column({ @Column({
type: 'float8', type: 'float8', nullable: false, default: 0
nullable: false,
default: 0
}) })
discount: number; discount: number;
@Column({ type: 'int2', nullable: true }) @Column({ type: 'int2', nullable: true })
tax_percent: number; tax_percent: number;
@ -69,6 +68,9 @@ export class AssetRequestOrder {
@Column({ type: 'float8' }) @Column({ type: 'float8' })
total: number; total: number;
@Column({ nullable: true, length: 4096 })
file: string;
@Column({ type: 'varchar', length: 50, default: 'pending' }) @Column({ type: 'varchar', length: 50, default: 'pending' })
status: string; status: string;

View File

@ -22,6 +22,9 @@ export class AssetRequestOrderGood {
@JoinTable() @JoinTable()
good: AssetGood; good: AssetGood;
@Column({ type: 'float8', nullable: false, default: 0 })
rate_idr: number;
@Column({ type: 'int' }) @Column({ type: 'int' })
quantity: number; quantity: number;