Beispiel #1
0
def get_unit_type_choices():
    from htk.apps.addresses.enums import AddressUnitType
    choices = [(
        unit_type.value,
        get_enum_symbolic_name(unit_type),
    ) for unit_type in AddressUnitType]
    return choices
Beispiel #2
0
def get_organization_type_choices():
    from htk.apps.customers.enums import OrganizationType
    choices = [(
        organization_type.value,
        get_enum_symbolic_name(organization_type),
    ) for organization_type in OrganizationType]
    return choices
Beispiel #3
0
def get_organization_team_member_role_choices():
    from htk.apps.organizations.enums import OrganizationTeamMemberRoles
    choices = [(
        role.value,
        get_enum_symbolic_name(role),
    ) for role in OrganizationTeamMemberRoles]
    return choices
Beispiel #4
0
def get_invoice_payment_terms_choices():
    from htk.apps.cpq.enums import InvoicePaymentTerm
    choices = [(payment_term.value, get_enum_symbolic_name(payment_term),) for payment_term in InvoicePaymentTerm]
    return choices
Beispiel #5
0
def get_organization_type_choices():
    from htk.apps.customers.enums import OrganizationType
    choices = [(organization_type.value, get_enum_symbolic_name(organization_type),) for organization_type in OrganizationType]
    return choices
Beispiel #6
0
 def status_display(self):
     value = get_enum_symbolic_name(InvitationStatus(self.status))
     return value
Beispiel #7
0
def get_unit_type_choices():
    from htk.apps.addresses.enums import AddressUnitType
    choices = [(unit_type.value, get_enum_symbolic_name(unit_type),) for unit_type in AddressUnitType]
    return choices