Fix: Remove duplicate financing cost in Project Cost Breakdown table
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:
parent
fecc90c7a0
commit
4450eeb24f
1 changed files with 0 additions and 1 deletions
|
|
@ -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>}
|
{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>}
|
{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>}
|
{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">
|
<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 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>
|
<td className="px-3 py-2 text-right tabular-nums font-bold text-primary">{(totalCostCr + idcCost + upfrontCost).toFixed(2)}</td>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue