def combo_to_int(value, replace_string='None', replace_with=0):
    """
    Used for the values of combo quants with numerical values and one string value.
    The default use case is to replace the 'None' option with a 0.
    """
    if value == replace_string:
        return int(replace_with)
    else:
        return int(value)