diff --git a/modules/customer-invoices/src/api/infrastructure/proformas/persistence/sequelize/repositories/proforma.repository.ts b/modules/customer-invoices/src/api/infrastructure/proformas/persistence/sequelize/repositories/proforma.repository.ts index 17e5e6c4..1f7f0538 100644 --- a/modules/customer-invoices/src/api/infrastructure/proformas/persistence/sequelize/repositories/proforma.repository.ts +++ b/modules/customer-invoices/src/api/infrastructure/proformas/persistence/sequelize/repositories/proforma.repository.ts @@ -153,6 +153,7 @@ export class ProformaRepository where: { id: id.toString(), company_id: companyId.toString(), + is_proforma: true, ...(options.where ?? {}), }, transaction, @@ -277,7 +278,7 @@ export class ProformaRepository where: { ...(options.where ?? {}), id: id.toString(), - is_proforma: false, + is_proforma: true, company_id: companyId.toString(), }, order: [