fix: status change not work as expected
This commit is contained in:
parent
c8146ae8f1
commit
e33e0bc9f7
1 changed files with 4 additions and 0 deletions
|
|
@ -145,6 +145,10 @@ export class QuotationPayment extends Controller {
|
|||
},
|
||||
});
|
||||
|
||||
if (body.paymentStatus === "PaymentSuccess") {
|
||||
paymentSum._sum.amount = (paymentSum._sum.amount || 0) + payment.amount;
|
||||
}
|
||||
|
||||
await tx.quotation.update({
|
||||
where: { id: quotation.id },
|
||||
data: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue