This commit is contained in:
David Arranz 2026-03-23 15:36:11 +01:00
parent 132408ac23
commit 91212e8e90

View File

@ -153,6 +153,7 @@ export class ProformaRepository
where: { where: {
id: id.toString(), id: id.toString(),
company_id: companyId.toString(), company_id: companyId.toString(),
is_proforma: true,
...(options.where ?? {}), ...(options.where ?? {}),
}, },
transaction, transaction,
@ -277,7 +278,7 @@ export class ProformaRepository
where: { where: {
...(options.where ?? {}), ...(options.where ?? {}),
id: id.toString(), id: id.toString(),
is_proforma: false, is_proforma: true,
company_id: companyId.toString(), company_id: companyId.toString(),
}, },
order: [ order: [