anchor.diff:              select_daily_count_items_json(select_non_zero_items_json(Items), AccountId);
           'true' ->
               ResellerVars = onbill_util:reseller_vars(AccountId),
  -            CategoriesList = kz_json:get_value(<<"pvt_daily_count_categories">>, ResellerVars, []),
  +            CategoriesList = daily_count_categories(ResellerVars),
               Upd = [{Category, kz_json:get_value(Category, Items)}
                      || Category <- CategoriesList
                     ],
  
positive.code:         ,current_usage_amount_in_units/1
          ,today_dailyfee_absent/1
          ,maybe_issue_previous_billing_period_docs/4
          ]).
  
  -include("onbill.hrl").
  
negative.code:             ResellerVars = onbill_util:reseller_vars(AccountId),
              DailyItemsPaths = lists:foldl(fun (Category, Acc) -> [[Category, Item] || Item <- kz_json:get_keys(Category, Items)] ++ Acc end
                                         ,[]
                                         ,daily_count_categories(ResellerVars)
                                         ),
              [kz_json:get_value(ItemPath, Items) || ItemPath <- DailyItemsPaths]
      end.
  