feat: add payment for split
This commit is contained in:
parent
ca6b1e74d0
commit
20b7e56a0d
4 changed files with 151 additions and 30 deletions
|
|
@ -1074,9 +1074,10 @@ model WorkProduct {
|
|||
|
||||
enum QuotationStatus {
|
||||
PaymentPending
|
||||
PaymentWait
|
||||
PaymentInProcess // For Installments / Split Payment
|
||||
PaymentSuccess
|
||||
ProcessComplete
|
||||
Canceled
|
||||
}
|
||||
|
||||
enum PayCondition {
|
||||
|
|
@ -1095,7 +1096,8 @@ model Quotation {
|
|||
status Status @default(CREATED)
|
||||
statusOrder Int @default(0)
|
||||
|
||||
quotationStatus QuotationStatus @default(PaymentWait)
|
||||
quotationStatus QuotationStatus @default(PaymentPending)
|
||||
quotationPaymentData QuotationPayment[]
|
||||
|
||||
code String
|
||||
|
||||
|
|
@ -1137,6 +1139,24 @@ model Quotation {
|
|||
updatedByUserId String?
|
||||
}
|
||||
|
||||
enum PaymentStatus {
|
||||
PaymentWait
|
||||
PaymentSuccess
|
||||
}
|
||||
|
||||
model QuotationPayment {
|
||||
id String @id @default(cuid())
|
||||
|
||||
paymentStatus PaymentStatus
|
||||
|
||||
date DateTime
|
||||
amount Float
|
||||
remark String?
|
||||
|
||||
quotation Quotation @relation(fields: [quotationId], references: [id])
|
||||
quotationId String
|
||||
}
|
||||
|
||||
model QuotationPaySplit {
|
||||
id String @id @default(cuid())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue