How to manage signs in transaction's amounts