fix: customer status not change after used
This commit is contained in:
parent
6f1bca5234
commit
2c790de606
1 changed files with 14 additions and 0 deletions
|
|
@ -900,6 +900,20 @@ export class QuotationController extends Controller {
|
|||
}),
|
||||
]);
|
||||
|
||||
if (customerBranch) {
|
||||
await tx.customerBranch.update({
|
||||
where: { id: customerBranch.id },
|
||||
data: {
|
||||
customer: {
|
||||
update: {
|
||||
status: Status.ACTIVE,
|
||||
},
|
||||
},
|
||||
status: Status.ACTIVE,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
return await tx.quotation.update({
|
||||
include: {
|
||||
productServiceList: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue