[GNC] Error on Advanced Portfolio Report
Danilo Freitas da Costa
danfcosta at gmail.com
Tue May 11 23:26:49 EDT 2021
Hi everyone!
I'm facing an issue with in Advanced Portfolio Report:
*There is an error processing the transaction 'buying 100.0000 share
units'. This may to be caused by a sell transaction causing a negative
stock balance, and a subsequent buy transaction causing a zero balance.
This leads to a division-by-zero error. It can be fixed by preventing
negative stock balances.*
I looked for the cause and I found it. But I don't know how to solve it.
This problem is caused by a sequence of stock register (just this specific
stokc):
* Jan 12 - Sell 200 Stock XXX
* Jan 12 - Buy 100 Stock XXX
Until now, no problem. The report works well. Then I finish this operation:
* Feb 17 - Buy 100 Stock XXX
When I register this last operation the problem happens.
I don't understand that, because I have other operations like this one and
the report always works well.
To avoid any data entry error, I removed all transactions and inserted them
again.
Do you have any idea how to solve that?
Thanks!
Att,
Danilo
More information about the gnucash-user
mailing list