Sha256: 28a745b5a400863a97e671d6190d9248422a27f9d914f75d0671cac7b0b5ea3f

Contents?: true

Size: 858 Bytes

Versions: 13

Compression:

Stored size: 858 Bytes

Contents

require 'gecko/record/base'

module Gecko
  module Record
    class PurchaseOrderLineItem < Base
      belongs_to :purchase_order, writeable_on: :create
      belongs_to :variant, writeable_on: :create
      belongs_to :procurement
      belongs_to :tax_type

      attribute :quantity,          BigDecimal
      attribute :position,          Integer
      attribute :tax_rate_override, BigDecimal
      attribute :price,             BigDecimal
      attribute :label,             String
      attribute :freeform,          Boolean

      attribute :base_price,        BigDecimal, readonly: true
      attribute :extra_cost_value,  BigDecimal, readonly: true
      attribute :image_url,         String,     readonly: true
      # DEPRECATED
      # attribute :tax_rate, String
    end

    class PurchaseOrderLineItemAdapter < BaseAdapter

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gecko-ruby-0.9.1 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.9.0 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.8.0 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.2.6 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.7.1 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.7.0 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.6.0 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.5.0 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.2.5 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.2.4 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.2.3 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.2.2 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.2.0 lib/gecko/record/purchase_order_line_item.rb