fix: customer status not change after used

This commit is contained in:
Methapon2001 2025-09-17 09:51:35 +07:00
parent 6f1bca5234
commit 2c790de606

View file

@ -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: {