chore: implenet the external invoice

This commit is contained in:
mahyargdz
2025-07-14 10:24:58 +03:30
parent 5fe82bb661
commit 11b8164c28
13 changed files with 241 additions and 30 deletions
@@ -52,6 +52,14 @@ export class Invoice extends BaseEntity {
//---------------------------------------------
@Column({ type: "boolean", default: false })
isExternal: boolean;
@Column({ type: "varchar", length: 250, nullable: true })
externalBusinessId: string | null;
//---------------------------------------------
@OneToMany(() => InvoiceItem, (invoiceItem) => invoiceItem.invoice, { cascade: true })
items: InvoiceItem[];