update field discrepancy price and quantity
This commit is contained in:
@ -28,11 +28,11 @@ export class AssetRealization {
|
|||||||
nullable: false,
|
nullable: false,
|
||||||
type: 'date',
|
type: 'date',
|
||||||
})
|
})
|
||||||
realization_date: Date;
|
realization_date: Date;
|
||||||
|
|
||||||
@ManyToOne(() => Goods, (goods) => goods.id, { nullable: false })
|
@ManyToOne(() => Goods, (goods) => goods.id, { nullable: false })
|
||||||
@JoinColumn({ name: 'goods_id' })
|
@JoinColumn({ name: 'goods_id' })
|
||||||
goods: Goods;
|
goods: Goods;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
@ -70,11 +70,35 @@ export class AssetRealization {
|
|||||||
nullable: false,
|
nullable: false,
|
||||||
length: 64,
|
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()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
@UpdateDateColumn()
|
@UpdateDateColumn()
|
||||||
@ -82,5 +106,5 @@ export class AssetRealization {
|
|||||||
|
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
@DeleteDateColumn()
|
@DeleteDateColumn()
|
||||||
deleted_at: Date;
|
deleted_at: Date;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user