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

View File

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