mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Removed old quantity setting lines
This commit is contained in:
parent
1c4924a4a5
commit
172a08fbba
@ -245,16 +245,6 @@ class InstallStockForm(HelperForm):
|
||||
required=False,
|
||||
)
|
||||
|
||||
# quantity_to_install = RoundingDecimalFormField(
|
||||
# max_digits=10, decimal_places=5,
|
||||
# initial=1,
|
||||
# label=_('Quantity'),
|
||||
# help_text=_('Stock quantity to assign'),
|
||||
# validators=[
|
||||
# MinValueValidator(0.001)
|
||||
# ]
|
||||
# )
|
||||
|
||||
notes = forms.CharField(
|
||||
required=False,
|
||||
help_text=_('Notes')
|
||||
|
@ -595,7 +595,6 @@ class StockItemInstall(AjaxUpdateView):
|
||||
if items.count() == 1:
|
||||
item = items.first()
|
||||
initials['stock_item'] = item.pk
|
||||
# initials['quantity_to_install'] = item.quantity
|
||||
|
||||
if self.part:
|
||||
initials['part'] = self.part
|
||||
@ -629,7 +628,6 @@ class StockItemInstall(AjaxUpdateView):
|
||||
data = form.cleaned_data
|
||||
|
||||
other_stock_item = data['stock_item']
|
||||
# quantity = data['quantity_to_install']
|
||||
# Quantity will always be 1 for serialized item
|
||||
quantity = 1
|
||||
notes = data['notes']
|
||||
|
Loading…
Reference in New Issue
Block a user