Sha256: 971b397e607cbddf65c029d0b6aa97af7f71047ca763094125aed19be04872c5

Contents?: true

Size: 556 Bytes

Versions: 12

Compression:

Stored size: 556 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 => 'ItemPurchaseSaleDetails'
      belongs_to :sales_details, :model_name => 'ItemPurchaseSaleDetails'
      
      validates_presence_of :code
      
    end
    
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
xeroizer-0.3.5 lib/xeroizer/models/item.rb
xeroizer-0.3.4 lib/xeroizer/models/item.rb
xeroizer-0.3.3 lib/xeroizer/models/item.rb
xeroizer-0.3.2 lib/xeroizer/models/item.rb
xeroizer-0.3.1 lib/xeroizer/models/item.rb
xeroizer-0.3.0 lib/xeroizer/models/item.rb
xeroizer-0.2.2 lib/xeroizer/models/item.rb
xeroizer-0.2.1 lib/xeroizer/models/item.rb
xeroizer-0.2.0 lib/xeroizer/models/item.rb
xeroizer-0.1.3 lib/xeroizer/models/item.rb
xeroizer-0.1.2 lib/xeroizer/models/item.rb
xeroizer-0.1.0 lib/xeroizer/models/item.rb