Fix: Remove duplicate financing cost in Project Cost Breakdown table
Some checks are pending
CI / Engine — lint / typecheck / test (push) Waiting to run
CI / API — lint / typecheck / test (push) Waiting to run
CI / Web — typecheck / lint / build (push) Waiting to run

The financing cost (IDC + upfront fees) was being displayed both as a separate
line item AND included in the total calculation, causing the Total Project Cost
to be inflated by the financing amount. This fix removes the separate financing
row from the breakdown table while keeping the correct total calculation.
This commit is contained in:
Manohar Gupta 2026-05-28 15:17:27 +05:30
parent fecc90c7a0
commit 4450eeb24f

View file

@ -817,7 +817,6 @@ export function InputsTab({ scenarioId, inputsJson, onSaved }: Props) {
{bessEnabled && bessAll > 0 && <tr><td className="px-3 py-1.5">Storage (BESS)</td><td className="px-3 py-1.5 text-right tabular-nums">{bessAll.toFixed(2)}</td></tr>}
{epcAll > 0 && <tr><td className="px-3 py-1.5">EPC Overheads</td><td className="px-3 py-1.5 text-right tabular-nums">{epcAll.toFixed(2)}</td></tr>}
{contAll > 0 && <tr><td className="px-3 py-1.5">Contingency</td><td className="px-3 py-1.5 text-right tabular-nums">{contAll.toFixed(2)}</td></tr>}
{(idcCost + upfrontCost) > 0 && <tr><td className="px-3 py-1.5">Financing</td><td className="px-3 py-1.5 text-right tabular-nums">{(idcCost + upfrontCost).toFixed(2)}</td></tr>}
<tr className="border-t-2 border-border bg-muted/30">
<td className="px-3 py-2 font-semibold">Total Project Cost</td>
<td className="px-3 py-2 text-right tabular-nums font-bold text-primary">{(totalCostCr + idcCost + upfrontCost).toFixed(2)}</td>