diff --git a/src/entity/asset_purchase_invoice.ts b/src/entity/asset_purchase_invoice.ts index 4101141..c7ade23 100644 --- a/src/entity/asset_purchase_invoice.ts +++ b/src/entity/asset_purchase_invoice.ts @@ -32,7 +32,7 @@ export class AssetPurchaseInvoice { invoice_at: Date; @Column({ nullable: false }) - received_at: Date; + receive_at: Date; @Column({ nullable: false }) due_at: Date; @@ -41,7 +41,7 @@ export class AssetPurchaseInvoice { type: 'float8', nullable: false, }) - amount: number; + sub_total: number; @Column({ type: 'float8', @@ -49,11 +49,17 @@ export class AssetPurchaseInvoice { }) discount: number; + @Column({ + type: 'int2', + nullable: false, + }) + tax_percent: number; + @Column({ type: 'float8', nullable: false, }) - tax: number; + tax_amount: number; @Column({ type: 'float8',