Sha256: 167a8a3178ba6f517a7444c16cc7cf76060de8e75eb01c2fb8f0bfe5da4e3d1f
Contents?: true
Size: 1.06 KB
Versions: 32
Compression:
Stored size: 1.06 KB
Contents
module Toolhound # Class to parse GitHub repository owner and name from # URLs and to generate URLs class PurchaseOrder < Base # self.table_name = :rental self.primary_key = "intPOID" def default_selects { purchase_order: [ "intPOID", {"varPONO" => :po_no}, :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 end end
Version data entries
32 entries across 32 versions & 1 rubygems