diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index b16957f..c461758 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -365,10 +365,10 @@ export class QuotationController extends Controller { const lastQuotation = await tx.runningNo.upsert({ where: { - key: `QUOTATION_${currentYear.toString().padStart(2, "0")}${currentMonth.toString().padStart(2, "0")}${currentDate.toString().padStart(2, "0")}`, + key: `QUOTATION_${currentYear.toString().padStart(2, "0")}${currentMonth.toString().padStart(2, "0")}`, }, create: { - key: `QUOTATION_${currentYear.toString().padStart(2, "0")}${currentMonth.toString().padStart(2, "0")}${currentDate.toString().padStart(2, "0")}`, + key: `QUOTATION_${currentYear.toString().padStart(2, "0")}${currentMonth.toString().padStart(2, "0")}`, value: 1, }, update: { value: { increment: 1 } },