Add page for detailing company purchase orders

This commit is contained in:
Oliver Walters 2019-06-04 22:39:46 +10:00
parent c45d8a5782
commit da53de844a
3 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,7 @@
{% extends "company/company_base.html" %}
{% load static %}
{% block details %}
{% include 'company/tabs.html' with tab='po' %}
{% endblock %}

View File

@ -10,7 +10,7 @@
<a href="{% url 'company-detail-stock' company.id %}">Stock <span class='badge'>{{ company.stock_count }}</a>
</li>
<li{% if tab == 'po' %} class='active'{% endif %}>
<a href="#">Purchase Orders <span class='badge'>{{ company.purchase_orders.count }}</span></a>
<a href="{% url 'company-detail-purchase-orders' company.id %}">Purchase Orders <span class='badge'>{{ company.purchase_orders.count }}</span></a>
</li>
{% endif %}
{% if company.is_customer %}

View File

@ -17,6 +17,7 @@ company_detail_urls = [
url(r'parts/?', views.CompanyDetail.as_view(template_name='company/detail_part.html'), name='company-detail-parts'),
url(r'stock/?', views.CompanyDetail.as_view(template_name='company/detail_stock.html'), name='company-detail-stock'),
url(r'purchase-orders/?', views.CompanyDetail.as_view(template_name='company/detail_purchase_orders.html'), name='company-detail-purchase-orders'),
url(r'thumbnail/?', views.CompanyImage.as_view(), name='company-image'),