AX2009 Automatic settlement Ledger

Hello,

I register received invoices trough a Vendor register journal. It books an amount to a specific ledger account.

After the register journal, they get approved trough a Vendor approval journal. It books the same amount on the same ledger account.

How can I automatically settle those transactions?