How to show Location inventory the Order Printer app packing slip

Hello,

I’m trying to show the Location inventory in the Order Printer app packing slip:

I have added that through a metafields:

But it’s not working. Here’s the code:

 {% for line_item in line_items %} 

          

            

{{ line_item.title }}

            

 {% if line_item.variant_title != blank %} <small>
                **Colors:** {{ line_item.variant_title }}
              </small> {% endif %} 

            

 
                {% if line_item.sku != blank %} 
                    <small>
![barcode.ashx?data={{ line_item.sku }}&code=Code128&translate-esc=on|488x100](upload://9Ck9aEfNW9rGsMfNygHQ0shwJi0.gif)
</small>
                {% endif %} 
            

            {% if line_item.variant.barcode != blank %}
            

              <small>UPC: {% assign sorted_line_items = line_items | sort: 'variant.barcode' %} {{ line_item.variant.barcode }}</small>
            

            {% endif %}
            {% if line_item.product.metafields.warehouse_location.value != blank %}
            

            <small>Warehouse Locations: {{ line_item.product.metafields.warehouse_location.value }}</small>
            

            {% endif %}
            {% if line_item.variant.metafields.locationInventory.info.value != blank %}
            

            <small>Location Inventory: {{ line_item.variant.metafields.locationInventory.info.value }}</small>
            

            {% endif %}
          

          
            

{{ line_item.quantity }}

          

        
 {% endfor %}

It will be great if any have a solution.