feat: update quotation payment data
This commit is contained in:
parent
199dba850a
commit
4e5825c236
1 changed files with 14 additions and 0 deletions
|
|
@ -691,6 +691,20 @@ export class QuotationController extends Controller {
|
|||
data: {
|
||||
...rest,
|
||||
...price,
|
||||
quotationPaymentData:
|
||||
price && record.quotationStatus === "PaymentPending"
|
||||
? {
|
||||
create: rest.paySplit?.map((v) => ({
|
||||
paymentStatus: "PaymentWait",
|
||||
amount: v.amount,
|
||||
date: new Date(),
|
||||
})) || {
|
||||
paymentStatus: "PaymentWait",
|
||||
amount: price.finalPrice,
|
||||
date: new Date(),
|
||||
},
|
||||
}
|
||||
: undefined,
|
||||
statusOrder: +(rest.status === "INACTIVE"),
|
||||
worker:
|
||||
sortedEmployeeId.length > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue