anchor.diff:                ,<<"billing_address">> := BillingAddress
                 ,<<"agrm_number">> := AgrmNumber
                 ,<<"agrm_date">> := AgrmDate
  +              ,<<"agrm_type_id">> := AgrmTypeId
                 }
         ) ->
   lager:info("IAM BillingAddress: ~p",[BillingAddress]),
  
positive.code:               'true' -> <<>>;
                'false' -> A4
            end,
      AgrmVals =
          case AgrmNumber of
              <<"I0#", _/binary>> ->
                  [{[<<"agrm">>,<<"beeline_spb">>,<<"number">>], AgrmNumber}
                  ,{[<<"agrm">>,<<"beeline_spb">>,<<"date">>], format_agrm_date(AgrmDate)}];
              <<"0WG#", _/binary>> ->
                  [{[<<"agrm">>,<<"beeline_msk">>,<<"number">>], AgrmNumber}
                  ,{[<<"agrm">>,<<"beeline_msk">>,<<"date">>], format_agrm_date(AgrmDate)}];
              _ ->
                  [{[<<"agrm">>,<<"onnet">>,<<"number">>], AgrmNumber}
                  ,{[<<"agrm">>,<<"onnet">>,<<"date">>], format_agrm_date(AgrmDate)}]
          end,
      Values = props:filter_empty(
          [{<<"_id">>, ?ONBILL_DOC}
          ,{<<"pvt_type">>, ?ONBILL_DOC}
  
negative.code:     <<DD/binary, ".", MM/binary, ".", YYYY/binary>>;
  format_agrm_date(AgrmDate) ->
      AgrmDate.
  
  agrm_vals(_, _, 'undefined') ->
      [];
  agrm_vals(<<"I0#", AgrmNumber/binary>>, AgrmDate, AgrmTypeId) ->
      agrm_vals(AgrmNumber, AgrmDate, AgrmTypeId);
  agrm_vals(<<"0WG#", AgrmNumber/binary>>, AgrmDate, AgrmTypeId) ->
      agrm_vals(AgrmNumber, AgrmDate, AgrmTypeId);
  agrm_vals(AgrmNumber, AgrmDate, 1) ->
      [{[<<"agrm">>,<<"onnet">>,<<"number">>], AgrmNumber}
      ,{[<<"agrm">>,<<"onnet">>,<<"date">>], format_agrm_date(AgrmDate)}];
  agrm_vals(AgrmNumber, AgrmDate, 2) ->
      [{[<<"agrm">>,<<"beeline_spb">>,<<"number">>], <<"I0#", AgrmNumber/binary>>}
      ,{[<<"agrm">>,<<"beeline_spb">>,<<"date">>], format_agrm_date(AgrmDate)}];
  agrm_vals(AgrmNumber, AgrmDate, 3) ->
      [{[<<"agrm">>,<<"beeline_msk">>,<<"number">>], <<"0WG#", AgrmNumber/binary>>}
      ,{[<<"agrm">>,<<"beeline_msk">>,<<"date">>], format_agrm_date(AgrmDate)}].
  