<commit_before>{% extends 'AdminCoreBundle::Common/formComponent.html.twig' %}


{% set elcodi_context = {
    entity_type: 'order',
} %}


{% block content %}

<div class="box-background">
    <p class="fl-r fz-s"><i class="icon-calendar-o"></i> {% include '@AdminCart/Order/date.html.twig' with { date: order.createdAt } %}</p>
    <h3 class="fw-n"><i class="icon-shopping-cart"></i> {{ 'admin.order.details.title'|trans }}</h3>
    <table class="table">
        <thead>
            <tr>
                <th>{{ 'admin.order.details.item'|trans }}</th>
                <th class="w-10 ta-r">{{ 'admin.order.details.units'|trans }}</th>
                <th class="w-15 ta-r">{{ 'admin.order.details.price'|trans }}</th>
                <th class="w-15 ta-r">{{ 'admin.order.field.total'|trans }}</th>
            </tr>
        </thead>
        <tbody>
            {% for line in order.orderLines %}
            <tr>
                <td>
                    <a href="{{ url('admin_product_edit', { id: line.product.id}) }}" class="fw-b">{{ line.product.name }}</a>
                    <p class="fz-s">ID: {{ line.product.id }}</p>
                </td>
                <td class="ta-r">{{ line.quantity }}</td>
                <td class="ta-r">{{ line.product.price|print_money }}</td>
                <td class="ta-r">{{ line.amount|print_money }}</td>
            </tr>
            {% endfor %}

            <tr>
                <td colspan="3" class="ta-r">{{ 'admin.order.details.subtotal'|trans }}</td><commit_msg>fixed reduced price in admin order detail<commit_after>{% extends 'AdminCoreBundle::Common/formComponent.html.twig' %}


{% set elcodi_context = {
    entity_type: 'order',
} %}


{% block content %}

<div class="box-background">
    <p class="fl-r fz-s"><i class="icon-calendar-o"></i> {% include '@AdminCart/Order/date.html.twig' with { date: order.createdAt } %}</p>
    <h3 class="fw-n"><i class="icon-shopping-cart"></i> {{ 'admin.order.details.title'|trans }}</h3>
    <table class="table">
        <thead>
            <tr>
                <th>{{ 'admin.order.details.item'|trans }}</th>
                <th class="w-10 ta-r">{{ 'admin.order.details.units'|trans }}</th>
                <th class="w-15 ta-r">{{ 'admin.order.details.price'|trans }}</th>
                <th class="w-15 ta-r">{{ 'admin.order.field.total'|trans }}</th>
            </tr>
        </thead>
        <tbody>
            {% for line in order.orderLines %}
            <tr>
                <td>
                    <a href="{{ url('admin_product_edit', { id: line.product.id}) }}" class="fw-b">{{ line.product.name }}</a>
                    <p class="fz-s">ID: {{ line.product.id }}</p>
                </td>
                <td class="ta-r">{{ line.quantity }}</td>
                <td class="ta-r">
                {% if line.product.reducedPrice.amount > 0 %}
                    {{ line.product.reducedPrice|print_money }}
                {% else %}
                    {{ line.product.price|print_money }}
                {% endif %}
                </td>
                <td class="ta-r">{{ line.amount|print_money }}</td>
            </tr>
            {% endfor %}

            <tr>
                <td colspan="3" class="ta-r">{{ 'admin.order.details.subtotal'|trans }}</td>
{'fraction_non_alphanumeric': 0.20621382881510814, 'fraction_numerical': 0.005787389582698751, 'mean_word_length': 1.8334771354616048, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 84, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4046691', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1048, 'n_words': 191}