2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

More complex pricing calculations

- Calculate BOM price for a part
- Calculate total pricing for a part (build or purchase)
- Display pricing information in BOM table
This commit is contained in:
Oliver Walters
2019-05-18 21:22:56 +10:00
parent 4c82714777
commit 2a1fd2b03b
4 changed files with 161 additions and 1 deletions

View File

@@ -11,6 +11,14 @@
<h3>Bill of Materials</h3>
{% if part.has_complete_bom_pricing == False %}
<div class='alert alert-block alert-warning'>
The BOM for <i>{{ part.full_name }}</i> does not have complete pricing information
</div>
{% endif %}
<div class='panel panel-default'>
Single BOM Price: {{ part.min_bom_price }} to {{ part.max_bom_price }}
</div>
{% if part.bom_checked_date %}
{% if part.is_bom_valid %}
<div class='alert alert-block alert-info'>