If an equity trade which pays dividends is copied, dividends transfers are duplicated.
To Reproduce
Steps to reproduce the behavior:
Go to the Equity transfer window
Load an equity trade which pays dividends, and copy it
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.
If an equity trade which pays dividends is copied, dividends transfers are duplicated.
To Reproduce Steps to reproduce the behavior:
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: