update entity realization recap
This commit is contained in:
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user