CarlosOliveira1988 / Investment_Portfolio_Analysis

This repository is useful to perform some financial analysis in Investment Portfolio
4 stars 0 forks source link

The "OpenedPositions" tables are not showing correctly the partial operations (buy 35, sell 9 => 26 but shows 35) #66

Closed CarlosOliveira1988 closed 2 years ago

CarlosOliveira1988 commented 2 years ago

Describe the bug

The "OpenedPositions" tables (the tabs "Renda Variável", "Renda Fixa" and "Tesouro Direto") are not showing correctly the partial operations.

For example: if you create a sequence of buying 35 stocks of CPTS11 and selling 9 stocks of CPTS11, then the application is showing the total of 35 stocks instead of 29.

To Reproduce

Steps to reproduce the behavior:

  1. Run the 'main.py' from the 'main' branch
  2. Click on 'Arquivo -> Abrir Extrato' and select the attached 'TesteCPTS11.xlsx' file
  3. Select the 'Renda Variável' tab and see the column 'Quantidade=35'

Expected behavior

The application should show the column 'Quantidade=26', not 'Quantidade=35'

Screenshots

image

Desktop (please complete the following information):

N/A

Additional context

N/A

TesteCPTS11.xlsx

CarlosOliveira1988 commented 2 years ago

Issue fixed! Please, check the results.