diff options
| author | joonhoekim <26rote@gmail.com> | 2025-11-20 11:53:08 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-11-20 11:53:08 +0900 |
| commit | 01b7b192acc316b4f8969893d1d9bb6369425776 (patch) | |
| tree | c885effdc80380ddabd4c52e9b24d98e8c9565e3 /components/contract | |
| parent | 77cbcaf27c9de8b361a6c5a13f0eefb37fd0d0e5 (diff) | |
(김준회) PO 및 RFQ 관련 구매 피드백 반영
- PO매핑 오류 수정, 스키마 컬럼추가, 숫자포매팅 등
- rfq 담당자 문제 수정 등
Diffstat (limited to 'components/contract')
| -rw-r--r-- | components/contract/contract-items-card.tsx | 44 |
1 files changed, 36 insertions, 8 deletions
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) { <th className="px-4 py-3 text-left font-medium">규격</th> <th className="px-4 py-3 text-right font-medium">수량</th> <th className="px-4 py-3 text-right font-medium">단가</th> - <th className="px-4 py-3 text-right font-medium">금액</th> + <th className="px-4 py-3 text-right font-medium">기본총액(BRTWR)</th> + <th className="px-4 py-3 text-right font-medium">조정금액(ZPDT)</th> + <th className="px-4 py-3 text-right font-medium">최종정가(NETWR)</th> + <th className="px-4 py-3 text-center font-medium">납기일자</th> </tr> </thead> <tbody> @@ -46,7 +60,7 @@ export function ContractItemsCard({ items, currency }: ContractItemsCardProps) { <td className="px-4 py-3">{item.itemDescription || "-"}</td> <td className="px-4 py-3">{item.specification || "-"}</td> <td className="px-4 py-3 text-right"> - {item.quantity} {item.quantityUnit || ""} + {item.quantity} {item.ZPO_UNIT || item.quantityUnit || ""} </td> <td className="px-4 py-3 text-right font-mono"> {item.unitPrice @@ -58,16 +72,30 @@ export function ContractItemsCard({ items, currency }: ContractItemsCardProps) { : formatNumber(parseFloat(item.unitPrice.toString())) : "-"} </td> + <td className="px-4 py-3 text-right font-mono"> + {item.BRTWR + ? currency + ? formatCurrency(item.BRTWR, currency) + : formatNumber(item.BRTWR) + : "-"} + </td> + <td className="px-4 py-3 text-right font-mono"> + {item.ZPDT_EXDS_AMT + ? currency + ? formatCurrency(item.ZPDT_EXDS_AMT, currency) + : formatNumber(item.ZPDT_EXDS_AMT) + : "-"} + </td> <td className="px-4 py-3 text-right font-mono font-medium"> - {item.contractAmount + {item.NETWR ? currency - ? formatCurrency( - parseFloat(item.contractAmount.toString()), - currency - ) - : formatNumber(parseFloat(item.contractAmount.toString())) + ? formatCurrency(item.NETWR, currency) + : formatNumber(item.NETWR) : "-"} </td> + <td className="px-4 py-3 text-center"> + {item.ZPO_DLV_DT || "-"} + </td> </tr> ))} </tbody> |
