Class: Elmas::SalesEntry
- Inherits:
-
Object
- Object
- Elmas::SalesEntry
- Includes:
- Resource
- Defined in:
- lib/elmas/resources/sales_entry.rb
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
7 8 9 |
# File 'lib/elmas/resources/sales_entry.rb', line 7 def base_path "salesentry/SalesEntries" end |
#mandatory_attributes ⇒ Object
11 12 13 |
# File 'lib/elmas/resources/sales_entry.rb', line 11 def mandatory_attributes [:journal, :contact, :sales_entry_lines] end |
#other_attributes ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/elmas/resources/sales_entry.rb', line 15 def other_attributes [ :batch_number, :currency, :customer, :document, :due_date, :entry_date, :entry_number, :invoice_number, :order_number, :payment_condition, :payment_reference, :process_number, :rate, :reporting_period, :reporting_year, :reversal, :VAT_amount_FC, :your_ref ] end |