This commit is contained in:
fro1991
2025-10-29 23:57:37 +07:00
parent 6514da2f1a
commit 1a83737f5a

View File

@ -8,6 +8,7 @@ import { TrxCustomerCost } from "./trx_customer_costs";
import { TrxCustomerUser } from "./trx_customer_users";
import { TrxTransactionPosition, TrxTransactionStatus, TrxTransactionType } from "../types/trx";
import { TrxVerification } from "./trx_verifications";
import { TrxPurposes } from "./trx_purposes";
@Entity("trx_transactions", { schema: "trx" })
export class TrxTransaction {
@ -121,15 +122,6 @@ export class TrxTransaction {
})
settlement_file: string;
@Column({
nullable: true,
length: 256,
})
mt103_file: string;
@Column({ nullable: true, length: 256 })
teller_reference_number: string;
@Column({ nullable: true, length: 256 })
settlemented_by: string;
@ -158,6 +150,22 @@ export class TrxTransaction {
})
remark: string;
@Column({
nullable: true,
length: 256,
})
mt103_file: string;
@Column({ nullable: true, length: 256 })
teller_reference_number: string;
@ManyToOne(() => TrxPurposes, { onDelete: "NO ACTION", nullable: true })
@JoinColumn()
purpose: TrxPurposes;
@Column({ nullable: true, length: 256 })
purpose_label: string;
@Column()
@CreateDateColumn()
created_at: Date;