(self)
Gets the quantity of this transaction as a positive or negative number
        depending on the action/context
Gets the quantity of this transaction as a positive or negative number
        depending on the action/context
Gets the quantity of this transaction as a positive or negative number depending on the action / context
def relative_quantity(self):
        """
        Gets the quantity of this transaction as a positive or negative number
        depending on the action/context
        """
        if self.action == const.StockActions.CONSUMPTION:
            return -self.quantity
        else:
            return self.quantity
def relative_quantity ( self ) : if self . action == const . StockActions . CONSUMPTION : return - self . quantity else : return self . quantity