anchor.diff:  	ocs_event:notify(accumulated, AccBlance, balance).
   
   %% @private
  -accumulated_balance(Buckets, ProdRef) when is_list(Buckets) ->
  +accumulated_balance(Buckets, ProdRef) ->
  +	F = fun(UnitThresholdName) ->
  +			case application:get_env(ocs, UnitThresholdName) of
  +				{ok, undefined} ->
  +					false;
  +				{ok, Threshold} when is_integer(Threshold) ->
  +					true
  +			end
  +	end,
  +	UnitThresholdNames = [threshold_cents, threshold_bytes,
  +			threshold_seconds, threshold_messages],
  +	accumulated_balance(Buckets, ProdRef, lists:any(F, UnitThresholdNames)).
  +accumulated_balance(_Buckets, _ProdRef, false) ->
  +	[];
  +accumulated_balance(Buckets, ProdRef, true) when is_list(Buckets) ->
   	Fcents = fun(#bucket{units = cents}) ->
   				true;
   			(_) ->
  
positive.code: 	{SecondsBuckets, AccBalance2} = case lists:filter(Fseconds, Buckets2) of
  		[] ->
  			{[], AccBalance1};
  		BucketList2 ->
  			AccBal2 = build_acc(BucketList2, "accumulated seconds", seconds,
  					ProdRef, AccBalance1),
  			{BucketList2, AccBal2}
  	end,
  	Fmessages = fun(#bucket{units = messages}) ->
  
negative.code: 	{BytesBuckets, AccBalance1} = case lists:filter(Fbytes, Buckets1) of
  		[] ->
  			{[], AccBalance};
  		BucketList1 when is_list(BucketList1) ->
  			AccBal1 = build_acc(BucketList1, "accumulated octets", octets,
  					ProdRef, application:get_env(ocs, threshold_bytes), AccBalance),
  			{BucketList1, AccBal1}
  	end,
  	Fseconds = fun(#bucket{units = seconds}) ->
  