Sha256: dd0c966b7f4ea119679203d30d79ebf5020170f5a1c2ea4f702b68a5bff9d6ca

Contents?: true

Size: 1.41 KB

Versions: 32

Compression:

Stored size: 1.41 KB

Contents

module Toolhound

  # Class to parse GitHub repository owner and name from
  # URLs and to generate URLs
  class PurchaseOrderItem < Base


    self.table_name   = :purchase_order_detail
    self.primary_key  = "intPODetailID"

    def default_selects
      {
        purchase_order_detail: [
          "intPOID", :int_inventory_id, :dec_cost, :int_qty_ordered, :int_qty_received, :int_qty_rejected,
          :int_manufacturer_id, :bol_rent, :int_purchase_uof_m, :int_qty_required, :int_qty_returned,
          :dte_expected
        ]
      }
      # {
        # purchase_order:   [
        #   "intPOID", "varPONO", :int_vendor_id, :int_location_id, :int_payment_term_id, :bol_closed, :bol_approved,
        #   :dte_created_date, :dte_modified_date, :dte_cancelled_date, :bol_cancelled, :var_revision_no
        # ],
        # purchase_order_text: [:txt_notes]

        # rental_item_detail: [:var_status, :status_date, ],
        # rental_detail: [:int_rental_id, :int_inventory_id, :int_quantity, :dec_daily, :dec_weekly, :dec_monthly, :dec_selling_price],
      # }
    end

    def default_joins
      arr = []
      arr << "INNER JOIN tblPurchaseOrderText ON (tblPurchaseOrderText.intPOID = tblPurchaseOrder.intPOID AND varLocaleID = '#{locale}')"
      # arr << "INNER JOIN tblRentalDetail ON (tblRentalDetail.intRentalDetailID = tblRentalItem.intRentalDetailID)"

      arr
    end

    def for_po(po_id)
      
    end

  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
toolhound-ruby-1.0.37 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.36 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.35 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.34 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.33 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.32 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.31 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.30 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.29 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.28 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.27 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.26 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.25 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.24 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.23 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.22 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.21 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.20 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.19 lib/toolhound-ruby/purchase_order_item.rb
toolhound-ruby-1.0.18 lib/toolhound-ruby/purchase_order_item.rb