2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

Calculate 'fulfilled' quantity once a sales order is marked as shipped

- This allows us to delete the SalesOrderAllocation objects from the database
This commit is contained in:
Oliver Walters
2020-04-27 08:58:18 +10:00
parent 3c5ba75d27
commit 5167117067
10 changed files with 32 additions and 31 deletions

View File

@ -58,7 +58,8 @@ InvenTree | {% trans "Stock Item" %} - {{ item }}
<a href="{% url 'build-detail' item.build_order.id %}">
<div class='label label-large label-large-blue'>{% trans "Used in Build" %}</div>
</a>
{% elif item.status in StockStatus.UNAVAILABLE_CODES %}{% stock_status_label item.status large=True %}
{% else %}
{% stock_status_label item.status large=True %}
{% endif %}
</h3>
<hr>

View File

@ -233,6 +233,7 @@
{% endif %}
part_detail: true,
location_detail: true,
in_stock: true,
},
url: "{% url 'api-stock-list' %}",
});