Class: SunatInvoice::Line

Inherits:
Model
  • Object
show all
Includes:
Utils
Defined in:
lib/sunat_invoice/line.rb

Direct Known Subclasses

Item, SummaryLine, VoidedLine

Constant Summary

Constants included from Utils

Utils::COMMON_NAMESPACES, Utils::CREDIT_NOTE_NAMESPACES, Utils::DAILY_SUMMARY_NAMESPACES, Utils::DEBIT_NOTE_NAMESPACES, Utils::INVOICE_NAMESPACES, Utils::SUMMARY_NAMESPACES, Utils::TRADE_NAMESPACES, Utils::VOIDED_NAMESPACES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils

#amount_xml, #ubl_ext

Methods inherited from Model

#initialize, #to_hash

Constructor Details

This class inherits a constructor from SunatInvoice::Model

Instance Attribute Details

#taxesObject

Returns the value of attribute taxes.



10
11
12
# File 'lib/sunat_invoice/line.rb', line 10

def taxes
  @taxes
end

Instance Method Details

#build_taxes_xml(xml, currency) ⇒ Object



12
13
14
15
16
# File 'lib/sunat_invoice/line.rb', line 12

def build_taxes_xml(xml, currency)
  taxes&.each do |tax|
    tax.xml(xml, currency)
  end
end