summaryrefslogtreecommitdiff
path: root/components/ship-vendor-document/revision-validation.tsx
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-10-27 09:49:34 +0900
committerjoonhoekim <26rote@gmail.com>2025-10-27 09:49:34 +0900
commit65a68325658401dd8a90ea900c1542c17c63d7ce (patch)
tree49af55547359ac62e921bbc2b57751f6e33b0e32 /components/ship-vendor-document/revision-validation.tsx
parentbd1e72048a435655e9fced65c2c9dbe58568f47d (diff)
(김준회) swp-upload 다이얼로그로 결과 알림, vendorCode 자동 선택 처리
Diffstat (limited to 'components/ship-vendor-document/revision-validation.tsx')
-rw-r--r--components/ship-vendor-document/revision-validation.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/ship-vendor-document/revision-validation.tsx b/components/ship-vendor-document/revision-validation.tsx
index 96067400..27e25eba 100644
--- a/components/ship-vendor-document/revision-validation.tsx
+++ b/components/ship-vendor-document/revision-validation.tsx
@@ -203,9 +203,9 @@ export const formatB3RevisionInput = (value: string): string => {
const numPart = upperValue.slice(1).replace(/\D/g, '')
if (numPart) {
const num = parseInt(numPart, 10)
- // 1-99 범위 체크
- if (num >= 1 && num <= 99) {
- // 01-09는 0을 붙이고, 10-99는 그대로
+ // 0-99 범위 체크 (R00 허용)
+ if (num >= 0 && num <= 99) {
+ // 00-09는 0을 붙이고, 10-99는 그대로
return `R${num.toString().padStart(2, '0')}`
}
}