From c85e45b544d300823f6e9fa4b980ccd4e560204a Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 21 Jan 2026 20:29:38 -0500 Subject: [PATCH] Print attached estimate --- lib/patches/pdf_patch.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/patches/pdf_patch.rb b/lib/patches/pdf_patch.rb index 5bd3ec2..f5cfc9a 100644 --- a/lib/patches/pdf_patch.rb +++ b/lib/patches/pdf_patch.rb @@ -250,7 +250,15 @@ module Patches pdf.ln end end - pdf.output + + # Check to see if there is an estimate attached, then combine them + if issue.estimate + pdf = CombinePDF.parse(pdf.output, allow_optional_content: true) + pdf << CombinePDF.parse(issue.estimate.pdf) + return pdf.to_pdf + end + + return pdf.output end end