{% extends 'base.html' %} {% block content %}

{% if editing %}Edit Order #{{ order.id }}{% else %}Create New Order{% endif %}

{% if error %}
{{ error }}
{% endif %}
{% csrf_token %}
{% if editing and order.items.all %} {% for item in order.items.all %} {% endfor %} {% endif %}
ProductStockPriceQtyTotal
Grand Total: Rs. {{ order.total_amount|default:'0.00' }}
{% if editing %} {% if order.is_delivered %} {% else %} {% endif %} Back {% endif %}
{% if editing %} {% endif %} {% endblock %}