anchor.diff:  -export([generate_docs/2
           ,generate_docs/3
           ,generate_docs/4
  +        ,save_pdf/6
           ,per_minute_reports/2
           ,per_minute_reports/3
           ,create_doc/3
  
positive.code:             {'error', _R}
      end.
  
  save_pdf(Vars, TemplateId, Carrier, AccountId, Year, Month) ->
      DocId = case props:get_value(<<"doc_number">>, Vars) of
                  'undefined' ->
  
negative.code:     save_pdf(DocId, Vars, TemplateId, Carrier, AccountId, Year, Month).
  
  save_pdf(DocId, Vars, TemplateId, Carrier, AccountId, Year, Month) ->
      Modb = kazoo_modb:get_modb(AccountId, Year, Month),
      save_pdf(DocId, Modb, Vars, TemplateId, Carrier, AccountId).
  
  total_to_words(Total) ->
      [TotalDiv, TotalRem] = binary:split(float_to_binary(kz_term:to_float(Total),[{decimals,2}]), <<".">>),
  