...
The job goes through all enabled dividend payments that have CalcDate (rights date) less than today and attaches payments to all open forward contracts with the same underlying share and with SettlementDate less than the CalcDate.
Attaching interest payments
The job goes through all underlying bonds that have open forward contracts. For each interest payment that has occurred in the bond's cash flow it attaches a payment to each open forward contract (rightsDate <= ExpiryDate && !x.IsClosed && SettlementDate < rightsDate)) where rightsDate is the previous bank day of the interest date of the interest payment.