'Total value of an inventory item'

@staticmethod
def inv_item_total_value(row):

    if hasattr(row, 'inv_inv_item'):
        row = row.inv_inv_item
    try:
        v = (row.quantity * row.pack_value)
        return v
    except (AttributeError, TypeError):
        return current.messages['NONE']
