Skip to content

feat(cntr): add QR code check-in and PDF invoice generator services#1067

Merged
yusuftomilola merged 1 commit into
DistinctCodes:mainfrom
phertyameen:feat/QRcode_PDF_invoice
Jun 1, 2026
Merged

feat(cntr): add QR code check-in and PDF invoice generator services#1067
yusuftomilola merged 1 commit into
DistinctCodes:mainfrom
phertyameen:feat/QRcode_PDF_invoice

Conversation

@phertyameen
Copy link
Copy Markdown
Contributor

@phertyameen phertyameen commented Jun 1, 2026

Closes #952
Closes #953
Closes #954

Adds two new services under backend/cntr/:

  • qrcode.service.ts - generateCheckInQRCode(workspaceId, sessionToken) generates a Base64 PNG data URL encoding a 15-minute expiring JSON payload. Throws on empty inputs.
  • invoice-pdf.service.ts - generateInvoicePDF(invoice) produces a valid PDF buffer with ManageHub branding, line-items table, subtotal, 7.5% VAT, and grand total. Returns Promise<Buffer> (PDFKit is stream-based; synchronous return is not possible).

Both services use already-installed packages (qrcode, pdfkit) and include unit tests with mocking where applicable.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@phertyameen is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@phertyameen Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@yusuftomilola yusuftomilola merged commit 2e8e204 into DistinctCodes:main Jun 1, 2026
1 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants