Form improvements

This commit is contained in:
Oliver Walters 2019-08-28 22:04:04 +10:00
parent 15b38000d5
commit 76ec44d770

View File

@ -67,8 +67,8 @@ class SerializeStockForm(forms.ModelForm):
""" Form for serializing a StockItem. """
destination = forms.ChoiceField(label='Destination', required=True, help_text='Destination for serialized stock (by default, will remain in current location)')
serial_numbers = forms.CharField(label='Serial numbers', required=True, help_text='Unique serial numbers')
note = forms.CharField(label='Notes', required=False, help_text='Add transaction note')
serial_numbers = forms.CharField(label='Serial numbers', required=True, help_text='Unique serial numbers (must match quantity)')
note = forms.CharField(label='Notes', required=False, help_text='Add transaction note (optional)')
def get_location_choices(self):
locs = StockLocation.objects.all()