{% extends "AppBundle::Ordenes/edit/edit_order_base.html.twig" %} {% block title 'Editar Orden'|trans %} {% block stylesheets3rd %} {% endblock %} {% block content %} {% set ShippingBoardDisableToMarketplaceCode = [ 'avenidaplus'] %}
{% 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 productos is empty %} Este producto no existe en su cuenta de Fulljaus {% else %} {% set totalproducts = 0 %} {% for _index, p in products %} {% set subtotal = (p.unit_price * p.quantity) %} {% set totalproducts = totalproducts + subtotal %} {% set isCombo = p.productsCombo|length %} {% set editRoute = ""%} {% if p.isCombo == false and p.isParent == false %} {% set editRoute = path('ProductViewsController_simpleProductEditView', { 'id': p.productId }) %} {% endif %} {% if p.isCombo %} {% set editRoute = path('ProductViewsController_comboProductEditView', { 'id': p.productId }) %} {% endif %} {% if p.isParent %} {% 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 %} {% set totalDiscount = 0 %} {% if discounts is not empty %} {% for d in discounts %} {% set totalDiscount = totalDiscount + d.unit_price_with_taxes %} {% endfor %} {% endif %}
SKU Titulo Precio Unitario Cantidad Subtotal
{{ p.sku }} {% if isCombo %} {% endif %}{{ p.name|default("Sin título") }} {{ p.unit_price | number_format(2, '.', ',') }} {{ p.quantity }} {{ subtotal|number_format(2, '.', ',') }}{% if isCombo %} {% endif %}
- {{ d.sku }} {% if d.sku_associated is not empty %} (Aplicado a SKU {{ d.sku_associated }}) {% endif %} {{ d.name }} {{ d.unit_price_with_taxes | number_format(2, '.', ',') }} 1 {{ d.unit_price_with_taxes | number_format(2, '.', ',') }}
{% endif %}
Detalles del Envío
{% for p in products %}
{% endfor %}
{% if ord.referenceorden is not empty %}
Detalles del Pago
{% for payment in payments %}
{% endfor %}
{% endif %}
{% if order_incident is not empty %} {% include 'AppBundle:Ordenes:incident_box.html.twig' %} {% endif %}
Datos de la Orden
{% include 'AppBundle:Ordenes:edit/components/order_color_component.html.twig' %}
{% if marketplace_code in ShippingBoardDisableToMarketplaceCode %} {% endif %}
{% include 'AppBundle:Ordenes:invoice_upload.html.twig' with {'nro_factura' : nro_factura} %} {% if marketplace_code not in ShippingBoardDisableToMarketplaceCode %} {% include 'AppBundle:Logistics:envios.html.twig' with {'ord': {'shippingNumber': shipping_number, 'delivery_days_delay': delivery_days_delay, 'delivery_service_name': delivery_service_name, 'delivery_cost' : delivery_cost}} %} {% endif %}
Etiquetas de envío
{% if header_order.shippingTagUrlPdf != null %} {% else %} {% endif %}
{% if header_order.shippingTagUrlZpl != null %} {% else %} {% 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
{{ ord.totalproductos | number_format(2, '.', ',') }}
{{ ord.totalshipping | number_format(2, '.', ',') }}
{% 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 %}
{% if ord.totaltransact %}
{{ ord.totaltransact | number_format(2, '.', ',') }}
{% endif %} {% if ord.puntostransact %}
{{ ord.puntostransact | 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' %} {% endjavascripts %} {% endblock %}