-
Notifications
You must be signed in to change notification settings - Fork 0
/
.byebug_history
256 lines (256 loc) · 8.38 KB
/
.byebug_history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
expect(page).to have_content order.code
click_on order.code
click_on 'Pendente'
order.code
order
exit
params[:comment]
params
@started_order.update!(comment: started_order_params[:comment])
exit
params
@started_order.comment
@started_order = StartedOrder.find(params[:started_order_id])
@started_order
StartedOrder
@started_order.comment
exit
@started_order.update!(started_order_params)
@started_order.update!(started_order_perams)
@started_order.update!()
@started_order.save!(started_order_params)
@started_order.save!()
@started_order = StartedOrder.find(started_order_params)
@started_order = StartedOrder.find(started_order_params])
@started_order = StartedOrder.find(params[:started_order_id])
exit
"Dia da Entrega: #{I18n.localize(Date.today)} "
"Dia da Entrega: #{Date.today.to_date} "
"Dia da Entrega: #{Date.today}"
Date.today
exit
max > @started_order.delivery_day
max = @started_order.created_at.to_date + dias
@started_order.created_at.to_date + dias
dias = (@started_order.delivery_time)/24
@started_order.delivery_time
@started_order.deadline
entrega.to_date.hour
entrega.to_date
entrega.hour
a = antes.day
a = antes.hour
a = antes.hour - entrega.hour
entrega = @started_order.delivery_day
antes = @started_order.created_at
(@started_order.delivery_day.hour - @started_order.created_at.hour).to_s
(@started_order.delivery_day).hour - (@started_order.created_at).hour
time = (@started_order.delivery_day).hour - (@started_order.created_at).hour
exit
Date(@started_order.delivery_day)- Date(@started_order.created_at.to_date)
as.Date(@started_order.delivery_day)-as.Date(@started_order.created_at.to_date)
@started_order.delivery_time * 3600
@started_order.delivery_time
@started_order.delivery.time
@started_order = StartedOrder.find(params[:started_order_id])
@started_order.delivery.time
Time.now
@started_order.delivery_day
@started_order.delivery_day.hour
@started_order.delivery_day - @started_order.created_at.to_date
@started_order.delivery_day + 2
@started_order.created_at.to_date
@started_order.delivery_day
total
total = (@started_order.delivery_day - @started_order.created_at.to_date)
(@started_order.delivery_day - @started_order.created_at.to_date)*1000
(@started_order.delivery_day - @started_order.created_at.to_date)*24
@started_order.delivery_day - @started_order.created_at.to_date
@started_order.delivery_day - @started_order.created_at
Time.zone
@started_order.created_at
Time.zone.today
@started_order.delivery_day
@started_order.delivery_day - @started_order.created_at
exit
params
prams
exit
@vehicle.active!
@vehicle
@vehicle = @started_order.vehicle
@vehicle = params[:vehicle_id]
@vehicle = params[:vehicle]
@started_order = StartedOrder.find(params[:id])
@started_order
@started_order.vehicle
@started_order.vehicle
@vehicle = @started_order.vehicle
@started_order.vehicle = @vehicle
@started_order.vehicle
@started_order.concluded!
@started_order
@started_order = StartedOrder.find(params[:id])
exit
@started_order.vehicle
exit
ecit
exit
@started_order
@started_order
@started_order.id
@started_order.vehicles
@started_order.vehicle
@started_order
@started_order.vehicle
@started_order = StartedOrder.find(params[:id])
@started_order
@started_order.vehicle
exit
@started_order.vehicle
exit
wrapper.htmlexit
wrapper.html
wrapper.html()
exit
Vehicle.active.all
Vehicle.first
Vehicle.last
Vehicle.all.size
Vehicle.active.where(["transport_mode_id = ?", @started_order.transport_mode_id, ])
@started_order = StartedOrder.new(started_order_params)
exit
@started_order.save!
@started_order
@service_order.progress!
@started_order.total_value = @started_order.transport_mode.value_total(@service_order.weight, @service_order.distance)
@started_order.delivery_time = @started_order.transport_mode.calculate_deadline(@service_order.distance)
@vehicle.operation!
@started_order.vehicle
@started_order.vehicle = @vehicle
@started_order.vehicle
@vehicle
exit
@started_order.vehicle
@started_order.vehicle = @vehicle
@started_order
@started_order = @vehicle
@vehicle
exit
@started_order.vehicle.plate
@started_order.vehicle
@started_order.vehicle = @vehicle
@started_order.vehicle = @vehicle.id
@started_order.vehicle = 2
@vehicle
@started_order.transport_mode
@started_order
@started_order.vehicle
@stated_order.vehicle_id = @vehicle
@stated_order.vehicle = @vehicle
@vehicle
@started_order.vehicle
exit
@started_order
exit
@service_order
exit
@started_order.transport_mode.calculate_deadline(@service_order.distance).class
@started_order.transport_mode.calculate_deadline(@service_order.distance)
@started_order.deadline.class
@started_order.deadline
exit
@vehicle.operation!
@started_order.vehicle_id
@started_order.vehicle_id = @vehicle
:vehicle_id = @vehicle
@vehicle
@started_order.vehicle_id
@started_order.vehicle
@vehicle
@started_order.vehicle_id
@started_order.vehicle
@started_order.vehicle_id
@started_order.vehicle_id = @vehicle
@vehicle
@vehicle = @vehicles.last
@vehicle
@vehicle = @vehicle.last
@vehicles.last
@vehicles
@vehicles = Vehicle.active.where(["transport_mode_id = ?", @started_order.transport_mode_id, ])
Vehicle.operation.where(["transport_mode_id = ?", @started_order.transport_mode_id, ])
Vehicle.active.where(["transport_mode_id = ?", @started_order.transport_mode_id, ])
Vehicle.where(["transport_mode_id = ?", @started_order.transport_mode_id, ])
exit
@vehicles.each do |v|
@vehicle = @vehicles.last
@vehicle = @vehicle.last
@vehicle.last.active
@vehicle.last.active?
@vehicles.last
@vehicles = Vehicle.where(["transport_mode_id = ?", @started_order.transport_mode_id, ])
@vehicles = Vehicle.active.where(["transport_mode_id = ?", @started_order.transport_mode_id, ])
@vehicle = @vehicles.last
@vehicle
check_status(@vehicles).last
@vehicle.active?
@vehicle.operation?
@vehicle.available?
@vehicles.status
@vehicles.status.operation
@vehicles.status.operation?
@vehicles.status == operation
@vehicles.operation?
@vehicles.available?
@vehicles.active
@vehicles.active!
@vehicles.available!
@vehicles.available.first
@vehicle.status
@vehicle = @vehicles.last
@vehicles.last
@vehicles
@vehicle
@vehicles = Vehicle.where(["transport_mode_id = ?", @started_order.transport_mode_id, ])
@vehicle
Vehicle.where(["status = ? and transport_mode_id = ?", Vehicle.active, @started_order.transport_mode_id, ])
Vehicle.where(["status = ? and transport_mode_id = ?", Vehicle.active", @started_order.transport_mode_id, ])
Vehicle.where(["status = ? and transport_mode_id = ?", 'active', @started_order.transport_mode_id, ])
Vehicle.where(["status = ? and transport_mode_id = ?", active, @started_order.transport_mode_id, ])
Vehicle.where(["status = ? and transport_mode_id = ?", 0, @started_order.transport_mode_id, ])
Vehicle.where(["status = ?" and "transport_mode_id = ?", 0, @started_order.transport_mode_id, ])
Vehicle.where(["status = ?" and "transport_mode_id = ?", "ative", @started_order.transport_mode_id, ])
Vehicle.where(["status = ?", "active" and "transport_mode_id = ?", @started_order.transport_mode_id, ])
Vehicle.where(["status = ?", "active"],["transport_mode_id = ?", @started_order.transport_mode_id, ])
Vehicle.where(["status = ?", 0],["transport_mode_id = ?", @started_order.transport_mode_id, ])
Vehicle.where(["status = active"],["transport_mode_id = ?", @started_order.transport_mode_id, ])
Vehicle.where(["status = :status and transport_mode_id = :transport_mode_id", { status: "active", transport_mode_id: @started_order.transport_mode_id }])
Vehicle.where(["status = ? and transport_mode_id = ?", 0, @started_order.transport_mode_id, ])
Vehicle.where(["status = ? and transport_mode_id = ?", 'active', @started_order.transport_mode_id, ])
Vehicle.where(["transport_mode_id = ?", @started_order.transport_mode_id, ])
Vehicle.active.where(["transport_mode_id = ?", @started_order.transport_mode_id, ])
exit
@started_order.vehicle_id
exit
@started_order.vehicle = @vehicle.last.id
@started_order.vehicle
@started_order.vehicle_id
@vehicles.last.id
@started_order.vehicle = @vehicles.last
@vehicles.last
@vehicles = Vehicle.where(["transport_mode_id = ?", @started_order.transport_mode_id])
@vehicles.last
@started_order.vehicle_id
exit
@vehicles.last
@vehicles
@vehicles = Vehicle.where(["transport_mode_id = ?", @started_order.transport_mode_id])
@vehicles
vehicles
vehicles.last
Vehicle.where(["transport_mode_id = ?", @started_order.transport_mode_id])
Vehicle.where(["transport_mode_id = ?", @started_order.transport_mode_id]).available
vehicles
vehicles.first
vehicles.last