summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/bidding/bidding-conditions-edit.tsx35
1 files changed, 28 insertions, 7 deletions
diff --git a/components/bidding/bidding-conditions-edit.tsx b/components/bidding/bidding-conditions-edit.tsx
index 51b1a688..1017597b 100644
--- a/components/bidding/bidding-conditions-edit.tsx
+++ b/components/bidding/bidding-conditions-edit.tsx
@@ -19,6 +19,7 @@ import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"
import { Pencil, Save, X } from "lucide-react"
import { getBiddingConditions, updateBiddingConditions } from "@/lib/bidding/service"
import { getIncotermsForSelection, getPaymentTermsForSelection, getPlaceOfShippingForSelection, getPlaceOfDestinationForSelection } from "@/lib/procurement-select/service"
+import { TAX_CONDITIONS, getTaxConditionName } from "@/lib/tax-conditions/types"
import { useToast } from "@/hooks/use-toast"
interface BiddingConditionsEditProps {
@@ -207,7 +208,12 @@ export function BiddingConditionsEdit({ biddingId, initialConditions }: BiddingC
</div>
<div>
<Label className="text-muted-foreground">세금조건</Label>
- <p className="font-medium">{conditions.taxConditions || "미설정"}</p>
+ <p className="font-medium">
+ {conditions.taxConditions
+ ? getTaxConditionName(conditions.taxConditions)
+ : "미설정"
+ }
+ </p>
</div>
<div>
<Label className="text-muted-foreground">운송조건</Label>
@@ -308,15 +314,30 @@ export function BiddingConditionsEdit({ biddingId, initialConditions }: BiddingC
<div className="space-y-2">
<Label htmlFor="taxConditions">세금조건 *</Label>
- <Input
- id="taxConditions"
- placeholder="예: VAT 별도, 원천세 3.3%"
+ <Select
value={conditions.taxConditions}
- onChange={(e) => setConditions(prev => ({
+ onValueChange={(value) => setConditions(prev => ({
...prev,
- taxConditions: e.target.value
+ taxConditions: value
}))}
- />
+ >
+ <SelectTrigger>
+ <SelectValue placeholder="세금조건 선택" />
+ </SelectTrigger>
+ <SelectContent>
+ {TAX_CONDITIONS.length > 0 ? (
+ TAX_CONDITIONS.map((condition) => (
+ <SelectItem key={condition.code} value={condition.code}>
+ {condition.name}
+ </SelectItem>
+ ))
+ ) : (
+ <SelectItem value="loading" disabled>
+ 데이터를 불러오는 중...
+ </SelectItem>
+ )}
+ </SelectContent>
+ </Select>
</div>
<div className="space-y-2">