feat: custom installments (#4)

* feat: add database schema

* feat: add custom installments payload

* chore: migrations
This commit is contained in:
Methapon Metanipat 2024-10-31 09:43:50 +07:00 committed by GitHub
parent 56de83a181
commit 9a81f1c9ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View file

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "QuotationPaySplit" ADD COLUMN "name" TEXT;

View file

@ -1195,6 +1195,7 @@ model QuotationPaySplit {
id String @id @default(cuid())
no Int
name String?
amount Float
quotation Quotation? @relation(fields: [quotationId], references: [id], onDelete: Cascade)

View file

@ -40,7 +40,7 @@ type QuotationCreate = {
payCondition: PayCondition;
paySplitCount?: number;
paySplit?: { amount: number }[];
paySplit?: { name?: string; amount: number }[];
payBillDate?: Date;
@ -98,7 +98,7 @@ type QuotationUpdate = {
payCondition?: PayCondition;
paySplitCount?: number;
paySplit?: { amount: number }[];
paySplit?: { name?: string; amount: number }[];
payBillDate?: Date;