Class: SunatInvoice::Line
- Includes:
- Utils
- Defined in:
- lib/sunat_invoice/line.rb
Direct Known Subclasses
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
-
#taxes ⇒ Object
Returns the value of attribute taxes.
Instance Method Summary collapse
Methods included from Utils
Methods inherited from Model
Constructor Details
This class inherits a constructor from SunatInvoice::Model
Instance Attribute Details
#taxes ⇒ Object
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 |