From 01b7b192acc316b4f8969893d1d9bb6369425776 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Thu, 20 Nov 2025 11:53:08 +0900 Subject: (김준회) PO 및 RFQ 관련 구매 피드백 반영 - PO매핑 오류 수정, 스키마 컬럼추가, 숫자포매팅 등 - rfq 담당자 문제 수정 등 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/contract/contract-items-card.tsx | 44 +++++++++++++++++++++++------ 1 file changed, 36 insertions(+), 8 deletions(-) (limited to 'components') diff --git a/components/contract/contract-items-card.tsx b/components/contract/contract-items-card.tsx index 5bf5a927..82d273d4 100644 --- a/components/contract/contract-items-card.tsx +++ b/components/contract/contract-items-card.tsx @@ -7,8 +7,19 @@ interface ContractItem { specification?: string quantity?: number quantityUnit?: string + ZPO_UNIT?: string unitPrice?: number | string contractAmount?: number | string + + // SAP ECC 금액 필드 + NETWR?: number + BRTWR?: number + ZPDT_EXDS_AMT?: number + + // SAP 날짜 필드 + ZPO_DLV_DT?: string + ZPLN_ST_DT?: string + ZPLN_ED_DT?: string } interface ContractItemsCardProps { @@ -36,7 +47,10 @@ export function ContractItemsCard({ items, currency }: ContractItemsCardProps) { 규격 수량 단가 - 금액 + 기본총액(BRTWR) + 조정금액(ZPDT) + 최종정가(NETWR) + 납기일자 @@ -46,7 +60,7 @@ export function ContractItemsCard({ items, currency }: ContractItemsCardProps) { {item.itemDescription || "-"} {item.specification || "-"} - {item.quantity} {item.quantityUnit || ""} + {item.quantity} {item.ZPO_UNIT || item.quantityUnit || ""} {item.unitPrice @@ -58,16 +72,30 @@ export function ContractItemsCard({ items, currency }: ContractItemsCardProps) { : formatNumber(parseFloat(item.unitPrice.toString())) : "-"} + + {item.BRTWR + ? currency + ? formatCurrency(item.BRTWR, currency) + : formatNumber(item.BRTWR) + : "-"} + + + {item.ZPDT_EXDS_AMT + ? currency + ? formatCurrency(item.ZPDT_EXDS_AMT, currency) + : formatNumber(item.ZPDT_EXDS_AMT) + : "-"} + - {item.contractAmount + {item.NETWR ? currency - ? formatCurrency( - parseFloat(item.contractAmount.toString()), - currency - ) - : formatNumber(parseFloat(item.contractAmount.toString())) + ? formatCurrency(item.NETWR, currency) + : formatNumber(item.NETWR) : "-"} + + {item.ZPO_DLV_DT || "-"} + ))} -- cgit v1.2.3