From ac1f5611b91139b971482a6d9ccf50d01b4b15da Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Wed, 16 Oct 2024 13:45:08 +0700 Subject: [PATCH] feat: add payment remark --- src/controllers/05-quotation-payment-controller.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controllers/05-quotation-payment-controller.ts b/src/controllers/05-quotation-payment-controller.ts index 0bd9ef3..2b68ce3 100644 --- a/src/controllers/05-quotation-payment-controller.ts +++ b/src/controllers/05-quotation-payment-controller.ts @@ -24,7 +24,10 @@ export class QuotationPayment extends Controller { } @Post() - async addPayment(@Path() quotationId: string, @Body() body: { amount: number; date: Date }) { + async addPayment( + @Path() quotationId: string, + @Body() body: { amount: number; date: Date; remark: string }, + ) { const record = await prisma.quotation.findUnique({ where: { id: quotationId }, });