anchor.diff:              ResellerVars = onbill_util:reseller_vars(AccountId),
               DailyItemsPaths = lists:foldl(fun (Category, Acc) -> [[Category, Item] || Item <- kz_json:get_keys(Category, Items)] ++ Acc end
                                          ,[]
  -                                       ,kz_json:get_value(<<"pvt_daily_count_categories">>, ResellerVars, [])
  +                                       ,daily_count_categories(ResellerVars)
                                          ),
               [kz_json:get_value(ItemPath, Items) || ItemPath <- DailyItemsPaths]
       end.
  
positive.code:         ,current_usage_amount_in_units/1
          ,today_dailyfee_absent/1
          ,maybe_issue_previous_billing_period_docs/4
          ]).
  
  -include("onbill.hrl").
  
negative.code:                                  )
      end.
  
  -spec daily_count_categories(kz_json:object()) -> kz_term:proplist().
  daily_count_categories(Vars) ->
      kz_json:get_first_defined([<<"pvt_daily_count_categories">>,<<"daily_count_categories">>], Vars, []).
  
  