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:
parent
b2756e8c99
commit
e4ed1474e1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue