lib/br_nfe/service/xml/v1/_tc_dados_tomador.xml.slim
- destinatario ||= false
- raise "Deve ser passado uma vsariavel local chamada destinatario" unless destinatario
*{tag: "#{namespace_for_tags}IdentificacaoTomador"}
= render_xml '_tc_identificacao_tomador', destinatario: destinatario
- if destinatario.razao_social.present?
*{tag: "#{namespace_for_tags}RazaoSocial"} = ts_razao_social(destinatario.razao_social)
- if destinatario.endereco.is_present?
*{tag: "#{namespace_for_tags}Endereco"}
= render_xml '_tc_endereco', address: destinatario.endereco
- if destinatario.telefone.present? || destinatario.email.present?
*{tag: "#{namespace_for_tags}Contato"}
= render_xml '_tc_contato', contact: destinatario