{% extends 'D2BillingBundle::base_admin.html.twig' %} {% block head_script_extra %} {% endblock head_script_extra %} {% block head_style_extra %} {% endblock head_style_extra %} {% block page_header %}
{% for k, v in app.request.query %} {% if k|lower not in ['search', 'page', 'from_date', 'to_date'] %} {% endif %} {% endfor %}
New
Displaying {{ (sales_items.getCurrentPageNumber()-1) * sales_items.getItemNumberPerPage() + 1 }} to {{ ((sales_items.getCurrentPageNumber()-1) * sales_items.getItemNumberPerPage()) + (sales_items.getItems()|length) }} of {{ sales_items.getTotalItemCount() }} Sales Item records
{% endblock page_header %} {% block content %}
{% for entity in sales_items %} {% endfor %}
{{ knp_pagination_sortable(sales_items, 'Sales Code', 's.sales_code') }} {{ knp_pagination_sortable(sales_items, 'Category', 'sc.code') }} {{ knp_pagination_sortable(sales_items, 'Short Desc', 's.short_description') }} {{ knp_pagination_sortable(sales_items, 'Type', 's.type') }} {{ knp_pagination_sortable(sales_items, 'Period', 's.type_period') }} {{ knp_pagination_sortable(sales_items, 'Price (excl)', 's.item_price') }} {{ knp_pagination_sortable(sales_items, 'Discountable', 's.discountable') }} {{ knp_pagination_sortable(sales_items, 'Create Date', 's.create_ts') }} {{ knp_pagination_sortable(sales_items, 'In Shop', 's.shop_visible') }} {{ knp_pagination_sortable(sales_items, 'Status', 's.enabled') }}
{{ entity.sales_code | trim }} {{ entity.category_code }} {{ entity.short_description | trim }} {% if entity.type == 'general_item' %}{{ attribute(Types,'0').label }}{% endif %} {% if entity.type == 'resident_fee_item' %}{{ attribute(Types,'1').label }}{% endif %} {% if entity.type == 'advert_fee_image_small_item' %}{{ attribute(Types,'2').label }}{% endif %} {% if entity.type == 'advert_fee_image_large_item' %}{{ attribute(Types,'3').label }}{% endif %} {% if entity.type == 'advert_fee_text_business_item' %}{{ attribute(Types,'4').label }}{% endif %} {% if entity.type == 'advert_fee_property_rental_item' %}{{ attribute(Types,'5').label }}{% endif %} {% if entity.type == 'advert_fee_property_sale_item' %}{{ attribute(Types,'6').label }}{% endif %} {% if entity.type == 'advert_fee_non_business_item' %}{{ attribute(Types,'7').label }}{% endif %} {% if entity.type_period == 'n/a' %}{{ attribute(TypePeriods,'0').label }}{% endif %} {% if entity.type_period == 'monthly' %}{{ attribute(TypePeriods,'1').label }}{% endif %} {% if entity.type_period == 'six_monthly' %}{{ attribute(TypePeriods,'2').label }}{% endif %} {% if entity.type_period == 'annual' %}{{ attribute(TypePeriods,'3').label }}{% endif %} {{ d2_config('currency_symbol') }} {{ entity.item_price|number_format(2) }} {{ entity.enabled ? 'Active' : 'Inactive' }} {{ entity.create_ts|date("Y/m/d g:ia") }} {{ entity.shop_visible ? 'Active' : 'Inactive' }} {{ entity.enabled ? 'Active' : 'Inactive' }}
{% endblock content %}