Merge pull request 'fix: P&L percentage line understates tax cost when taxDue > 0 (#504)' (#505) from fix/issue-504 into master

This commit is contained in:
johba 2026-03-06 17:02:17 +01:00
commit 1302feef82

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;