{% extends 'admin.html.twig' %} {% block preloader %}{% endblock %} {% block title %}Ordenes de Compra{% endblock %} {% block body %}

Ordenes de Compra

{% if ordenes %} {% for orden in ordenes %} {% set ordenH = orden.ordenHosting|first %} {% set ordenD = orden.ordenDominio|first %} {% endfor %} {% else %} {% endif %}
Nro Usuario Servicio Duracion Costo Fecha Estatus Opciones
{{ orden.correlativo }}
{{ orden.usuario.username }}
{% if ordenH.planDestino is defined %} Hosting: {{ ordenH.planDestino.nombre }} {% endif %}
{% if ordenD.nombre is defined %} Dominio: {{ ordenD.nombre }}.{{ ordenD.extension.nombre }} {% endif %}
{% if ordenH.planDestino is defined %} {{ ordenH.duracion }} Año(s) {% endif %}
{% if ordenD.duracion is defined %} {{ ordenD.duracion }} Año(s) {% endif %}
{% if ordenH.planDestino is defined %} ${{ ordenH.costo|number_format }} {% endif %}
{% if ordenD.costo is defined %} ${{ ordenD.costo|number_format }} {% endif %}
{{ orden.createdAt|date("d-m-Y g:ia") }}
{% include 'all/orden/_estatus.html.twig' with {'estatus':orden.estatus} %} {% if orden.estatus == constant('ESTATUS_PENDIENTE', orden) or orden.estatus == constant('ESTATUS_PAGADA', orden) %} {% endif %}
No existen ordenes de Compras
{% endblock %}