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 IdCardPrinter
class EmployerCardsGenerator
def initialize(pl_plan_key, layout, zip=false)
@pl_plan_key = pl_plan_key
@layout = layout
@zip = zip
end
def call
IdCard::PrintData.where(pl_plan_key: @pl_plan_key).destroy_all
EmployerCards::DataFormatter.new(@pl_plan_key).call
IdCardPrinter::PdfProcessor.new(@pl_plan_key, @layout, @zip).call
end
end
end