Sha256: d895ef12253301a193c6566d4c38c691a085c1d8cc507390b203e1f7c4dcbfaa

Contents?: true

Size: 1.22 KB

Versions: 7

Compression:

Stored size: 1.22 KB

Contents

require 'gecko/record/base'

module Gecko
  module Record
    class PurchaseOrder < Base
      has_many :purchase_order_line_items
      has_many :procurements

      belongs_to :company
      belongs_to :supplier_address,   class_name: "Address"
      belongs_to :stock_location,     class_name: "Location"
      belongs_to :billing_address,    class_name: "Location"

      belongs_to :currency
      belongs_to :default_price_list, class_name: "PriceList"

      attribute :order_number,          String
      attribute :reference_number,      String
      attribute :email,                 String
      attribute :due_at,                Date

      attribute :status,                String
      attribute :procurement_status,    String
      attribute :notes,                 String
      attribute :tax_treatment,         String

      attribute :destination_url,       String
      attribute :document_url,          String

      attribute :total,                 BigDecimal
      attribute :cached_quantity,       BigDecimal
      attribute :cached_total,          BigDecimal

      # DEPRECATED
      # attribute :tax_type, String
      # attribute :default_price_type_id
    end

    class PurchaseOrderAdapter < BaseAdapter

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gecko-ruby-0.0.10 lib/gecko/record/purchase_order.rb
gecko-ruby-0.0.9 lib/gecko/record/purchase_order.rb
gecko-ruby-0.0.8 lib/gecko/record/purchase_order.rb
gecko-ruby-0.0.7 lib/gecko/record/purchase_order.rb
gecko-ruby-0.0.6 lib/gecko/record/purchase_order.rb
gecko-ruby-0.0.5 lib/gecko/record/purchase_order.rb
gecko-ruby-0.0.4 lib/gecko/record/purchase_order.rb