add table mutation gl and column ledget on table log_pull also log pull type MUTATION_GL
This commit is contained in:
@ -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
65
src/entity/mutation_gl.ts
Normal 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;
|
||||||
|
}
|
||||||
@ -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";
|
||||||
|
|||||||
@ -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 = {
|
||||||
|
|||||||
Reference in New Issue
Block a user