{% extends "store/base.html" %}{% load static %}{% load render_table from django_tables2 %}{% load querystring from django_tables2 %}{% block title %}Purchases{%endblock title%} {% block content %}
{% for purchase in purchases %} {% endfor %}
ID Name Quantity Price Delivery Status Delivery Date Vendor Action
{{ purchase.id }} {{ purchase.item.name }} {{ purchase.quantity }} {{ purchase.total_value }} {% if purchase.delivery_status == 'P' %} Pending {% else %} Successful {% endif %} {{ purchase.delivery_date }} {{ purchase.vendor.name }}
{% if is_paginated %} {% endif %}
{% endblock %}