Sha256: f4955b854576044b20b71645b0ebada71be07d384736f4cf14841ad1b3944575

Contents?: true

Size: 546 Bytes

Versions: 37

Compression:

Stored size: 546 Bytes

Contents

module Xeroizer
  module Record
    
    class ItemModel < BaseModel
        
      set_permissions :read, :write, :update
      
    end
    
    class Item < Base
      
      set_primary_key :item_id
      set_possible_primary_keys :item_id, :code
      
      guid    :item_id
      string  :code
      string  :description
      
      belongs_to :purchase_details, :model_name => 'ItemPurchaseDetails'
      belongs_to :sales_details, :model_name => 'ItemSalesDetails'
      
      validates_presence_of :code
      
    end
    
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
xeroizer-2.16.1 lib/xeroizer/models/item.rb
xeroizer-2.16.0 lib/xeroizer/models/item.rb
xeroizer-2.15.9 lib/xeroizer/models/item.rb
xeroizer-2.15.8 lib/xeroizer/models/item.rb
xeroizer-2.15.7 lib/xeroizer/models/item.rb
xeroizer-2.15.6 lib/xeroizer/models/item.rb
xeroizer-float-2.15.5.2 lib/xeroizer/models/item.rb
xeroizer-float-2.15.5.1 lib/xeroizer/models/item.rb
xeroizer-2.15.5 lib/xeroizer/models/item.rb
xeroizer-float-2.15.3.16 lib/xeroizer/models/item.rb
xeroizer-float-2.15.3.15 lib/xeroizer/models/item.rb
xeroizer-float-2.15.3.14 lib/xeroizer/models/item.rb
xeroizer-float-2.15.3.13 lib/xeroizer/models/item.rb
xeroizer-float-2.15.3.12 lib/xeroizer/models/item.rb
xeroizer-float-2.15.3.11 lib/xeroizer/models/item.rb
xeroizer-float-2.15.3.10 lib/xeroizer/models/item.rb
xeroizer-float-2.15.3.9 lib/xeroizer/models/item.rb
xeroizer-float-2.15.3.8 lib/xeroizer/models/item.rb
xeroizer-float-2.15.3.7 lib/xeroizer/models/item.rb
xeroizer-float-2.15.3.6 lib/xeroizer/models/item.rb