From 3c98aa3c80ec450cb84a2e49aea94b9e7c0c2a44 Mon Sep 17 00:00:00 2001 From: Manohar Gupta Date: Fri, 29 May 2026 18:25:32 +0530 Subject: [PATCH] fix: show all cost line items in Project Cost Breakdown - Show all items even when value is 0 (DSRA, EPC overheads, etc.) - Always show Solar Module, Solar BoS, Solar Land Cost - Wind items only show if windEnabled - BESS items only show if bessEnabled --- packages/web/components/InputsTab.tsx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/web/components/InputsTab.tsx b/packages/web/components/InputsTab.tsx index 9a77105..cb08dbd 100644 --- a/packages/web/components/InputsTab.tsx +++ b/packages/web/components/InputsTab.tsx @@ -833,19 +833,19 @@ export function InputsTab({ scenarioId, inputsJson, onSaved }: Props) { - {solarModule > 0 && } - {solarBOS > 0 && } - {windEnabled && windWTG > 0 && } - {solarLandCost > 0 && } - {windEnabled && windLandCost > 0 && } - {bessEnabled && bessAll > 0 && } - {dsraCost > 0 && } - {solarEPC > 0 && } - {windEnabled && windEPC > 0 && } - {epcMarginWTG > 0 && } - {epcMarginSolarBOS > 0 && } - {solarCont > 0 && } - {windEnabled && windCont > 0 && } + + + {windEnabled && } + + {windEnabled && } + {bessEnabled && } + + + {windEnabled && } + + + + {windEnabled && }
Solar Module{solarModule.toFixed(2)}
Solar BoS{solarBOS.toFixed(2)}
Wind WTG{windWTG.toFixed(2)}
Solar Land Cost{solarLandCost.toFixed(2)}
Wind Land Cost{windLandCost.toFixed(2)}
Storage{bessAll.toFixed(2)}
DSRA{dsraCost.toFixed(2)}
Solar EPC Overheads{solarEPC.toFixed(2)}
Wind EPC Overheads{windEPC.toFixed(2)}
EPC Margin - WTG Tower+BOP{epcMarginWTG.toFixed(2)}
EPC Margin - Solar BOS{epcMarginSolarBOS.toFixed(2)}
Contingency - Solar{solarCont.toFixed(2)}
Contingency - Wind (in WTG cost){windCont.toFixed(2)}
Solar Module{solarModule.toFixed(2)}
Solar BoS{solarBOS.toFixed(2)}
Wind WTG{windWTG.toFixed(2)}
Solar Land Cost{solarLandCost.toFixed(2)}
Wind Land Cost{windLandCost.toFixed(2)}
Storage{bessAll.toFixed(2)}
DSRA{dsraCost.toFixed(2)}
Solar EPC Overheads{solarEPC.toFixed(2)}
Wind EPC Overheads{windEPC.toFixed(2)}
EPC Margin - WTG Tower+BOP{epcMarginWTG.toFixed(2)}
EPC Margin - Solar BOS{epcMarginSolarBOS.toFixed(2)}
Contingency - Solar{solarCont.toFixed(2)}
Contingency - Wind (in WTG cost){windCont.toFixed(2)}
Total Hard Cost {totalHardCost.toFixed(2)}