add table mutation gl and column ledget on table log_pull also log pull type MUTATION_GL

This commit is contained in:
2025-12-04 16:09:02 +07:00
parent 827895b9f2
commit 775ac8ebe6
4 changed files with 74 additions and 1 deletions

View File

@ -43,6 +43,12 @@ export class LogPull {
}) })
teller_id: string; teller_id: string;
@Column({
nullable: true,
length: 64
})
ledger: string;
@Column({ @Column({
nullable: false, nullable: false,
default: false default: false

65
src/entity/mutation_gl.ts Normal file
View File

@ -0,0 +1,65 @@
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, JoinColumn, ManyToOne } from 'typeorm';
import { Branch } from './branchs';
@Entity('mutation_gl')
export class MutationGL {
@PrimaryGeneratedColumn('uuid')
id: string;
@Column({
nullable: false,
length: 64
})
reference_number: string;
@ManyToOne(() => Branch, { onDelete: "RESTRICT" })
@JoinColumn()
branch: Branch
@Column({
nullable: true,
})
position_datetime: Date;
@Column({
nullable: true,
length: 64
})
ledger: string;
@Column({
type: 'float8',
nullable: true,
})
amount_debit: number;
@Column({
type: 'float8',
nullable: true,
})
amount_credit: number;
@Column({
type: 'float8',
nullable: true,
})
amount_final: number;
@Column({
nullable: true,
length: 1000
})
description: string;
@Column()
@CreateDateColumn()
created_at: Date;
@Column()
@UpdateDateColumn()
updated_at: Date;
@Column({ nullable: true })
@DeleteDateColumn()
deleted_at: Date;
}

View File

@ -33,6 +33,7 @@ export * from "../entity/bpa_log";
export * from "../entity/bpa"; export * from "../entity/bpa";
export * from "../entity/application"; export * from "../entity/application";
export * from "../entity/teller_mutation"; export * from "../entity/teller_mutation";
export * from "../entity/mutation_gl";
export * from "../types/action"; export * from "../types/action";
export * from "../types/error"; export * from "../types/error";

View File

@ -4,7 +4,8 @@ export enum LogPullType {
"TRIAL_BALANCE_BRANCH" = "TRIAL_BALANCE_BRANCH", "TRIAL_BALANCE_BRANCH" = "TRIAL_BALANCE_BRANCH",
"TRIAL_BALANCE_KONSOLIDASI" = "TRIAL_BALANCE_KONSOLIDASI", "TRIAL_BALANCE_KONSOLIDASI" = "TRIAL_BALANCE_KONSOLIDASI",
"TRANSAKSI_CS" = "TRANSAKSI_CS", "TRANSAKSI_CS" = "TRANSAKSI_CS",
"TELLER_MUTATION" = "TELLER_MUTATION" "TELLER_MUTATION" = "TELLER_MUTATION",
"MUTATION_GL" = "MUTATION_GL"
}; };
export const TellerCode = { export const TellerCode = {