module SunatInvoice::Utils
Constants
- COMMON_NAMESPACES
- CREDIT_NOTE_NAMESPACES
- DAILY_SUMMARY_NAMESPACES
- DEBIT_NOTE_NAMESPACES
- INVOICE_NAMESPACES
- SUMMARY_NAMESPACES
- TRADE_NAMESPACES
- VOIDED_NAMESPACES
Public Instance Methods
amount_xml(xml, tag, price, currency)
click to toggle source
# File lib/sunat_invoice/utils.rb, line 66 def amount_xml(xml, tag, price, currency) xml.send(tag, price, currencyID: currency) end
ubl_ext(xml, &block)
click to toggle source
# File lib/sunat_invoice/utils.rb, line 60 def ubl_ext(xml, &block) xml['ext'].UBLExtension do xml['ext'].ExtensionContent(&block) end end