anchor.diff:  		Result :: [Rated].
   %% @doc Construct rated product usage.
   %% @hidden
  -rated(Debits, Rated) when map_size(Debits) =:= 0 ->
  +rated(Debits, Rated)
  +		when map_size(Debits) =:= 0, is_list(Rated) ->
   	Rated;
  +rated(Debits, Rated)
  +		when map_size(Debits) =:= 0 ->
  +	[Rated];
   rated(Debits, #rated{} = Rated) ->
   	rated(Debits, [Rated]);
   rated(Debits, [#rated{} = Rated | T]) ->
  
positive.code: 			case catch ocs:find_sn_network(Table1, ServiceNetwork) of
  				{_, _, _Description, TabPrefix} ->
  						Table2 = list_to_existing_atom(TabPrefix ++ "-" ++ TariffTable),
  						case catch ocs_gtt:lookup_last(Table2, Address) of
  							{Description1, Amount, _} when is_integer(Amount) ->
  								case Amount of
  									N when N >= 0 ->
  
negative.code: 			throw(price_not_found)
  	end;
  rate2(Protocol, Service, Buckets, Timestamp, _Address, _Direction,
  		#offer{price = Prices} = _Offer, Flag, DebitAmounts, ReserveAmounts,
  		#state{charging_key = ChargingKey} = State) ->
  	F = fun(#price{type = tariff, units = octets}) ->
  				true;
  