Sha256: b568c847c1d290d8fe460aef8b386260f7006d5b0a32fa75ae563b79e7a9ed70

Contents?: true

Size: 1.95 KB

Versions: 5

Compression:

Stored size: 1.95 KB

Contents

module NetSuite
  module Records
    class Job
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::ListRel

      actions :get, :add, :delete

      fields :account_number, :allocate_payroll_expenses, :allow_all_resources_for_tasks, :allow_expenses, :allow_time,
        :alt_name, :alt_phone, :bill_pay, :calculated_end_date, :calculated_end_date_baseline, :comments, :company_name,
        :date_created, :default_address, :email, :email_preference, :end_date, :entity_id, :estimated_cost,
        :estimated_gross_profit, :estimated_gross_profit_percent, :estimated_labor_cost, :estimated_labor_cost_baseline,
        :estimated_labor_revenue, :estimated_revenue, :estimated_time, :fax, :fx_rate, :global_subscription_status,
        :include_crm_tasks_in_totals, :is_exempt_time, :is_inactive, :is_productive_time, :is_utilized_time, :job_billing_type,
        :job_price, :last_baseline_date, :last_modified_date, :limit_time_to_assignees, :materialize_time, :opening_balance,
        :opening_balance_account, :opening_balance_date, :percent_complete, :percent_time_complete, :phone, :phonetic_name,
        :projected_end_date, :projected_end_date_baseline, :start_date, :start_date_baseline

      field :estimated_time_override, Duration
      field :actual_time,             Duration
      field :time_remaining,          Duration

      record_refs :billing_schedule, :category, :currency, :custom_form, :entity_status, :estimate_rev_rec_template, :job_item,
        :job_type, :language, :parent, :subsidiary, :workplace

      attr_reader :internal_id
      attr_accessor :external_id

      def initialize(attributes = {})
        @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
        @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
        initialize_from_attributes_hash(attributes)
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
netsuite-0.0.31 lib/netsuite/records/job.rb
netsuite-0.0.30 lib/netsuite/records/job.rb
netsuite-0.0.29 lib/netsuite/records/job.rb
netsuite-0.0.28 lib/netsuite/records/job.rb
netsuite-0.0.27 lib/netsuite/records/job.rb