diff --git a/src/components/estimate/Estimate.jsx b/src/components/estimate/Estimate.jsx index 02bafff0..7bb9c5ad 100644 --- a/src/components/estimate/Estimate.jsx +++ b/src/components/estimate/Estimate.jsx @@ -530,8 +530,8 @@ export default function Estimate({ params }) { if (estimateContextState.estimateType === 'YJSS') { if (res.pkgMaterialFlg === '0') { - //updates.showSalePrice = '0' - //updates.showSaleTotPrice = '0' + updates.showSalePrice = '0' + updates.showSaleTotPrice = '0' } } //104671 @@ -642,8 +642,8 @@ export default function Estimate({ params }) { console.log('YJOD 토탈만들어주기::::::::::', estimateContextState.itemList) estimateContextState.itemList.map((item) => { - //delete item.showSalePrice - //delete item.showSaleTotPrice + delete item.showSalePrice + delete item.showSaleTotPrice if (item.delFlg === '0') { let amount = Number(item?.amount?.replace(/[^0-9]/g, '').replaceAll(',', '')) if (isNaN(amount)) { @@ -720,8 +720,8 @@ export default function Estimate({ params }) { if (!item.paDispOrder) { //paDispOrder if (item.pkgMaterialFlg === '0') { - //item.showSalePrice = '0' - //item.showSaleTotPrice = '0' + item.showSalePrice = '0' + item.showSaleTotPrice = '0' } } } @@ -1271,7 +1271,7 @@ export default function Estimate({ params }) { - + @@ -1397,16 +1397,13 @@ export default function Estimate({ params }) { /> {/*
- OPEN아이콘 처리 -
*/} + + */} - {convertNumberToPriceDecimal(item?.saleTotPrice?.replaceAll(',', ''))} - {/* {item?.showSaleTotPrice === '0' ? ( - - ) : ( - {convertNumberToPriceDecimalToFixed(item?.saleTotPrice?.replaceAll(',', ''), 2)} - )} */} + + {convertNumberToPriceDecimal(item?.showSaleTotPrice === '0' ? null : item?.saleTotPrice?.replaceAll(',', ''))} + ) } else { diff --git a/src/hooks/floorPlan/estimate/useEstimateController.js b/src/hooks/floorPlan/estimate/useEstimateController.js index 171b01e1..9ac68243 100644 --- a/src/hooks/floorPlan/estimate/useEstimateController.js +++ b/src/hooks/floorPlan/estimate/useEstimateController.js @@ -179,9 +179,7 @@ export const useEstimateController = (planNo) => { return alert(getMessage('estimate.detail.save.requiredAmount')) } - console.log('상세::', estimateData) if (estimateData.estimateType !== 'YJSS') { - console.log('아이템 체크::', item.salePrice) if (isNaN(item.salePrice)) { item.salePrice = '0' }