feat: quotation code running no reset at month
This commit is contained in:
parent
e7c29d20e0
commit
ed8dc0136b
1 changed files with 2 additions and 2 deletions
|
|
@ -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 } },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue