Class: Elmas::SalesInvoiceLine
- Inherits:
-
Object
- Object
- Elmas::SalesInvoiceLine
- Includes:
- Resource, SharedSalesAttributes
- Defined in:
- lib/elmas/resources/sales_invoice_line.rb
Constant Summary
Constants included from SharedSalesAttributes
Elmas::SharedSalesAttributes::SHARED_LINE_ATTRIBUTES, Elmas::SharedSalesAttributes::SHARED_SALES_ATTRIBUTES
Instance Attribute Summary
Attributes included from Resource
Instance Method Summary collapse
Methods included from Resource
#delete, #find, #find_all, #find_by, #get, #id, #id?, #initialize, #method_missing, #save, #valid?
Methods included from Resource::Sanitizer
#sanitize, #sanitize_date_time, #sanitize_has_many, #sanitize_relationship
Methods included from Resource::UriMethods
#apply_filters, #apply_order, #apply_select, #base_filter, #basic_identifier_uri, #query_attribute, #sanitize_value, #uri
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Elmas::Resource
Instance Method Details
#base_path ⇒ Object
9 10 11 |
# File 'lib/elmas/resources/sales_invoice_line.rb', line 9 def base_path "salesinvoice/SalesInvoiceLines" end |
#mandatory_attributes ⇒ Object
13 14 15 |
# File 'lib/elmas/resources/sales_invoice_line.rb', line 13 def mandatory_attributes %i[item invoice_ID] end |
#other_attributes ⇒ Object
17 18 19 20 21 22 |
# File 'lib/elmas/resources/sales_invoice_line.rb', line 17 def other_attributes SHARED_LINE_ATTRIBUTES.inject( %i[employee end_time line_number start_time subscription VAT_amount_DC VAT_amount_FC GL_account discount unit_price], :<< ) end |