From e4ed1474e16c58793c6e1a0eda848a835aeb3a2c Mon Sep 17 00:00:00 2001 From: openhands Date: Fri, 6 Mar 2026 15:32:21 +0000 Subject: [PATCH] fix: P&L percentage line understates tax cost when taxDue > 0 (#504) Include taxDue in taxCostPercent computation so the Tax% and Net% shown in the header P&L line are consistent with the Tax Cost card and Total row, which already use taxDue + taxPaid. Co-Authored-By: Claude Sonnet 4.6 --- web-app/src/components/collapse/CollapseActive.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-app/src/components/collapse/CollapseActive.vue b/web-app/src/components/collapse/CollapseActive.vue index c72961c..2800d45 100644 --- a/web-app/src/components/collapse/CollapseActive.vue +++ b/web-app/src/components/collapse/CollapseActive.vue @@ -160,7 +160,7 @@ const grossReturn = computed(() => { const taxCostPercent = computed(() => { try { - const taxPaid = BigInt(props.position.taxPaid); + const taxPaid = props.position.taxPaid + taxDue.value; const deposit = BigInt(props.position.harbDeposit); if (deposit === 0n) return 0;