Sha256: 11586324d6887fecceefe08396f6de19000d369490427569054255cd7637bb30

Contents?: true

Size: 888 Bytes

Versions: 7

Compression:

Stored size: 888 Bytes

Contents

# frozen_string_literal: true

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

7 entries across 7 versions & 1 rubygems

Version Path
gecko-ruby-0.12.3 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.12.2 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.12.1 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.12.0 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.11.1 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.11.0 lib/gecko/record/purchase_order_line_item.rb
gecko-ruby-0.10.0 lib/gecko/record/purchase_order_line_item.rb