From fd542b5ad4bf94b82d872f87b96aa2e7514ffbc3 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Fri, 19 Sep 2025 09:40:38 +0000 Subject: (최겸) 구매 일반계약 수정, 견적 입찰 계약 세금코드 select 적용 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/bidding/bidding-conditions-edit.tsx | 35 ++++++++++++++++++++------ 1 file changed, 28 insertions(+), 7 deletions(-) (limited to 'components') 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
-

{conditions.taxConditions || "미설정"}

+

+ {conditions.taxConditions + ? getTaxConditionName(conditions.taxConditions) + : "미설정" + } +

@@ -308,15 +314,30 @@ export function BiddingConditionsEdit({ biddingId, initialConditions }: BiddingC
- setConditions(prev => ({ + onValueChange={(value) => setConditions(prev => ({ ...prev, - taxConditions: e.target.value + taxConditions: value }))} - /> + > + + + + + {TAX_CONDITIONS.length > 0 ? ( + TAX_CONDITIONS.map((condition) => ( + + {condition.name} + + )) + ) : ( + + 데이터를 불러오는 중... + + )} + +
-- cgit v1.2.3