Linking documents to Financial transactions in Payment rules

This issue caused confusion and made it difficult to track documents related to financial transactions. With this fix, documents added to Payment rules will now be properly linked to the corresponding Financial transactions.