mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Allow validation of empty money values
This commit is contained in:
		| @@ -46,7 +46,7 @@ class InvenTreeMoneySerializer(MoneyField): | ||||
|             amount = None | ||||
|  | ||||
|         try: | ||||
|             if amount is not None: | ||||
|             if amount is not None and amount is not empty: | ||||
|                 amount = Decimal(amount) | ||||
|         except: | ||||
|             raise ValidationError({ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user