update entity realization recap

This commit is contained in:
fadlydev
2025-01-10 13:07:29 +07:00
parent f6b518aea1
commit d93d574f6d

View File

@ -7,10 +7,12 @@ import {
DeleteDateColumn,
ManyToOne,
JoinColumn,
OneToMany,
} from 'typeorm';
import { Department } from './department';
import { User } from './users';
import { AssetRealization } from './asset_realizations';
@Entity('asset_realization_recaps')
export class AssetRealizationRecap {
@ -63,6 +65,23 @@ export class AssetRealizationRecap {
})
created_by: string;
@OneToMany(() => AssetRealization, (realization) => realization.id)
assetRealizations: AssetRealization[];
@Column({
nullable: true,
type: 'float',
})
total_quantity_discrepancy: number;
@Column({
nullable: true,
type: 'decimal',
precision: 14,
scale: 2,
})
total_payment_discrepancy: number;
@Column({
nullable: true,
type: 'text',