feat: update quatation status if add worker after complete
This commit is contained in:
parent
077f0da74c
commit
5ca704f5ce
1 changed files with 1 additions and 0 deletions
|
|
@ -941,6 +941,7 @@ export class QuotationActionController extends Controller {
|
||||||
await tx.quotation.update({
|
await tx.quotation.update({
|
||||||
where: { id: quotationId },
|
where: { id: quotationId },
|
||||||
data: {
|
data: {
|
||||||
|
quotationStatus: QuotationStatus.PaymentSuccess, // NOTE: change back if already complete or canceled
|
||||||
worker: {
|
worker: {
|
||||||
createMany: {
|
createMany: {
|
||||||
data: body
|
data: body
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue