diff --git a/prisma/schema.prisma b/prisma/schema.prisma index afb0392..218e903 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -1606,6 +1606,7 @@ model CreditNote { value Float @default(0) reason String? detail String? + remark String? paybackType CreditNotePaybackType? paybackBank String? diff --git a/src/controllers/08-credit-note-controller.ts b/src/controllers/08-credit-note-controller.ts index ad17bb7..ad29da1 100644 --- a/src/controllers/08-credit-note-controller.ts +++ b/src/controllers/08-credit-note-controller.ts @@ -64,6 +64,7 @@ type CreditNoteCreate = { quotationId: string; reason?: string; detail?: string; + remark?: string; paybackType?: CreditNotePaybackType; paybackBank?: string; paybackAccount?: string; @@ -74,6 +75,7 @@ type CreditNoteUpdate = { quotationId: string; reason?: string; detail?: string; + remark?: string; paybackType?: CreditNotePaybackType; paybackBank?: string; paybackAccount?: string; @@ -363,6 +365,7 @@ export class CreditNoteController extends Controller { data: { reason: body.reason, detail: body.detail, + remark: body.remark, paybackType: body.paybackType, paybackBank: body.paybackBank, paybackAccount: body.paybackAccount, @@ -479,6 +482,7 @@ export class CreditNoteController extends Controller { data: { reason: body.reason, detail: body.detail, + remark: body.remark, paybackType: body.paybackType, paybackBank: body.paybackBank, paybackAccount: body.paybackAccount,