feat: add report preset management API
- Implemented CRUD operations for report presets in reportPresetController. - Added routes for listing, creating, updating, and deleting report presets. - Ensured authentication is required for all preset operations. - Enhanced MaterialData interface to include optional width, height, and thickness properties.
This commit is contained in:
@@ -1464,7 +1464,8 @@ class NumberingRuleService {
|
||||
case "sequence": {
|
||||
const length = autoConfig.sequenceLength || 3;
|
||||
const startFrom = autoConfig.startFrom || 1;
|
||||
const nextSequence = baseSeq + startFrom;
|
||||
// 순수 max+1: 테이블에 max가 있으면 max+1, 없으면 startFrom
|
||||
const nextSequence = baseSeq > 0 ? baseSeq + 1 : startFrom;
|
||||
return String(nextSequence).padStart(length, "0");
|
||||
}
|
||||
|
||||
@@ -1606,7 +1607,8 @@ class NumberingRuleService {
|
||||
case "sequence": {
|
||||
const length = autoConfig.sequenceLength || 3;
|
||||
const startFrom = autoConfig.startFrom || 1;
|
||||
const actualSequence = allocatedSequence + startFrom - 1;
|
||||
// allocatedSequence는 이미 max+1 형태. 테이블이 비어 있을 때만 startFrom 적용
|
||||
const actualSequence = allocatedSequence > 1 ? allocatedSequence : startFrom;
|
||||
return String(actualSequence).padStart(length, "0");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user