Enforces minimum quantity of 0 for quantity boxes
This commit is contained in:
		
							parent
							
								
									dba3773636
								
							
						
					
					
						commit
						0b7ccfc827
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -55,6 +55,7 @@ class _QuantityBoxProductsForm(_ProductsForm): | |||
|             field = forms.IntegerField( | ||||
|                 label=product.name, | ||||
|                 help_text=help_text, | ||||
|                 min_value=0, | ||||
|             ) | ||||
|             cls.base_fields[cls.field_name(product)] = field | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer