{% extends 'D2ShopBundle::base_admin.html.twig' %} {% block head_script_extra %} {% endblock head_script_extra %} {% block page_header %}
{{ with_selected_form('shop_stock_item_list') }}

{% for k, v in app.request.query %} {% if k|lower not in ['search', 'page', 'status', 'approved', 'account'] %} {% endif %} {% endfor %}
New
Displaying {{ (shop_stock_items.getCurrentPageNumber()-1) * shop_stock_items.getItemNumberPerPage() + 1 }} to {{ ((shop_stock_items.getCurrentPageNumber()-1) * shop_stock_items.getItemNumberPerPage()) + (shop_stock_items.getItems()|length) }} of {{ shop_stock_items.getTotalItemCount() }} {% trans %}Stock Items{% endtrans %} records
{% endblock page_header %} {% block content %}
{% for entity in shop_stock_items %} {% endfor %}
{{ knp_pagination_sortable(shop_stock_items, 'Status', 's.enabled') }} {{ knp_pagination_sortable(shop_stock_items, 'Approved', 's.approved') }} {{ knp_pagination_sortable(shop_stock_items, 'Product', 'p.product_name') }} {{ knp_pagination_sortable(shop_stock_items, 'Image', 's.orig_path') }} {{ knp_pagination_sortable(shop_stock_items, 'Bar Code', 's.bar_code') }} {{ knp_pagination_sortable(shop_stock_items, 'Description', 's.description') }} {{ knp_pagination_sortable(shop_stock_items, 'Price (Excl)', 's.item_price') }} {{ knp_pagination_sortable(shop_stock_items, 'Quantity', 's.stock_quantity') }} {{ knp_pagination_sortable(shop_stock_items, 'Date', 's.date') }}
{{ with_selected_checkbox('shop_stock_item_list', entity.id) }} {{ entity.enabled ? 'Enabled' : 'Disabled' }} {{ entity.approved ? 'Approved' : 'Not Approved' }} {% if entity.product is not null %}{{ entity.product.productName|trim }}{% endif %} {{ entity.origPath|trim }} {{ entity.barCode|trim }} {{ entity.description|trim }} {{ entity.itemPrice|number_format(2, '.', '') }} {{ entity.stockQuantity|number_format(0, '.', '') }} {{ entity.date|date("Y/m/d") }}
{% endblock content %}