Class: Xsys::Model::PurchasesPosition
- Inherits:
-
Object
- Object
- Xsys::Model::PurchasesPosition
- Defined in:
- lib/xsys/model/purchases_position.rb
Instance Attribute Summary collapse
-
#amount_iva_perception ⇒ Object
Returns the value of attribute amount_iva_perception.
-
#amount_iva_retention ⇒ Object
Returns the value of attribute amount_iva_retention.
-
#amount_taxes_10_5 ⇒ Object
Returns the value of attribute amount_taxes_10_5.
-
#amount_taxes_21 ⇒ Object
Returns the value of attribute amount_taxes_21.
-
#amount_taxes_27 ⇒ Object
Returns the value of attribute amount_taxes_27.
-
#amount_total ⇒ Object
Returns the value of attribute amount_total.
-
#business_unit ⇒ Object
Returns the value of attribute business_unit.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ PurchasesPosition
constructor
A new instance of PurchasesPosition.
- #taxes_grand_total ⇒ Object
Constructor Details
#initialize(attributes = {}) ⇒ PurchasesPosition
Returns a new instance of PurchasesPosition.
7 8 9 10 11 |
# File 'lib/xsys/model/purchases_position.rb', line 7 def initialize(attributes={}) attributes.each do |k,v| self.send("#{k}=", v) if self.respond_to?(k) end end |
Instance Attribute Details
#amount_iva_perception ⇒ Object
Returns the value of attribute amount_iva_perception.
4 5 6 |
# File 'lib/xsys/model/purchases_position.rb', line 4 def amount_iva_perception @amount_iva_perception end |
#amount_iva_retention ⇒ Object
Returns the value of attribute amount_iva_retention.
4 5 6 |
# File 'lib/xsys/model/purchases_position.rb', line 4 def amount_iva_retention @amount_iva_retention end |
#amount_taxes_10_5 ⇒ Object
Returns the value of attribute amount_taxes_10_5.
4 5 6 |
# File 'lib/xsys/model/purchases_position.rb', line 4 def amount_taxes_10_5 @amount_taxes_10_5 end |
#amount_taxes_21 ⇒ Object
Returns the value of attribute amount_taxes_21.
4 5 6 |
# File 'lib/xsys/model/purchases_position.rb', line 4 def amount_taxes_21 @amount_taxes_21 end |
#amount_taxes_27 ⇒ Object
Returns the value of attribute amount_taxes_27.
4 5 6 |
# File 'lib/xsys/model/purchases_position.rb', line 4 def amount_taxes_27 @amount_taxes_27 end |
#amount_total ⇒ Object
Returns the value of attribute amount_total.
4 5 6 |
# File 'lib/xsys/model/purchases_position.rb', line 4 def amount_total @amount_total end |
#business_unit ⇒ Object
Returns the value of attribute business_unit.
4 5 6 |
# File 'lib/xsys/model/purchases_position.rb', line 4 def business_unit @business_unit end |
Instance Method Details
#taxes_grand_total ⇒ Object
13 14 15 |
# File 'lib/xsys/model/purchases_position.rb', line 13 def taxes_grand_total amount_taxes_27 + amount_taxes_21 + amount_taxes_10_5 + amount_iva_perception + amount_iva_retention end |