update purchase invoice

This commit is contained in:
fro1991
2025-03-11 20:07:35 +07:00
parent 7720cfa0f9
commit 2ddc3c6da2

View File

@ -32,7 +32,7 @@ export class AssetPurchaseInvoice {
invoice_at: Date; invoice_at: Date;
@Column({ nullable: false }) @Column({ nullable: false })
received_at: Date; receive_at: Date;
@Column({ nullable: false }) @Column({ nullable: false })
due_at: Date; due_at: Date;
@ -41,7 +41,7 @@ export class AssetPurchaseInvoice {
type: 'float8', type: 'float8',
nullable: false, nullable: false,
}) })
amount: number; sub_total: number;
@Column({ @Column({
type: 'float8', type: 'float8',
@ -49,11 +49,17 @@ export class AssetPurchaseInvoice {
}) })
discount: number; discount: number;
@Column({
type: 'int2',
nullable: false,
})
tax_percent: number;
@Column({ @Column({
type: 'float8', type: 'float8',
nullable: false, nullable: false,
}) })
tax: number; tax_amount: number;
@Column({ @Column({
type: 'float8', type: 'float8',