fix: fallback for one time payment
This commit is contained in:
parent
4238287e96
commit
199dba850a
1 changed files with 5 additions and 1 deletions
|
|
@ -453,7 +453,11 @@ export class QuotationController extends Controller {
|
||||||
paymentStatus: "PaymentWait",
|
paymentStatus: "PaymentWait",
|
||||||
amount: v.amount,
|
amount: v.amount,
|
||||||
date: new Date(),
|
date: new Date(),
|
||||||
})),
|
})) || {
|
||||||
|
paymentStatus: "PaymentWait",
|
||||||
|
amount: price.finalPrice,
|
||||||
|
date: new Date(),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
statusOrder: +(rest.status === "INACTIVE"),
|
statusOrder: +(rest.status === "INACTIVE"),
|
||||||
code: `${currentYear.toString().padStart(2, "0")}${currentMonth.toString().padStart(2, "0")}${currentDate.toString().padStart(2, "0")}${lastQuotation.value.toString().padStart(4, "0")}`,
|
code: `${currentYear.toString().padStart(2, "0")}${currentMonth.toString().padStart(2, "0")}${currentDate.toString().padStart(2, "0")}${lastQuotation.value.toString().padStart(4, "0")}`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue