def get_relative_value(self):
        if self.trash:
            return 0
        elif self.account.owner_id == self.source_id:
            return -abs(self.value)
        elif self.account.owner_id == self.target_id:
            return abs(self.value)
        else:
            return 0
Get Relative Value
dataset/ETHPy150Open treeio/treeio/treeio/finance/models.py/Transaction.get_relative_value