inventories stocktacke values and quantities changed formula in the database