feat: add payment remark

This commit is contained in:
Methapon Metanipat 2024-10-16 13:45:08 +07:00
parent 0ae9ea4ddf
commit ac1f5611b9

View file

@ -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 },
});