2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-08 12:50:55 +00:00

Add pop-up pricing window for part

- Cost to purchase from suppliers
- Cost to build from BOM
This commit is contained in:
Oliver Walters
2019-05-18 22:58:11 +10:00
parent 54ccf6c7b3
commit dcf79338c1
6 changed files with 132 additions and 2 deletions

View File

@@ -138,3 +138,19 @@ class EditBomItemForm(HelperForm):
# Prevent editing of the part associated with this BomItem
widgets = {'part': forms.HiddenInput()}
class PartPriceForm(forms.Form):
""" Simple form for viewing part pricing information """
quantity = forms.IntegerField(
required=True,
initial=1,
help_text='Input quantity for price calculation'
)
class Meta:
model = Part
fields = [
'quantity'
]