From c69ac0db5138cf46506fed6312803b6170b97875 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:02:00 +0700 Subject: [PATCH] feat: also return customer --- src/controllers/04-invoice-controller.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/controllers/04-invoice-controller.ts b/src/controllers/04-invoice-controller.ts index b4ebea3..f747569 100644 --- a/src/controllers/04-invoice-controller.ts +++ b/src/controllers/04-invoice-controller.ts @@ -63,7 +63,13 @@ export class InvoiceController extends Controller { where, include: { installments: true, - quotation: true, + quotation: { + include: { + customerBranch: { + include: { customer: true }, + }, + }, + }, createdBy: true, }, orderBy: { createdAt: "asc" },