{% extends '@OroUI/actions/view.html.twig' %} {% oro_title_set({params : {'%id%': entity.qid }}) %} {% block pageHeader %} {% set breadcrumbs = { 'entity': entity, 'indexPath': path('oro_sale_quote_index'), 'indexLabel': 'oro.sale.quote.entity_plural_label'|trans, 'entityTitle': 'oro.sale.navigation.view'|trans({ '%id%': entity.qid|default('N/A'|trans) }) } %} {{ parent() }} {% endblock pageHeader %} {% block breadcrumbs %} {% import '@OroUI/macros.html.twig' as UI %} {{ parent() }} {% if entity.expired %} {{ UI.badge('oro.sale.quote.expired.label'|trans, 'disabled', 'fa-lock') }} {% else %} {{ UI.badge('oro.sale.quote.not_expired.label'|trans, 'enabled', 'fa-unlock') }} {% endif %} {% endblock breadcrumbs %} {% block content_data %} {% import '@OroUI/macros.html.twig' as UI %} {% set quoteInformationWidget %} {{ oro_widget_render({ 'widgetType': 'block', 'title': 'oro.sale.quote.widgets.quote_information'|trans, 'url': path('oro_sale_quote_info', {'id': entity.id}) }) }} {% endset %} {% set quoteProducts %}
{{ 'oro.product.sku.label'|trans }} | {{ 'oro.sale.quoteproduct.column.product'|trans }} | {{ 'oro.sale.quoteproductoffer.quantity.label'|trans }} | {{ 'oro.sale.quoteproductoffer.price.label'|trans }} | {{ 'oro.sale.quoteproduct.comment_customer.label'|trans }} | {{ 'oro.sale.quoteproduct.comment.label'|trans }} |
---|---|---|---|---|---|
{% if quoteProduct.isTypeNotAvailable %} {{ quoteProduct.productReplacementSku }} {% else %} {{ quoteProduct.productSku }} {% endif %} | {{ quoteProduct.productName }} | {% endif %}{% if oro_is_unit_code_visible(quoteProductOffer.productUnit.code) %} {{ quoteProductOffer.quantity|oro_format_short_product_unit_value(quoteProductOffer.productUnit) }} {% else %} {{ quoteProductOffer.quantity|oro_format_decimal }} {% endif %} {% if quoteProductOffer.allowIncrements %}{{ 'oro.sale.quoteproductoffer.allow_increments.label'|trans }}{% endif %} | {% if quoteProductOffer.price %} {{ quoteProductOffer.price|oro_format_price }} {% else %} {{ 'N/A'|trans }} {% endif %} | {% if loop.first %}{{ quoteProduct.commentCustomer }} | {{ quoteProduct.comment }} | {% endif %}