{%- macro id_node(ordering_element) -%}
    {%- if ordering_element.ordering_strategy == "ScreenCell" -%}
    <ScreenCell>{{ ordering_element.screen_number }},{{ ordering_element.cell_number }}</ScreenCell>
    {%- elif ordering_element.ordering_strategy == "ItemScreen" -%}
    <ItemScreen>{{ ordering_element.inventory_number }},{{ ordering_element.screen_number }}</ItemScreen>
    {%- elif ordering_element.ordering_strategy == "ItemNumber" -%}
    <ItemNumber>{{ ordering_element.inventory_number }}</ItemNumber>
    {%- endif -%}
{%- endmacro -%}

{%- macro emit_user_info(user_info) -%}
{#- The indentation here is a compromise to try and line up the fields as best we can in the two locations emitted. -#}
                    <AccountNumber>{{ user_info.account_number or '' }}</AccountNumber>
                    {%- if user_info.last_name %}
                    <LastName>{{ user_info.last_name }}</LastName>
                    {%- endif %}
                    {%- if user_info.first_name %}
                    <FirstName>{{ user_info.first_name }}</FirstName>
                    {%- endif %}
                    {%- if user_info.middle_initial %}
                    <MiddleInitial>{{ user_info.middle_initial }}</MiddleInitial>
                    {%- endif %}
                    {%- if user_info.address_street1 %}
                    <Address1>{{ user_info.address_street1 }}</Address1>
                    {%- endif %}
                    {%- if user_info.address_street2 %}
                    <Address2>{{ user_info.address_street2 }}</Address2>
                    {%- endif %}
                    {%- if user_info.address_street3 %}
                    <Address3>{{ user_info.address_street3 }}</Address3>
                    {%- endif %}
                    {%- if user_info.address_city %}
                    <City>{{ user_info.address_city }}</City>
                    {%- endif %}
                    {%- if user_info.address_state %}
                    <State>{{ user_info.address_state }}</State>
                    {%- endif %}
                    {%- if user_info.address_zip %}
                    <Zip>{{ user_info.address_zip }}</Zip>
                    {%- endif %}
                    {%- if user_info.phone %}
                    <Phone>{{ user_info.phone }}</Phone>
                    {%- endif %}
                    {%- if user_info.phone_ext %}
                    <PhoneExt>{{ user_info.phone_ext }}</PhoneExt>
                    {%- endif %}
{%- endmacro -%}
