summaryrefslogtreecommitdiff
path: root/lib/bidding
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bidding')
-rw-r--r--lib/bidding/list/create-bidding-dialog.tsx21
-rw-r--r--lib/bidding/vendor/partners-bidding-pre-quote.tsx27
2 files changed, 37 insertions, 11 deletions
diff --git a/lib/bidding/list/create-bidding-dialog.tsx b/lib/bidding/list/create-bidding-dialog.tsx
index a25dd363..cb91a984 100644
--- a/lib/bidding/list/create-bidding-dialog.tsx
+++ b/lib/bidding/list/create-bidding-dialog.tsx
@@ -69,6 +69,7 @@ import { Checkbox } from "@/components/ui/checkbox"
import { createBidding, type CreateBiddingInput } from "@/lib/bidding/service"
import { getIncotermsForSelection, getPaymentTermsForSelection, getPlaceOfShippingForSelection, getPlaceOfDestinationForSelection } from "@/lib/procurement-select/service"
+import { TAX_CONDITIONS } from "@/lib/tax-conditions/types"
import {
createBiddingSchema,
type CreateBiddingSchema
@@ -1475,14 +1476,24 @@ export function CreateBiddingDialog() {
<label className="text-sm font-medium">
세금조건 <span className="text-red-500">*</span>
</label>
- <Input
- placeholder="예: 부가세 별도"
+ <Select
value={biddingConditions.taxConditions}
- onChange={(e) => setBiddingConditions(prev => ({
+ onValueChange={(value) => setBiddingConditions(prev => ({
...prev,
- taxConditions: e.target.value
+ taxConditions: value
}))}
- />
+ >
+ <SelectTrigger>
+ <SelectValue placeholder="세금조건 선택" />
+ </SelectTrigger>
+ <SelectContent>
+ {TAX_CONDITIONS.map((condition) => (
+ <SelectItem key={condition.code} value={condition.code}>
+ {condition.name}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
</div>
<div className="space-y-2">
diff --git a/lib/bidding/vendor/partners-bidding-pre-quote.tsx b/lib/bidding/vendor/partners-bidding-pre-quote.tsx
index 6b9f956b..8a157c5f 100644
--- a/lib/bidding/vendor/partners-bidding-pre-quote.tsx
+++ b/lib/bidding/vendor/partners-bidding-pre-quote.tsx
@@ -42,6 +42,7 @@ import {
import { getBiddingConditions } from '../service'
import { getPriceAdjustmentFormByBiddingCompanyId } from '../detail/service'
import { getIncotermsForSelection, getPaymentTermsForSelection, getPlaceOfShippingForSelection, getPlaceOfDestinationForSelection } from '@/lib/procurement-select/service'
+import { TAX_CONDITIONS, getTaxConditionName } from '@/lib/tax-conditions/types'
import { PrItemsPricingTable } from './components/pr-items-pricing-table'
import { SimpleFileUpload } from './components/simple-file-upload'
import {
@@ -823,7 +824,12 @@ export function PartnersBiddingPreQuote({ biddingId, companyId }: PartnersBiddin
<div>
<Label className="text-muted-foreground">세금조건</Label>
<div className="mt-1 p-3 bg-muted rounded-md">
- <p className="font-medium">{biddingConditions.taxConditions || "미설정"}</p>
+ <p className="font-medium">
+ {biddingConditions.taxConditions
+ ? getTaxConditionName(biddingConditions.taxConditions)
+ : "미설정"
+ }
+ </p>
</div>
</div>
@@ -1068,12 +1074,21 @@ export function PartnersBiddingPreQuote({ biddingId, companyId }: PartnersBiddin
<div className="space-y-2">
<Label htmlFor="taxConditionsResponse">응답 세금조건 <span className="text-red-500">*</span></Label>
- <Input
- id="taxConditionsResponse"
+ <Select
value={responseData.taxConditionsResponse}
- onChange={(e) => setResponseData({...responseData, taxConditionsResponse: e.target.value})}
- placeholder={biddingConditions?.taxConditions ? `참고: ${biddingConditions.taxConditions}` : "세금조건에 대한 의견을 입력하세요"}
- />
+ onValueChange={(value) => setResponseData({...responseData, taxConditionsResponse: value})}
+ >
+ <SelectTrigger>
+ <SelectValue placeholder={biddingConditions?.taxConditions ? `참고: ${getTaxConditionName(biddingConditions.taxConditions)}` : "세금조건 선택"} />
+ </SelectTrigger>
+ <SelectContent>
+ {TAX_CONDITIONS.map((condition) => (
+ <SelectItem key={condition.code} value={condition.code}>
+ {condition.name}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
</div>
</div>