anchor.diff:             ++ [{Key, kz_json:get_value(Key, AccountOnbillDoc)} || Key <- kz_json:get_keys(AccountOnbillDoc), filter_vars(Key)],
       save_pdf(Vars ++ [{<<"this_document">>, Document}], Document, MainCarrier, AccountId, Year, Month).
   
  -get_aggregated_vars(_AccountId, _Year, _Month, _Carrier) ->
  -    ok.
  +get_aggregated_vars(AccountId, Year, Month, Carrier) ->
  +    TemplateId = <<"invoice">>,
  +    Modb = kazoo_modb:get_modb(AccountId, Year, Month),
  +    case kz_datamgr:open_doc(Modb, ?DOC_NAME_FORMAT(Carrier, TemplateId)) of
  +        {ok, InvoiceDoc} -> [{Key, kz_json:get_value(Key, InvoiceDoc)} || Key <- kz_json:get_keys(InvoiceDoc), filter_vars(Key)];
  +        _ -> [] 
  +    end.
  
positive.code:                                                       ,{0,0,0}
                                                        ,VatUpdatedFeesList
                                                       ),
      [TotalBruttoDiv, TotalBruttoRem] = binary:split(float_to_binary(TotalBrutto,[{decimals,2}]), <<".">>),
      [TotalVatDiv, TotalVatRem] = binary:split(float_to_binary(TotalVAT,[{decimals,2}]), <<".">>),
      Vars = [{<<"monthly_fees">>, VatUpdatedFeesList}
             ,{<<"account_addr">>, address_to_line(AccountOnbillDoc)}
             ,{<<"total_netto">>, onbill_util:price_round(TotalNetto)}
  
negative.code: 
  maybe_aggregate_invoice(AccountId, Year, Month, Carriers) ->
      AccountOnbillDoc = onbill_util:account_doc(AccountId),
      case kz_json:get_value(<<"aggregate_invoice">>, AccountOnbillDoc) of
          'true' -> aggregate_invoice(AccountId, Year, Month, Carriers);
          _ -> 'ok'
      end.
  