| Class | Order |
| In: |
app/models/order.rb
|
| Parent: | ActiveRecord::Base |
| PAYMENT_TYPES | = | { "Check" => "check", "Credit Card" => "cc", "Purchase Order" => "po" | A list of the types of payments we accept. The key is the text displayed in the selection list, and the value is the string that goes into the database. |
Return a count of all orders pending shipping.
# File app/models/order.rb, line 20
20: def self.count_pending
21: count("shipped_at is null")
22: end
Return all orders pending shipping.
# File app/models/order.rb, line 25
25: def self.pending_shipping
26: find(:all, :conditions => "shipped_at is null")
27: end