Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dividend entry ignores times when calculating number of shares owned #4335

Open
Malvineous opened this issue Nov 7, 2024 · 0 comments
Open
Labels

Comments

@Malvineous
Copy link

Describe the bug
When entering in a dividend, the "shares" field is calculated automatically, based on how many shares you owned on that date. However it only uses the dates and not the times for this calculation, so it comes up with the wrong number of shares if you bought more shares after the dividend was issued, but on the same day.

To Reproduce
Steps to reproduce the behavior:

  1. Buy 100 shares on 2024-01-01 10:00
  2. Buy 200 shares on 2024-01-02 11:00
  3. Enter a dividend for the share, with the date as 2024-01-02 00:00
  4. At this point you only owned 100 shares, but the field is pre-filled with 300 shares.

Expected behavior
The time should be considered as well as the date, so that only shares you owned at the current date and time are included. Or at the very least the calculation should not include shares bought on the same day as the dividend as these are probably not usually counted (at least not on the exchange I'm using).

Desktop

  • OS: Linux
  • Version 0.71.2
@Malvineous Malvineous added the bug label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant