Removed old quantity setting lines

This commit is contained in:
eeintech 2021-08-03 09:53:08 -04:00
parent 1c4924a4a5
commit 172a08fbba
2 changed files with 0 additions and 12 deletions

View File

@ -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')

View File

@ -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']