effective_products 0.3.12 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16eb1fd1c21c855367687872c6775fcdb31c8461d12a824fdd02a1e658fb4026
4
- data.tar.gz: 94f0c1bb6a0a2f236758c058c25baa958dbb2fd26cd08d7f2a1e0215a9dcb777
3
+ metadata.gz: 1b35151d7f0324859e51c69d36b41ce2e44bc80346a77b99da5618156ceea2f8
4
+ data.tar.gz: ef3a15f1d9c4fd07f64f575ca6d3b1450459d7fb46b70b03465ab18590df005c
5
5
  SHA512:
6
- metadata.gz: 2982f9cc30261967cc72006da9c7d9ca59c77d36131194ae8b070e28fb32a4ed3bb78aa84efee259bfd8b3df9558aefac3d0caf8ee92b3039785a7e3a9a3b85d
7
- data.tar.gz: 30c5bcd25059ebe5e0984ed4486873d8fca5a25192f2d7cec19fc1a8db48ffd111629c95161d32d16706de0c2702de74ea5c8939b59d04f913ba3d52dc000727
6
+ metadata.gz: ab9bd7a6f1061f91acd12ffc97eeda5579f611c1948cd6330f92706f356d241ff0989d57fd47f73c728d22dafb67827468d34ef87b138c63523c5dfebd3a53c4
7
+ data.tar.gz: 2abff54ffd96ab196b328b06c8a3aa7b97b3a450e484cec80c5bb033b6a82cede2116def9f2cc692ff990cfc83f0140e61a2cbe999972499b190103bbf549924
@@ -11,14 +11,18 @@ module Admin
11
11
  order :purchased_at
12
12
 
13
13
  col :updated_at, visible: false
14
- col :created_at, visible: false
15
14
  col :id, visible: false
16
15
 
17
- col :purchased_at, as: :date do |stamp|
16
+ col :registered_at, as: :date do |stamp|
17
+ stamp.applicant.try(:registered_at).try(:strftime, '%F')
18
+ end
19
+
20
+ col :purchased_at, as: :date, visible: false do |stamp|
18
21
  stamp.purchased_order.try(:purchased_at).try(:strftime, '%F')
19
22
  end
20
23
 
21
- col :created_at, as: :date
24
+ col :created_at, as: :date, visible: false
25
+ col :created_by
22
26
  col :status, visible: false
23
27
  col :owner, search: :string
24
28
 
@@ -50,8 +50,8 @@ module Effective
50
50
  scope :deep, -> { includes(:addresses, :purchased_order, owner: [:membership], applicant: [:category, :user], stamp_wizard: [:user]) }
51
51
  scope :not_issued, -> { where.not(status: :issued) }
52
52
 
53
- scope :with_approved_applicants, -> { where(applicant_id: EffectiveMemberships.Applicant.approved) }
54
- scope :with_unapproved_applicants, -> { where.not(applicant_id: nil).where.not(applicant_id: EffectiveMemberships.Applicant.approved) }
53
+ scope :with_registered_applicants, -> { where(applicant_id: EffectiveMemberships.Applicant.registered) }
54
+ scope :with_unregistered_applicants, -> { where.not(applicant_id: nil).where.not(applicant_id: EffectiveMemberships.Applicant.registered) }
55
55
 
56
56
  scope :with_purchased_stamp_wizards, -> { purchased.where.not(stamp_wizard_id: nil) }
57
57
  scope :with_not_purchased_stamp_wizards, -> { not_purchased.where.not(stamp_wizard_id: nil) }
@@ -60,11 +60,11 @@ module Effective
60
60
 
61
61
  # Datatable Scopes
62
62
  scope :ready_to_issue, -> {
63
- with_approved_applicants.or(with_purchased_stamp_wizards).or(created_by_admin).submitted
63
+ with_registered_applicants.or(with_purchased_stamp_wizards).or(created_by_admin).submitted
64
64
  }
65
65
 
66
- scope :pending, -> { pending_applicant_approval.or(pending_stamp_request_purchase) }
67
- scope :pending_applicant_approval, -> { not_issued.with_unapproved_applicants }
66
+ scope :pending, -> { pending_applicant_registration.or(pending_stamp_request_purchase) }
67
+ scope :pending_applicant_registration, -> { not_issued.with_unregistered_applicants }
68
68
  scope :pending_stamp_request_purchase, -> { not_issued.with_not_purchased_stamp_wizards }
69
69
 
70
70
  validates :name, presence: true
@@ -1,3 +1,3 @@
1
1
  module EffectiveProducts
2
- VERSION = '0.3.12'.freeze
2
+ VERSION = '0.3.14'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_products
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12
4
+ version: 0.3.14
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: 2025-06-16 00:00:00.000000000 Z
11
+ date: 2025-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails