feat: add payment remark
This commit is contained in:
parent
0ae9ea4ddf
commit
ac1f5611b9
1 changed files with 4 additions and 1 deletions
|
|
@ -24,7 +24,10 @@ export class QuotationPayment extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Post()
|
@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({
|
const record = await prisma.quotation.findUnique({
|
||||||
where: { id: quotationId },
|
where: { id: quotationId },
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue