anchor.diff:           ,days_sequence_reduce/1
            ,generate_docs/3
            ,get_template/2
  -         ,process_per_minute_calls/5
  -         ,process_one_time_fees/1
           ]).
   
   -include("onbill.hrl").
  
positive.code:             RegexFrom = kz_json:get_value(<<"caller_number_regex">>, CarrierDoc, <<"^\\d*$">>),
              RegexTo = kz_json:get_value(<<"called_number_regex">>, CarrierDoc, <<"^\\d*$">>),
              {CallsTotalSec, CallsTotalSumm} = lists:foldl(fun(X, Acc) -> maybe_count_call(RegexFrom, RegexTo, X, Acc) end, {0,0}, JObjs),
              per_minute_to_line({<<"per-minute-voip">>
                                 ,<<"description">>
                                 ,wht_util:units_to_dollars(CallsTotalSumm)
                                 ,kz_util:to_integer(CallsTotalSec / 60)
  
negative.code:     ,{<<"year">>, Year}
      ]] ++ Acc.
  
  aggregated_service_to_line({ServiceType, Item, Cost, Quantity, Period, DaysQty, Name}, Year, Month, DaysInMonth) when Cost > 0.0, Quantity > 0.0 ->
      [[{<<"category">>, ServiceType}
      ,{<<"item">>, Item}
      ,{<<"name">>, Name}
  