{% extends "AppBundle::Ordenes/edit/edit_order_base.html.twig" %} {% block title 'Orden ' ~ header_order.referenceOrder ~ ' - ' ~ marketplace_name |trans %} {% block content %}
{% if order_incident is empty %} {% endif %} {% trans %}Descargar Remito{% endtrans %} {% trans %}Regresar{% endtrans %}
{% for ord in orden %}
Datos Cliente
Datos Facturación
Detalles del Pedido
{% if golden_rules_as_discount %}

Golden Rules como ítems de descuento en órdenes está activado. Se mostrará como descuento la diferencia de precio generada por golden rules aplicables.

{% endif %}
{% if products is empty %} Producto/s inexistente/s en su cuenta de Fulljaus {% else %} {% set totalproducts = 0 %} {% for p in products %} {% set subtotal = (p.unit_price_with_taxes * p.quantity) %} {% set totalproducts = totalproducts + subtotal %} {% set isCombo = p.productsCombo|length %} {% set editRoute = ""%} {% if p.isCombo == false and p.isParent == false and p.productId%} {% set editRoute = path('ProductViewsController_simpleProductEditView', { 'id': p.productId }) %} {% endif %} {% if p.isCombo and p.productId%} {% set editRoute = path('ProductViewsController_comboProductEditView', { 'id': p.productId }) %} {% endif %} {% if p.isParent and p.productId %} {% set editRoute = path('ProductViewsController_variantProductEditView', { 'id': p.productId }) %} {% endif %} {% if isCombo %} {% include "AppBundle:Ordenes:edit/combo_product_billing.html.twig" with {'combo': p, 'index': loop.index, 'colspan': 6} %} {% endif %} {% endfor %} {% if discounts is not empty %} {% for d in discounts %} {% endfor %} {% endif %}
SKU Titulo Precio Unitario Cantidad Subtotal
{{ p.sku }} {% if isCombo %} {% endif %}{{ p.name }} {{ p.unit_price_with_taxes | number_format(2, '.', ',') }} {{ p.quantity }} {{ subtotal|number_format(2, '.', ',') }}{% if isCombo %} {% endif %}
- {{ d.sku_associated }} {{ d.name }} {{ d.unit_price_with_taxes | number_format(2, '.', ',') }} 1 {{ d.unit_price_with_taxes | number_format(2, '.', ',') }}
{% endif %}
Detalles del Envío
{% if shipping_info is not empty %} {% for shipping in shipping_info %}
{% if shipping.carrier is not null %} {% else %} {% endif %}
{% endfor %} {% else %}
{% for p in products %}
{% endfor %}
{% endif %}
Detalles del Pago
{% for payment in payments %}
{% endfor %}
{% if order_incident is not empty %} {% include 'AppBundle:Ordenes:incident_box.html.twig' %} {% endif %}
Datos de la Orden
{% if seller_id == 185 %} {% else %} {% endif %}
{% include 'AppBundle:Ordenes:edit/components/order_color_component.html.twig' %}
{% include 'AppBundle:Ordenes:invoice_upload.html.twig' with {'nro_factura' : nro_factura} %} {% if marketplace_name != "Megatone" %} {% include 'AppBundle:Logistics:envios.html.twig' with { 'shippingNumber' : header_order.ordenCabecera.shippingNumber } %} {% endif %}
Modificar
{% if manual_transitions_allowed == 0 %}

Este estado no permite transiciones manuales.
Se espera información del marketplace para realizar el cambio de estado.

{% endif %}

{{ render(controller('AppBundle\\Controller\\CarrierController::showCarrierPanel', { 'orderId': ord.id })) }}
Totales
{{ totalproducts | number_format(2, '.', ',') }}
{{ ord.totalshipping | number_format(2, '.', ',') }}
{% if ord.totaltransact == null %} {% set totaltransact = 0 %} {% else %} {% set totaltransact = totalproducts + ord.totalshipping %} {% endif %} {% if ord.totaltransact %}
{{ ord.totaltransact | number_format(2, '.', ',') }}
{% endif %} {% if ord.puntostransact %}
{{ ord.puntostransact | number_format(2, '.', ',') }}
{% endif %} {% set totalDiscount = 0 %} {% if discounts is not empty %}
{% for d in discounts %} {% set totalDiscount = totalDiscount + d.unit_price_with_taxes %} {% endfor %} {{ totalDiscount | number_format(2, '.', ',') }}
{% endif %}
{{ (ord.totalpaid + totalDiscount) | number_format(2, '.', ',') }}
{% if costo > 0 %}
{{ costo | number_format(2, '.', ',') }}
{% endif %}
{% include 'AppBundle:Ordenes:comments_box.html.twig' with {'ordenId': ord.id} %} {% include 'AppBundle:Ordenes:incidents_box_modal.html.twig' with {'incidents': incidents_types, 'orderId': ord.id} %}
{% endfor %}
{% endblock %} {% block javascripts3rd %} {% javascripts '@AppBundle/Resources/public/js/Ordenes/clientHelper.js' '@AppBundle/Resources/public/js/Ordenes/orderStatusHelper.js' '@AppBundle/Resources/public/js/Ordenes/incidentHelper.js' '@AppBundle/Resources/public/js/Ordenes/orderCheckboxesHelper.js' %} {% endjavascripts %} {% endblock %}