There are some specific cases that the application brakes such as:
when the Portfolio spreadsheet is filled in with just the title lines
when the resultant 'Renda Variável' tab has 0 or 1 line
To Reproduce
Steps to reproduce the behavior:
1.1. Go to the target Portfolio spreadsheet
1.2. Erase all lines, except the titles line
1.3. Run the application and open the target Portfolio spreadsheet
1.4. See error
2.1. Go to the target Portfolio spreadsheet
2.2. Add 'compra'/'venda' lines in a way that the opened position resultant is equal to 0 (all positions are closed) or 1 (just 1 opened position like 200 BBAS3)
2.3. Run the application and open the target Portfolio spreadsheet
2.4. See error
Expected behavior
The application shall work normally and all the mentioned exceptions shall be correctly handled.
Screenshots
N/A.
Desktop (please complete the following information):
Describe the bug
There are some specific cases that the application brakes such as:
To Reproduce
Steps to reproduce the behavior: 1.1. Go to the target Portfolio spreadsheet 1.2. Erase all lines, except the titles line 1.3. Run the application and open the target Portfolio spreadsheet 1.4. See error
2.1. Go to the target Portfolio spreadsheet 2.2. Add 'compra'/'venda' lines in a way that the opened position resultant is equal to 0 (all positions are closed) or 1 (just 1 opened position like 200 BBAS3) 2.3. Run the application and open the target Portfolio spreadsheet 2.4. See error
Expected behavior
The application shall work normally and all the mentioned exceptions shall be correctly handled.
Screenshots
N/A.
Desktop (please complete the following information):
N/A.
Additional context
N/A.