update recap request submission
This commit is contained in:
@ -17,7 +17,7 @@ export class RequestSubmission {
|
|||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn('uuid')
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@ManyToOne(() => RequestOrder, (order) => order.id, { nullable: false })
|
@ManyToOne(() => RequestOrder, (order) => order.id, { nullable: true })
|
||||||
@JoinColumn({ name: 'request_order_id' })
|
@JoinColumn({ name: 'request_order_id' })
|
||||||
requestOrder: RequestOrder;
|
requestOrder: RequestOrder;
|
||||||
|
|
||||||
@ -52,6 +52,30 @@ export class RequestSubmission {
|
|||||||
})
|
})
|
||||||
status: string;
|
status: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 64,
|
||||||
|
})
|
||||||
|
finance_approval: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: 'date',
|
||||||
|
})
|
||||||
|
approval_date: Date;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: false,
|
||||||
|
type: 'varchar',
|
||||||
|
})
|
||||||
|
created_by: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: 'varchar',
|
||||||
|
})
|
||||||
|
updated_by: string;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|||||||
@ -56,6 +56,13 @@ export class SubmissionRecap {
|
|||||||
})
|
})
|
||||||
remarks: string;
|
remarks: string;
|
||||||
|
|
||||||
|
// Store multiple submissions IDs
|
||||||
|
@Column('uuid', { array: true, nullable: true })
|
||||||
|
submissions_ids: string[];
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
created_by: string;
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|||||||
Reference in New Issue
Block a user