cats_core 1.5.21 → 1.5.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 209258e5710d38a1deaa5865706bd6d1c271aaf11b9a26463d0ff6e5e7012c64
4
- data.tar.gz: e0eb78845adfaf73e866c5792aeae9e5e6dd2ff94e0733053a39c1f375fecf4c
3
+ metadata.gz: 3f009c7cb5782eac61ebe0e03b07db78fd40bfd88bdbe690b047bd3abf5ab3d6
4
+ data.tar.gz: 9985511c1fd14c0e3dc5d9764a2bd7842fc556c916f3d0b0ef629d5d6bc9f617
5
5
  SHA512:
6
- metadata.gz: 8a8ab8760cd5c8bbd9c7ac30fc50b5766b81db8218e689f330ddfdc4b72d8eb173af4c1f219d250065d2f0cd17ff1115738b042de12f81d015089311ffe4c82a
7
- data.tar.gz: 59164f38e38cf097433f9441bab3c38c8bee69b2e8808acd9d0233c942b01e25b38005e264feaac968bfb415cb7109d53a03b5b270cbad6fc4f994be9bf3ec24
6
+ metadata.gz: 663bc3e411d28fab8c1bfa5a18d5932aa81a4968f47602813382dd7e5082ba0e40d726de954427b0fb27b402900bbb8e12f86a1196c3e9ab726da91c860f5822
7
+ data.tar.gz: f532090a4b59dcecbe2b122bc3b941df3be5e5e64e2c6208569f4d7f181ba3feaa0e0c251e517878d0dd26a344aa7375f5307ed24fdc802d3426c31058f98cc0
@@ -122,6 +122,10 @@ module Cats
122
122
  status
123
123
  ]
124
124
  end
125
+
126
+ def self.ransackable_associations(_auth_object = nil)
127
+ %w[package_unit project unit_of_measure]
128
+ end
125
129
  end
126
130
  end
127
131
  end
@@ -133,6 +133,19 @@ module Cats
133
133
  unit_id
134
134
  ]
135
135
  end
136
+
137
+ def self.ransackable_associations(_auth_object = nil)
138
+ %w[
139
+ prepared_by
140
+ transporter
141
+ dispatch_plan_item
142
+ unit
143
+ dispatch_authorizations
144
+ receipt_authorizations
145
+ dispatch_transactions
146
+ receipt_transactions
147
+ ]
148
+ end
136
149
  end
137
150
  end
138
151
  end
@@ -47,6 +47,10 @@ module Cats
47
47
  def self.ransackable_attributes(_auth_object = nil)
48
48
  %w[authorized_by_id dispatch_id quantity status store_id unit_id]
49
49
  end
50
+
51
+ def self.ransackable_associations(_auth_object = nil)
52
+ %w[dispatch_transactions]
53
+ end
50
54
  end
51
55
  end
52
56
  end
@@ -75,6 +75,14 @@ module Cats
75
75
  upstream
76
76
  ]
77
77
  end
78
+
79
+ def self.ransackable_associations(_auth_object = nil)
80
+ %w[
81
+ dispatchable
82
+ reported_by
83
+ approved_by
84
+ ]
85
+ end
78
86
  end
79
87
  end
80
88
  end
@@ -100,6 +100,16 @@ module Cats
100
100
  unit_id
101
101
  ]
102
102
  end
103
+
104
+ def self.ransackable_associations(_auth_object = nil)
105
+ %w[
106
+ source
107
+ destination
108
+ dispatch_plan
109
+ commodity
110
+ unit
111
+ ]
112
+ end
103
113
  end
104
114
  end
105
115
  end
@@ -77,6 +77,13 @@ module Cats
77
77
  unit_id
78
78
  ]
79
79
  end
80
+
81
+ def self.ransackable_associations(_auth_object = nil)
82
+ %w[
83
+ source
84
+ dispatch_authorization
85
+ ]
86
+ end
80
87
  end
81
88
  end
82
89
  end
@@ -16,7 +16,23 @@ module Cats
16
16
  end
17
17
 
18
18
  def self.ransackable_attributes(_auth_object = nil)
19
- %w[authorized_by_id dispatch_id received_quantity quantity status store_id unit_id]
19
+ %w[
20
+ authorized_by_id
21
+ dispatch_id
22
+ received_quantity
23
+ quantity
24
+ status
25
+ store_id
26
+ unit_id
27
+ ]
28
+ end
29
+
30
+ def self.ransackable_associations(_auth_object = nil)
31
+ %w[
32
+ receipts
33
+ lost_commodities
34
+ receipt_transactions
35
+ ]
20
36
  end
21
37
  end
22
38
  end
@@ -47,7 +47,22 @@ module Cats
47
47
  end
48
48
 
49
49
  def self.ransackable_attributes(_auth_object = nil)
50
- %w[destination_id quantity receipt_authorization_id receipt_number status transaction_date unit_id]
50
+ %w[
51
+ destination_id
52
+ quantity
53
+ receipt_authorization_id
54
+ receipt_number
55
+ status
56
+ transaction_date
57
+ unit_id
58
+ ]
59
+ end
60
+
61
+ def self.ransackable_associations(_auth_object = nil)
62
+ %w[
63
+ receipt_authorization
64
+ destination
65
+ ]
51
66
  end
52
67
  end
53
68
  end
@@ -73,7 +73,25 @@ module Cats
73
73
  end
74
74
 
75
75
  def self.ransackable_attributes(_auth_object = nil)
76
- %w[plan_id reference_no region_id rounds status]
76
+ %w[
77
+ plan_id
78
+ reference_no
79
+ region_id
80
+ rounds
81
+ status
82
+ ]
83
+ end
84
+
85
+ def self.ransackable_associations(_auth_object = nil)
86
+ %w[
87
+ plan
88
+ region
89
+ round_plan_items
90
+ round_rations
91
+ beneficiary_round_plan_items
92
+ round_plan_item_details
93
+ round_beneficiaries
94
+ ]
77
95
  end
78
96
  end
79
97
  end
@@ -23,7 +23,29 @@ module Cats
23
23
  delegate(:name, to: :operator, prefix: true)
24
24
 
25
25
  def self.ransackable_attributes(_auth_object = nil)
26
- %w[fdp_id operator_id plan_item_id region_id round_plan_id woreda_id zone_id]
26
+ %w[
27
+ fdp_id
28
+ operator_id
29
+ plan_item_id
30
+ region_id
31
+ round_plan_id
32
+ woreda_id
33
+ zone_id
34
+ ]
35
+ end
36
+
37
+ def self.ransackable_associations(_auth_object = nil)
38
+ %w[
39
+ round_plan
40
+ region
41
+ zone
42
+ woreda
43
+ fdp
44
+ operator
45
+ beneficiary_round_plan_items
46
+ round_plan_item_details
47
+ round_beneficiaries
48
+ ]
27
49
  end
28
50
  end
29
51
  end
@@ -45,7 +45,20 @@ module Cats
45
45
  end
46
46
 
47
47
  def self.ransackable_attributes(_auth_object = nil)
48
- %w[destination_id name region_id source_id]
48
+ %w[
49
+ destination_id
50
+ name
51
+ region_id
52
+ source_id
53
+ ]
54
+ end
55
+
56
+ def self.ransackable_associations(_auth_object = nil)
57
+ %w[
58
+ region
59
+ source
60
+ destination
61
+ ]
49
62
  end
50
63
  end
51
64
  end
@@ -194,6 +194,16 @@ module Cats
194
194
  width
195
195
  ]
196
196
  end
197
+
198
+ def self.ransackable_associations(_auth_object = nil)
199
+ %w[
200
+ commodity
201
+ dispatch_transactions
202
+ receipt_transactions
203
+ store
204
+ unit
205
+ ]
206
+ end
197
207
  end
198
208
  end
199
209
  end
@@ -1,5 +1,5 @@
1
1
  module Cats
2
2
  module Core
3
- VERSION = "1.5.21".freeze
3
+ VERSION = "1.5.22".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cats_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.21
4
+ version: 1.5.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-21 00:00:00.000000000 Z
11
+ date: 2023-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers