oasuncion / tradista

Tradista: the first open source Financial Risk Management Solution
Apache License 2.0
9 stars 3 forks source link

Dividend transfers are duplicated #81

Closed oasuncion closed 1 year ago

oasuncion commented 1 year ago

If an equity trade which pays dividends is copied, dividends transfers are duplicated.

To Reproduce Steps to reproduce the behavior:

  1. Go to the Equity transfer window
  2. Load an equity trade which pays dividends, and copy it
  3. Go to the transfer window and load dividends transfers for this equity: dividend transfers have been duplicated

Expected behavior If a trade is copied, the dividend transfers should not be duplicated. More generally, when booking an equity trade, if a dividend transfer is already created for given product, currency, book, settlement date, it should not be duplicated.

Environment:

oasuncion commented 1 year ago

Fixed and planned in v2.0.0