Allow type to be null when adding a new supply or updating a supply with a new product