diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 440a7e0..bdaba92 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -958,7 +958,9 @@ export class QuotationActionController extends Controller { ? { create: body .filter( - (lhs) => !quotation.worker.find((rhs) => rhs.employeeId === lhs.workerId), + (lhs) => + !quotation.worker.find((rhs) => rhs.employeeId === lhs.workerId) && + lhs.productServiceId.length > 0, ) .map((v, i) => ({ code: `TR${year}${month}${(lastRequest.value - quotation._count.worker + i + 1).toString().padStart(6, "0")}`,