fix: Improve numbering rule handling and item routing functionality

- Added temporary debug response in `numberingRuleController` for better troubleshooting.
- Refactored SQL queries in `NumberingRuleService` to enhance parameter handling and improve clarity.
- Updated `ItemInfoPage` to correctly handle manual input values for user-generated codes.
- Implemented sorting logic in `ItemRoutingTab` to prioritize default routing versions and added functionality to set a version as default.

These changes aim to enhance the reliability and user experience in managing numbering rules and item routing processes.
This commit is contained in:
kjs
2026-04-09 12:18:26 +09:00
parent 51eddc6d84
commit a9d2df48bf
16 changed files with 309 additions and 25 deletions

View File

@@ -323,6 +323,9 @@ router.post(
formData,
manualInputValue
);
// TODO: 디버그용 임시 응답 (나중에 제거)
const { getPool } = require("../database/db");
const dbPool = getPool();
return res.json({ success: true, data: { generatedCode: previewCode } });
} catch (error: any) {
logger.error("코드 미리보기 실패", { error: error.message });