update entity realization recap
This commit is contained in:
@ -7,10 +7,12 @@ import {
|
|||||||
DeleteDateColumn,
|
DeleteDateColumn,
|
||||||
ManyToOne,
|
ManyToOne,
|
||||||
JoinColumn,
|
JoinColumn,
|
||||||
|
OneToMany,
|
||||||
} from 'typeorm';
|
} from 'typeorm';
|
||||||
|
|
||||||
import { Department } from './department';
|
import { Department } from './department';
|
||||||
import { User } from './users';
|
import { User } from './users';
|
||||||
|
import { AssetRealization } from './asset_realizations';
|
||||||
|
|
||||||
@Entity('asset_realization_recaps')
|
@Entity('asset_realization_recaps')
|
||||||
export class AssetRealizationRecap {
|
export class AssetRealizationRecap {
|
||||||
@ -63,6 +65,23 @@ export class AssetRealizationRecap {
|
|||||||
})
|
})
|
||||||
created_by: string;
|
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({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
|||||||
Reference in New Issue
Block a user