effective_qb_sync 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/datatables/effective_qb_sync_datatable.rb +2 -15
- data/lib/effective_qb_sync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9868fa25579a88e5cf7f55059d29b102a8cc966089822b52886aa1a50b212f99
|
4
|
+
data.tar.gz: a68e023f160f3f00f5c48a5babcb2df6a3c486ee4b54f39523a0fcc6502228f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fbc78a09938c912735f9ee7e6c9c1ff671a75aa0c4929127e990092d9e9e4f0d3d13c15cd4f648018b8f160f500c8e99253a4a58ff7929bfe02aab8e1680a01
|
7
|
+
data.tar.gz: 267eb4cc8b9fee49a1c218ddd18dca69c241c877b1dd70b2daf748332d4b2543c309835581a44bfb906f72ab4da81cbd68dd0fd50041d182932f06415fa0c74c
|
@@ -9,20 +9,7 @@ class EffectiveQbSyncDatatable < Effective::Datatable
|
|
9
9
|
qb_ticket.qb_requests.length
|
10
10
|
end
|
11
11
|
|
12
|
-
|
13
|
-
qb_ticket.qb_requests.select { |qb_request| qb_request.order.present? }
|
14
|
-
end.format do |requests|
|
15
|
-
requests.map { |qb_request| link_to "##{qb_request.order.to_param}", effective_orders.admin_order_path(qb_request.order) }
|
16
|
-
.join('<br>').html_safe
|
17
|
-
end.search do |collection, term, column, sql_column|
|
18
|
-
order = Effective::Order.where(id: search_term).first
|
19
|
-
|
20
|
-
if order.present?
|
21
|
-
collection.where(id: Effective::QbRequest.where(order_id: order.id).pluck(:qb_ticket_id))
|
22
|
-
else
|
23
|
-
collection.none
|
24
|
-
end
|
25
|
-
end
|
12
|
+
col :orders
|
26
13
|
|
27
14
|
actions_col do |qb_ticket|
|
28
15
|
dropdown_link_to 'Show', effective_qb_sync.admin_qb_sync_path(qb_ticket)
|
@@ -31,7 +18,7 @@ class EffectiveQbSyncDatatable < Effective::Datatable
|
|
31
18
|
end
|
32
19
|
|
33
20
|
collection do
|
34
|
-
Effective::QbTicket.deep.all
|
21
|
+
Effective::QbTicket.deep.includes(:orders).all
|
35
22
|
end
|
36
23
|
|
37
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_qb_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|