Sha256: 542a59caa3d7bd160a2d95019837fb05c2fa886399c33f849e215500010dcd07

Contents?: true

Size: 1.12 KB

Versions: 52

Compression:

Stored size: 1.12 KB

Contents

module NetSuite
  module Records
    class TimeBill
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::TranEmp

      actions :get, :get_list, :add, :delete, :search, :update, :upsert

      fields :created_date, :is_billable, :last_modified_date, :memo, :override_rate, :paid_externally, :rate, :status,
             :supervisor_approval, :tran_date, :time_type

      field :custom_field_list,   CustomFieldList
      field :hours,               Duration

      record_refs :employee, :customer, :case_task_event, :payroll_item, :workplace, :item, :department, :location, :price,
                  :subsidiary, :temporary_local_jurisdiction, :temporary_state_jurisdiction

      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

52 entries across 52 versions & 1 rubygems

Version Path
netsuite-0.5.6 lib/netsuite/records/time_bill.rb
netsuite-0.5.5 lib/netsuite/records/time_bill.rb
netsuite-0.5.4 lib/netsuite/records/time_bill.rb
netsuite-0.5.3 lib/netsuite/records/time_bill.rb
netsuite-0.5.2 lib/netsuite/records/time_bill.rb
netsuite-0.5.1 lib/netsuite/records/time_bill.rb
netsuite-0.5.0 lib/netsuite/records/time_bill.rb
netsuite-0.4.9 lib/netsuite/records/time_bill.rb
netsuite-0.4.8 lib/netsuite/records/time_bill.rb
netsuite-0.4.7 lib/netsuite/records/time_bill.rb
netsuite-0.4.6 lib/netsuite/records/time_bill.rb
netsuite-0.4.5 lib/netsuite/records/time_bill.rb