update
This commit is contained in:
@ -33,6 +33,15 @@ export class AssetPurchase {
|
||||
})
|
||||
quantity: number;
|
||||
|
||||
@Column({ type: 'float8', nullable: true })
|
||||
sub_total: number;
|
||||
|
||||
@Column({ type: 'int2', nullable: true })
|
||||
tax_percent: number;
|
||||
|
||||
@Column({ type: 'float8', nullable: true })
|
||||
tax_amount: number;
|
||||
|
||||
@Column({
|
||||
type: 'float8',
|
||||
nullable: false,
|
||||
|
||||
@ -10,6 +10,7 @@ import {
|
||||
JoinTable
|
||||
} from 'typeorm';
|
||||
import { AssetRequestOrderCategory } from './asset_request_order_category';
|
||||
import { AssetSupplier } from './asset_supplier';
|
||||
|
||||
@Entity('asset_request_orders')
|
||||
export class AssetRequestOrder {
|
||||
@ -26,6 +27,10 @@ export class AssetRequestOrder {
|
||||
@Column({ type: 'varchar', length: 255 })
|
||||
department_name: string;
|
||||
|
||||
@ManyToOne(() => AssetSupplier, { onDelete: 'NO ACTION', nullable: true })
|
||||
@JoinTable()
|
||||
supplier: AssetSupplier;
|
||||
|
||||
@Column({ type: 'varchar', length: 50, unique: true })
|
||||
code: string;
|
||||
|
||||
@ -44,6 +49,15 @@ export class AssetRequestOrder {
|
||||
@Column({ type: 'int2' })
|
||||
quantity: number;
|
||||
|
||||
@Column({ type: 'float8', nullable: true })
|
||||
sub_total: number;
|
||||
|
||||
@Column({ type: 'int2', nullable: true })
|
||||
tax_percent: number;
|
||||
|
||||
@Column({ type: 'float8', nullable: true })
|
||||
tax_amount: number;
|
||||
|
||||
@Column({ type: 'float8' })
|
||||
total: number;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user