186. When a taxpayer ceases to carry on a business or sells all or part of it and thereupon or subsequently sells any property included in the inventory of such business, he is deemed to have sold such property in the course of carrying on the business.