effective_orders 1.8.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +150 -60
- data/Rakefile +0 -3
- data/active_admin/effective_orders.rb +14 -9
- data/app/assets/javascripts/effective_orders.js +2 -0
- data/app/assets/javascripts/effective_orders/{stripe_charges.js.coffee → providers/stripe_charges.js.coffee} +1 -1
- data/app/assets/javascripts/effective_orders/{stripe_subscriptions.js.coffee → providers/stripe_subscriptions.js.coffee} +1 -1
- data/app/assets/stylesheets/effective_orders/_order.scss +9 -3
- data/app/controllers/admin/orders_controller.rb +87 -3
- data/app/controllers/concerns/acts_as_active_admin_controller.rb +2 -1
- data/app/controllers/effective/carts_controller.rb +4 -2
- data/app/controllers/effective/orders_controller.rb +101 -60
- data/app/controllers/effective/providers/app_checkout.rb +10 -2
- data/app/controllers/effective/providers/ccbill.rb +34 -0
- data/app/controllers/effective/providers/cheque.rb +30 -0
- data/app/controllers/effective/providers/moneris.rb +7 -7
- data/app/controllers/effective/providers/paypal.rb +7 -5
- data/app/controllers/effective/providers/pretend.rb +22 -0
- data/app/controllers/effective/providers/stripe.rb +26 -24
- data/app/controllers/effective/webhooks_controller.rb +1 -1
- data/app/helpers/effective_carts_helper.rb +59 -29
- data/app/helpers/effective_ccbill_helper.rb +25 -0
- data/app/helpers/effective_orders_helper.rb +50 -41
- data/app/helpers/effective_paypal_helper.rb +11 -11
- data/app/mailers/effective/orders_mailer.rb +95 -20
- data/app/models/concerns/acts_as_purchasable.rb +14 -22
- data/app/models/effective/cart.rb +9 -15
- data/app/models/effective/cart_item.rb +15 -13
- data/app/models/effective/customer.rb +9 -9
- data/app/models/effective/datatables/order_items.rb +14 -8
- data/app/models/effective/datatables/orders.rb +56 -69
- data/app/models/effective/order.rb +250 -139
- data/app/models/effective/order_item.rb +23 -16
- data/app/models/effective/product.rb +23 -0
- data/app/models/effective/providers/ccbill_postback.rb +85 -0
- data/app/models/effective/{stripe_charge.rb → providers/stripe_charge.rb} +1 -1
- data/app/models/effective/subscription.rb +16 -12
- data/app/models/effective/tax_rate_calculator.rb +45 -0
- data/app/views/admin/customers/index.html.haml +2 -5
- data/app/views/admin/order_items/index.html.haml +2 -5
- data/app/views/admin/orders/_actions.html.haml +2 -0
- data/app/views/admin/orders/_form.html.haml +28 -0
- data/app/views/admin/orders/_order_item_fields.html.haml +9 -0
- data/app/views/admin/orders/index.html.haml +9 -5
- data/app/views/admin/orders/new.html.haml +3 -0
- data/app/views/effective/carts/_cart.html.haml +3 -12
- data/app/views/effective/carts/_cart_actions.html.haml +4 -0
- data/app/views/effective/carts/show.html.haml +10 -12
- data/app/views/effective/orders/_checkout_step1.html.haml +46 -0
- data/app/views/effective/orders/_checkout_step2.html.haml +33 -0
- data/app/views/effective/orders/_order.html.haml +2 -0
- data/app/views/effective/orders/_order_actions.html.haml +10 -5
- data/app/views/effective/orders/_order_footer.html.haml +1 -0
- data/app/views/effective/orders/_order_items.html.haml +11 -9
- data/app/views/effective/orders/_order_note.html.haml +8 -0
- data/app/views/effective/orders/_order_note_fields.html.haml +5 -0
- data/app/views/effective/orders/_order_shipping.html.haml +4 -4
- data/app/views/effective/orders/_order_user_fields.html.haml +1 -0
- data/app/views/effective/orders/_orders_table.html.haml +27 -0
- data/app/views/effective/orders/ccbill/_form.html.haml +24 -0
- data/app/views/effective/orders/checkout_step1.html.haml +3 -0
- data/app/views/effective/orders/checkout_step2.html.haml +3 -0
- data/app/views/effective/orders/cheque/_form.html.haml +2 -0
- data/app/views/effective/orders/cheque/pay_by_cheque.html.haml +9 -0
- data/app/views/effective/orders/declined.html.haml +4 -2
- data/app/views/effective/orders/my_purchases.html.haml +1 -1
- data/app/views/effective/orders/my_sales.html.haml +1 -1
- data/app/views/effective/orders/purchased.html.haml +3 -2
- data/app/views/effective/orders/show.html.haml +1 -1
- data/app/views/effective/orders/stripe/_form.html.haml +5 -5
- data/app/views/effective/orders_mailer/order_error.html.haml +11 -0
- data/app/views/effective/orders_mailer/payment_request_to_buyer.html.haml +13 -0
- data/app/views/effective/orders_mailer/pending_order_invoice_to_buyer.html.haml +13 -0
- data/app/views/layouts/effective_orders_mailer_layout.html.haml +7 -7
- data/config/routes.rb +39 -24
- data/db/migrate/01_create_effective_orders.rb.erb +20 -1
- data/db/upgrade/03_upgrade_effective_orders_from1x.rb.erb +95 -0
- data/lib/effective_orders.rb +67 -9
- data/lib/effective_orders/app_checkout_service.rb +1 -2
- data/lib/effective_orders/engine.rb +46 -14
- data/lib/effective_orders/version.rb +1 -1
- data/lib/generators/effective_orders/install_generator.rb +1 -0
- data/lib/generators/effective_orders/upgrade_from03x_generator.rb +1 -0
- data/lib/generators/effective_orders/upgrade_from1x_generator.rb +31 -0
- data/lib/generators/templates/effective_orders.rb +131 -66
- data/lib/generators/templates/effective_orders_mailer_preview.rb +28 -13
- data/spec/controllers/admin/orders_controller_spec.rb +242 -0
- data/spec/controllers/ccbill_orders_controller_spec.rb +103 -0
- data/spec/controllers/moneris_orders_controller_spec.rb +23 -23
- data/spec/controllers/orders_controller_spec.rb +167 -79
- data/spec/controllers/stripe_orders_controller_spec.rb +7 -7
- data/spec/dummy/app/models/product.rb +0 -8
- data/spec/dummy/app/models/product_with_float_price.rb +0 -8
- data/spec/dummy/app/models/user.rb +2 -19
- data/spec/dummy/config/application.rb +2 -1
- data/spec/dummy/config/environments/test.rb +1 -0
- data/spec/dummy/config/initializers/effective_orders.rb +109 -64
- data/spec/dummy/db/schema.rb +15 -2
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +0 -258
- data/spec/models/acts_as_purchasable_spec.rb +8 -6
- data/spec/models/factories_spec.rb +7 -1
- data/spec/models/order_item_spec.rb +1 -1
- data/spec/models/order_spec.rb +165 -46
- data/spec/models/stripe_charge_spec.rb +5 -5
- data/spec/spec_helper.rb +2 -0
- data/spec/support/factories.rb +49 -33
- metadata +47 -64
- data/app/views/effective/orders/_checkout_step_1.html.haml +0 -43
- data/app/views/effective/orders/_checkout_step_2.html.haml +0 -25
- data/app/views/effective/orders/_my_purchases.html.haml +0 -17
- data/app/views/effective/orders/checkout.html.haml +0 -3
- data/app/views/effective/orders/new.html.haml +0 -4
- data/spec/dummy/log/development.log +0 -82
@@ -13,7 +13,7 @@ describe Effective::OrdersController, type: :controller do
|
|
13
13
|
let(:buyer) { Effective::Customer.for_user(order.user) }
|
14
14
|
let(:token) { stripe_helper.generate_card_token }
|
15
15
|
let(:stripe_charge_params) do
|
16
|
-
{:
|
16
|
+
{:effective_providers_stripe_charge => {'effective_order_id' => order.to_param, 'token' => token}}
|
17
17
|
end
|
18
18
|
|
19
19
|
describe '#stripe_charge' do
|
@@ -24,20 +24,20 @@ describe Effective::OrdersController, type: :controller do
|
|
24
24
|
describe 'invalid parameters' do
|
25
25
|
it 'raises RecordNotFound when passed an unknown order id' do
|
26
26
|
expect {
|
27
|
-
post :stripe_charge, stripe_charge_params.tap { |x| x[:
|
27
|
+
post :stripe_charge, stripe_charge_params.tap { |x| x[:effective_providers_stripe_charge]['effective_order_id'] = 999 }
|
28
28
|
}.to raise_error(ActiveRecord::RecordNotFound)
|
29
29
|
end
|
30
30
|
|
31
31
|
it 'renders the :create action on validation failure' do
|
32
32
|
expect(subject).not_to receive(:process_stripe_charge)
|
33
33
|
|
34
|
-
post :stripe_charge, stripe_charge_params.tap { |x| x[:
|
34
|
+
post :stripe_charge, stripe_charge_params.tap { |x| x[:effective_providers_stripe_charge]['token'] = nil }
|
35
35
|
|
36
36
|
flash[:danger].downcase.include?('token').should eq true
|
37
37
|
assigns(:stripe_charge).errors[:token].present?.should eq true
|
38
38
|
|
39
39
|
assigns(:order).purchased?.should eq false
|
40
|
-
response.should render_template(:
|
40
|
+
response.should render_template(:checkout_step2)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
@@ -84,7 +84,7 @@ describe Effective::OrdersController, type: :controller do
|
|
84
84
|
assigns(:order).purchased?.should eq false
|
85
85
|
assigns(:stripe_charge).errors[:base].first.downcase.include?('unable to process order with stripe').should eq true
|
86
86
|
assigns(:stripe_charge).errors[:base].first.downcase.include?('the card was declined').should eq true
|
87
|
-
response.should render_template(:
|
87
|
+
response.should render_template(:checkout_step2)
|
88
88
|
end
|
89
89
|
end
|
90
90
|
end
|
@@ -93,9 +93,9 @@ describe Effective::OrdersController, type: :controller do
|
|
93
93
|
let(:order) { FactoryGirl.create(:order_with_subscription) }
|
94
94
|
let(:buyer) { Effective::Customer.for_user(order.user) }
|
95
95
|
let(:subscription) { order.order_items[1].purchasable }
|
96
|
-
let(:token) { stripe_helper.generate_card_token
|
96
|
+
let(:token) { stripe_helper.generate_card_token }
|
97
97
|
let(:stripe_charge_params) do
|
98
|
-
{:
|
98
|
+
{:effective_providers_stripe_charge => {'effective_order_id' => order.to_param, 'token' => token}}
|
99
99
|
end
|
100
100
|
|
101
101
|
before do
|
@@ -5,24 +5,7 @@ class User < ActiveRecord::Base
|
|
5
5
|
|
6
6
|
attr_accessor :first_name, :last_name
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
encrypted_password :string, :validates => [:presence]
|
11
|
-
reset_password_token :string
|
12
|
-
reset_password_sent_at :datetime
|
13
|
-
remember_created_at :datetime
|
14
|
-
confirmation_sent_at :datetime
|
15
|
-
confirmed_at :datetime
|
16
|
-
confirmation_token :string
|
17
|
-
unconfirmed_email :string
|
18
|
-
sign_in_count :integer, :default => 0
|
19
|
-
current_sign_in_at :datetime
|
20
|
-
last_sign_in_at :datetime
|
21
|
-
current_sign_in_ip :string
|
22
|
-
last_sign_in_ip :string
|
23
|
-
|
24
|
-
email :string
|
25
|
-
|
26
|
-
timestamps
|
8
|
+
def to_s
|
9
|
+
email
|
27
10
|
end
|
28
11
|
end
|
@@ -8,6 +8,7 @@ EffectiveOrders.setup do |config|
|
|
8
8
|
config.cart_items_table_name = :cart_items
|
9
9
|
config.customers_table_name = :customers
|
10
10
|
config.subscriptions_table_name = :subscriptions
|
11
|
+
config.products_table_name = :custom_products
|
11
12
|
|
12
13
|
# Authorization Method
|
13
14
|
#
|
@@ -55,8 +56,8 @@ EffectiveOrders.setup do |config|
|
|
55
56
|
# Don't validate_associated :user when saving an Order
|
56
57
|
config.skip_user_validation = false
|
57
58
|
|
58
|
-
|
59
|
-
config.
|
59
|
+
config.collect_note = true
|
60
|
+
config.collect_note_message = 'please enter a note'
|
60
61
|
|
61
62
|
# Minimum Charge
|
62
63
|
# Prevent orders less than this value from being purchased
|
@@ -84,6 +85,15 @@ EffectiveOrders.setup do |config|
|
|
84
85
|
config.allow_pretend_purchase_in_production = false
|
85
86
|
config.allow_pretend_purchase_in_production_message = '* payment information is not required to process this order at this time.'
|
86
87
|
|
88
|
+
# Pay by Cheque
|
89
|
+
# Allow user to create pending orders in order to pay for it by cheque offline. Pending orders are not
|
90
|
+
# considered purchased and have 'pending' purchase state
|
91
|
+
#
|
92
|
+
# When true, there will be a 'Pay by Cheque' button on the Checkout screen.
|
93
|
+
# Clicking this button will mark an Order pending and redirect the user to the
|
94
|
+
# pending order page.
|
95
|
+
config.cheque_enabled = true
|
96
|
+
|
87
97
|
# Show/hide the 'Order History' button on the 'Cart Page'
|
88
98
|
config.show_order_history_button = true
|
89
99
|
|
@@ -92,11 +102,11 @@ EffectiveOrders.setup do |config|
|
|
92
102
|
|
93
103
|
# config.layout = 'application' # All EffectiveOrders controllers will use this layout
|
94
104
|
config.layout = {
|
95
|
-
:
|
96
|
-
:
|
97
|
-
:
|
98
|
-
:
|
99
|
-
:
|
105
|
+
carts: 'application',
|
106
|
+
orders: 'application',
|
107
|
+
subscriptions: 'application',
|
108
|
+
admin_customers: 'application',
|
109
|
+
admin_orders: 'application'
|
100
110
|
}
|
101
111
|
|
102
112
|
# SimpleForm Options
|
@@ -104,12 +114,12 @@ EffectiveOrders.setup do |config|
|
|
104
114
|
config.simple_form_options = {}
|
105
115
|
|
106
116
|
# config.simple_form_options = {
|
107
|
-
# :
|
108
|
-
# :
|
109
|
-
# :
|
110
|
-
# :
|
111
|
-
# :
|
112
|
-
# :
|
117
|
+
# html: {class: 'form-horizontal'},
|
118
|
+
# wrapper: :horizontal_form,
|
119
|
+
# wrapper_mappings: {
|
120
|
+
# boolean: :horizontal_boolean,
|
121
|
+
# check_boxes: :horizontal_radio_and_checkboxes,
|
122
|
+
# radio_buttons: :horizontal_radio_and_checkboxes
|
113
123
|
# }
|
114
124
|
# }
|
115
125
|
|
@@ -117,29 +127,35 @@ EffectiveOrders.setup do |config|
|
|
117
127
|
# effective_orders will send out receipts to the buyer, seller and admins.
|
118
128
|
# For all the emails, the same :subject_prefix will be prefixed. Leave as nil / empty string if you don't want any prefix
|
119
129
|
#
|
120
|
-
# The subject_for_admin_receipt, subject_for_buyer_receipt and
|
130
|
+
# The subject_for_admin_receipt, subject_for_buyer_receipt, subject_for_payment_request and
|
131
|
+
# subject_for_seller_receipt can be one of:
|
121
132
|
# - nil / empty string to use the built in defaults
|
122
133
|
# - A string with the full subject line for this email
|
123
134
|
# - A Proc to create the subject line based on the email
|
124
135
|
# In all three of these cases, the subject_prefix will still be used.
|
125
136
|
|
126
137
|
# The Procs are the same for admin & buyer receipt, the seller Proc is different
|
127
|
-
# :
|
128
|
-
# :
|
129
|
-
# :
|
138
|
+
# subject_for_admin_receipt: Proc.new { |order| "Order #{order.to_param} has been purchased"}
|
139
|
+
# subject_for_buyer_receipt: Proc.new { |order| "Order #{order.to_param} has been purchased"}
|
140
|
+
# subject_for_payment_request: Proc.new { |order| "Pending Order #{order.to_param}"}
|
141
|
+
# subject_for_seller_receipt: Proc.new { |order, order_items, seller| "Order #{order.to_param} has been purchased"}
|
130
142
|
|
131
143
|
config.mailer = {
|
132
|
-
:
|
133
|
-
:
|
134
|
-
:
|
135
|
-
:
|
136
|
-
:
|
137
|
-
:
|
138
|
-
:
|
139
|
-
:
|
140
|
-
:
|
141
|
-
:
|
142
|
-
:
|
144
|
+
send_order_receipt_to_admin: true,
|
145
|
+
send_order_receipt_to_buyer: true,
|
146
|
+
send_payment_request_to_buyer: true,
|
147
|
+
send_order_receipts_when_marked_paid_by_admin: false,
|
148
|
+
send_order_receipt_to_seller: true, # Only applies to StripeConnect
|
149
|
+
layout: 'effective_orders_mailer_layout',
|
150
|
+
admin_email: 'admin@example.com',
|
151
|
+
default_from: 'info@example.com',
|
152
|
+
subject_prefix: '[example]',
|
153
|
+
subject_for_admin_receipt: '',
|
154
|
+
subject_for_buyer_receipt: '',
|
155
|
+
subject_for_payment_request: '',
|
156
|
+
subject_for_seller_receipt: '',
|
157
|
+
deliver_method: nil,
|
158
|
+
delayed_job_deliver: false
|
143
159
|
}
|
144
160
|
|
145
161
|
# Moneris configuration
|
@@ -147,17 +163,17 @@ EffectiveOrders.setup do |config|
|
|
147
163
|
|
148
164
|
if Rails.env.production?
|
149
165
|
config.moneris = {
|
150
|
-
:
|
151
|
-
:
|
152
|
-
:
|
153
|
-
:
|
166
|
+
ps_store_id: '',
|
167
|
+
hpp_key: '',
|
168
|
+
hpp_url: 'https://www3.moneris.com/HPPDP/index.php',
|
169
|
+
verify_url: 'https://www3.moneris.com/HPPDP/verifyTxn.php'
|
154
170
|
}
|
155
171
|
else
|
156
172
|
config.moneris = {
|
157
|
-
:
|
158
|
-
:
|
159
|
-
:
|
160
|
-
:
|
173
|
+
ps_store_id: 'foo',
|
174
|
+
hpp_key: 'bar',
|
175
|
+
hpp_url: 'https://esqa.moneris.com/HPPDP/index.php',
|
176
|
+
verify_url: 'https://esqa.moneris.com/HPPDP/verifyTxn.php'
|
161
177
|
}
|
162
178
|
end
|
163
179
|
|
@@ -166,25 +182,25 @@ EffectiveOrders.setup do |config|
|
|
166
182
|
|
167
183
|
if Rails.env.production?
|
168
184
|
config.paypal = {
|
169
|
-
:
|
170
|
-
:
|
171
|
-
:
|
172
|
-
:
|
173
|
-
:
|
174
|
-
:
|
175
|
-
:
|
176
|
-
:
|
185
|
+
seller_email: '',
|
186
|
+
secret: '',
|
187
|
+
cert_id: '',
|
188
|
+
paypal_url: 'https://www.paypal.com/cgi-bin/webscr',
|
189
|
+
currency: 'CAD',
|
190
|
+
paypal_cert: "#{Rails.root}/config/paypalcerts/production/paypal_cert.pem",
|
191
|
+
app_cert: "#{Rails.root}/config/paypalcerts/production/app_cert.pem",
|
192
|
+
app_key: "#{Rails.root}/config/paypalcerts/production/app_key.pem"
|
177
193
|
}
|
178
194
|
else
|
179
195
|
config.paypal = {
|
180
|
-
:
|
181
|
-
:
|
182
|
-
:
|
183
|
-
:
|
184
|
-
:
|
185
|
-
:
|
186
|
-
:
|
187
|
-
:
|
196
|
+
seller_email: 'seller@mail.com',
|
197
|
+
secret: 'foo',
|
198
|
+
cert_id: 'bar',
|
199
|
+
paypal_url: 'https://www.sandbox.paypal.com/cgi-bin/webscr',
|
200
|
+
currency: 'CAD',
|
201
|
+
paypal_cert: "#{Rails.root}/config/paypalcerts/#{Rails.env}/paypal_cert.pem",
|
202
|
+
app_cert: "#{Rails.root}/config/paypalcerts/#{Rails.env}/app_cert.pem",
|
203
|
+
app_key: "#{Rails.root}/config/paypalcerts/#{Rails.env}/app_key.pem"
|
188
204
|
}
|
189
205
|
end
|
190
206
|
|
@@ -196,21 +212,50 @@ EffectiveOrders.setup do |config|
|
|
196
212
|
|
197
213
|
if Rails.env.production?
|
198
214
|
config.stripe = {
|
199
|
-
:
|
200
|
-
:
|
201
|
-
:
|
202
|
-
:
|
203
|
-
:
|
204
|
-
:
|
215
|
+
secret_key: '',
|
216
|
+
publishable_key: '',
|
217
|
+
currency: 'usd',
|
218
|
+
site_title: 'My Site',
|
219
|
+
site_image: '', # A relative URL pointing to a square image of your brand or product. The recommended minimum size is 128x128px.
|
220
|
+
connect_client_id: ''
|
205
221
|
}
|
206
222
|
else
|
207
223
|
config.stripe = {
|
208
|
-
:
|
209
|
-
:
|
210
|
-
:
|
211
|
-
:
|
212
|
-
:
|
213
|
-
:
|
224
|
+
secret_key: 'foo',
|
225
|
+
publishable_key: 'bar',
|
226
|
+
currency: 'usd',
|
227
|
+
site_title: 'My Development Site', # Displayed on the Embedded Stripe Form
|
228
|
+
site_image: 'foo', # A relative URL pointing to a square image of your brand or product. The recommended minimum size is 128x128px.
|
229
|
+
connect_client_id: 'bar'
|
230
|
+
}
|
231
|
+
end
|
232
|
+
|
233
|
+
# CCBill configuration
|
234
|
+
config.ccbill_enabled = true
|
235
|
+
|
236
|
+
# CCBill Dynamic Pricing documentation describes these variables:
|
237
|
+
# https://www.ccbill.com/cs/wiki/tiki-index.php?page=Dynamic+Pricing+User+Guide
|
238
|
+
if Rails.env.production?
|
239
|
+
config.ccbill = {
|
240
|
+
client_accnum: '',
|
241
|
+
client_subacc: '',
|
242
|
+
# Get this from CCBill Admin dashboard after setting up a form
|
243
|
+
form_name: '',
|
244
|
+
form_period: '',
|
245
|
+
# https://www.ccbill.com/cs/wiki/tiki-index.php?page=Webhooks+User+Guide#Appendix_A:_Currency_Codes
|
246
|
+
currency_code: '',
|
247
|
+
# You'll get this salt value from CCBill tech support
|
248
|
+
# https://www.ccbill.com/cs/wiki/tiki-index.php?page=Dynamic+Pricing+User+Guide#Generating_the_MD5_Hash
|
249
|
+
dynamic_pricing_salt: ''
|
250
|
+
}
|
251
|
+
else
|
252
|
+
config.ccbill = {
|
253
|
+
client_accnum: 'foo',
|
254
|
+
client_subacc: 'bar',
|
255
|
+
form_name: 'foo',
|
256
|
+
form_period: 'bar',
|
257
|
+
currency_code: 'foo',
|
258
|
+
dynamic_pricing_salt: 'bar'
|
214
259
|
}
|
215
260
|
end
|
216
261
|
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -52,6 +52,14 @@ ActiveRecord::Schema.define(:version => 4) do
|
|
52
52
|
|
53
53
|
add_index "carts", ["user_id"], :name => "index_carts_on_user_id"
|
54
54
|
|
55
|
+
create_table "custom_products", force: :true do |t|
|
56
|
+
t.string "title"
|
57
|
+
t.integer "price", default: 0
|
58
|
+
t.boolean "tax_exempt"
|
59
|
+
t.datetime "created_at"
|
60
|
+
t.datetime "updated_at"
|
61
|
+
end
|
62
|
+
|
55
63
|
create_table "customers", force: true do |t|
|
56
64
|
t.integer "user_id"
|
57
65
|
t.string "stripe_customer_id"
|
@@ -70,7 +78,6 @@ ActiveRecord::Schema.define(:version => 4) do
|
|
70
78
|
t.integer "quantity"
|
71
79
|
t.integer "price", :default => 0
|
72
80
|
t.boolean "tax_exempt"
|
73
|
-
t.decimal "tax_rate", :precision => 5, :scale => 3, :default => 0.0
|
74
81
|
t.datetime "created_at", :null => false
|
75
82
|
t.datetime "updated_at", :null => false
|
76
83
|
end
|
@@ -84,9 +91,15 @@ ActiveRecord::Schema.define(:version => 4) do
|
|
84
91
|
t.string "purchase_state"
|
85
92
|
t.datetime "purchased_at"
|
86
93
|
t.text "payment"
|
87
|
-
t.text "details"
|
88
94
|
t.datetime "created_at", :null => false
|
89
95
|
t.datetime "updated_at", :null => false
|
96
|
+
t.text "note"
|
97
|
+
t.integer "total"
|
98
|
+
t.decimal "tax_rate", precision: 6, scale: 3
|
99
|
+
t.integer "subtotal"
|
100
|
+
t.integer "tax"
|
101
|
+
t.string "payment_provider"
|
102
|
+
t.string "payment_card"
|
90
103
|
end
|
91
104
|
|
92
105
|
add_index "orders", ["user_id"], :name => "index_orders_on_user_id"
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -1,261 +1,3 @@
|
|
1
|
-
[1m[36m (0.5ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
2
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
3
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
4
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
5
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
6
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
7
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
8
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
9
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
10
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
11
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
12
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
13
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
14
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
15
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
16
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
17
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
18
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
19
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
20
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
21
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
22
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
23
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
24
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
25
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
26
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
27
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
28
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
29
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
30
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
31
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
32
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
33
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
34
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
35
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
36
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
37
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
38
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
39
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
40
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
41
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
42
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
43
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
44
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
45
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
46
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
47
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
48
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
49
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
50
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
51
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
52
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
53
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
54
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
55
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
56
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
57
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
58
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
59
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
60
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
61
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
62
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
63
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
64
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
65
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
66
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
67
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
68
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
69
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
70
|
-
[1m[36m (0.5ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
71
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
72
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
73
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
74
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
75
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
76
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
77
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
78
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
79
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
80
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
81
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
82
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
83
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
84
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
85
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
86
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
87
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
88
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
89
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
90
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
91
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
92
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
93
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
94
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
95
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
96
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
97
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
98
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
99
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
100
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
101
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
102
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
103
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
104
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
105
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
106
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
107
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
108
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
109
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
110
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
111
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
112
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
113
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
114
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
115
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
116
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
117
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
118
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
119
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
120
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
121
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
122
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
123
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
124
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") AS max_id FROM "orders"[0m
|
125
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
126
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
127
1
|
[1m[36m (0.5ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
128
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
129
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
130
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
131
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
132
2
|
[1m[36m (0.5ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
133
3
|
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
134
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
135
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
136
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
137
|
-
[1m[36m (0.4ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
138
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
139
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
140
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
141
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
142
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
143
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
144
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
145
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
146
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
147
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
148
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
149
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
150
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
151
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
152
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
153
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
154
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
155
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
156
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
157
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
158
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
159
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
160
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
161
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
162
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
163
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
164
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
165
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
166
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
167
|
-
[1m[36m (0.4ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
168
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
169
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
170
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
171
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
172
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
173
|
-
[1m[36m (0.4ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
174
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
175
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
176
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
177
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
178
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
179
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
180
|
-
[1m[36m (0.1ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
181
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
182
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
183
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
184
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
185
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
186
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
187
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
188
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
189
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
190
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
191
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
192
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
193
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
194
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
195
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
196
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
197
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
198
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
199
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
200
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
201
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
202
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
203
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
204
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
205
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
206
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
207
|
-
[1m[36m (0.4ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
208
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
209
|
-
[1m[36m (0.4ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
210
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
211
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
212
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
213
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
214
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
215
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
216
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
217
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
218
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
219
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
220
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
221
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
222
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
223
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
224
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
225
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
226
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
227
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
228
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
229
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
230
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
231
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
232
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
233
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
234
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
235
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
236
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
237
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
238
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
239
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
240
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
241
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
242
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
243
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
244
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
245
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
246
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
247
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
248
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
249
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
250
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
251
|
-
[1m[36m (0.4ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
252
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
253
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
254
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
255
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
256
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
257
|
-
[1m[36m (0.3ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
258
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
259
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
260
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|
261
|
-
[1m[36m (0.2ms)[0m [1mSELECT MAX("orders"."id") FROM "orders"[0m
|