From 527de34377c0a7c5b188eae3ef68a138f9114b4c Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 15 Jan 2025 09:07:00 +0700 Subject: [PATCH] feat: response customer along with receipt --- src/controllers/04-receipt-controller.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/controllers/04-receipt-controller.ts b/src/controllers/04-receipt-controller.ts index 42dbc55..c66b5de 100644 --- a/src/controllers/04-receipt-controller.ts +++ b/src/controllers/04-receipt-controller.ts @@ -38,7 +38,13 @@ export class ReceiptController extends Controller { invoice: { include: { installments: true, - quotation: true, + quotation: { + include: { + customerBranch: { + include: { customer: true }, + }, + }, + }, createdBy: true, }, },