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 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-06 15:32:21 +00:00
parent b2756e8c99
commit e4ed1474e1

View file

@ -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;