Add an option to add a reversing transaction to the one(s) currently selected…

Authored by wrobelda on Mar 20 2020, 4:39 PM.

Description

Add an option to add a reversing transaction to the one(s) currently selected: - add negateValue() to MyMoneySplit which does exactly that. - add reverse() to MyMoneyTransaction which negates value of all its splits, effectively reversing the transaction. - refactor slotDuplicateTransaction(reverse bool) to optionally handle the reversing. Assuming typical use case being to transfer the reversed amount to an income/expense category, the reversed transaction has the same date as the original. - add Icon::Reverse

Details

Committed
wrobeldaMay 13 2020, 8:31 PM
Parents
R261:650d68b395dc: Use the correct institution in reports
Branches
Unknown
Tags
Unknown