working on data printer

This commit is contained in:
Jason Jordan
2026-03-16 12:09:45 -04:00
parent 8c885b3e76
commit 011ee91707
26 changed files with 357 additions and 214 deletions
@@ -0,0 +1,17 @@
module EmployerCards
class GetQueuedCards
def initialize(pl_plan_keys)
if pl_plan_keys
@employer_pl_plan_keys = pl_plan_keys
else
@employer_pl_plan_keys = IdCard::Configuration.active.pluck(:pl_plan_key).join(',')
end
end
def call
CallStoredProc.new('BrittonGetQueuedIdCardMemberKeysTPA', { PLPlanKeys: @employer_pl_plan_keys }).call.to_ary
end
end
end
@@ -1,12 +1,12 @@
module EmployerCards
class QueueCounter
class GetQueuedCounts
def initialize()
@employer_pl_plan_keys = IdCard::Configuration.active.pluck(:pl_plan_key).join(',')
end
def call
CallStoredProc.new('HLGetQueuedIdCardsTPANewCount', { PLPlanKeys: @employer_pl_plan_keys }).call.to_ary
CallStoredProc.new('BrittonGetQueuedIdCardCountsTPA', { PLPlanKeys: @employer_pl_plan_keys }).call.to_ary
end
end
@@ -1,10 +1,11 @@
module EmployerCards
class JasperUrlGenerator
def initialize(employer, family_id, layout)
def initialize(pl_plan_key, family_id, layout)
@pl_plan_key = pl_plan_key
@family_id = family_id
@employer = employer
@layout = layout
@card_config = IdCard::Configuration.find_by(pl_plan_key: pl_plan_key)
end
def call