Skip to content

TRK-004: Embed QR code into invoice PDF - #60

Merged
hajk1 merged 14 commits into
masterfrom
feature/TRK-004-embede-QR-invoice
Mar 19, 2026
Merged

TRK-004: Embed QR code into invoice PDF#60
hajk1 merged 14 commits into
masterfrom
feature/TRK-004-embede-QR-invoice

Conversation

@hajk1

@hajk1 hajk1 commented Mar 12, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a QR code to the invoice PDF linking to the order tracking page.

Changes
• Updated InvoiceService to add a QR code in the bottom-right area
• QR value: {app.base-url}/api/v1/track/order/{orderId}
• Added label: Scan to track your shipment
• Reused BarcodeService from TRK-001
• Embedded QR as image bytes in the PDF
• Kept QR small to preserve layout

Checks
• Invoice PDF includes QR code
• QR encodes the correct tracking URL
• Existing invoice tests still pass
• QR does not overlap other content
• Code formatted

Closes #32

@hajk1 hajk1 self-assigned this Mar 12, 2026
@github-actions

github-actions Bot commented Mar 12, 2026

Copy link
Copy Markdown

Test Coverage Report

Overall Project 86.57% -0.8% 🍏
Files changed 85.06% 🍏

File Coverage
TrackingEventService.java 100% 🍏
EventType.java 100% 🍏
InvoiceService.java 98.69% -1.31% 🍏
OrderTrackingResponse.java 96.8% -3.2% 🍏
FreightOrder.java 95.92% -4.08% 🍏
FreightOrderService.java 90.5% 🍏
FreightOrderController.java 80.65% -6.45% 🍏
TrackingEventRequest.java 67.39% -32.61% 🍏
TrackingEvent.java 66.67% -33.33% 🍏

paka-ops and others added 10 commits March 19, 2026 17:42
* adding TrackingEvent entity

* creating TrackingEventRepository

* creating TrackingEvent entity,service,updating FreightOrderController and FreightOrderService

* adding an arrayList of events on traking orderResponse,updating freightOrder class by adding an one to many association to TrakingEvent

* test writting

* creating test for trakingEvent in FreightOrderContollerTest and TrackingControllerTest

* creating test for trakingEvent in FreightOrderContollerTest and TrackingControllerTest

* creating test for trakingEvent in FreightOrderContollerTest and TrackingControllerTest

* test bug fixing

* test bug fixing

* test bug fixing
…e' into feature/TRK-004-embede-QR-invoice

# Conflicts:
#	src/test/java/com/shipping/freightops/controller/TrackingControllerTest.java
@hajk1
hajk1 merged commit 2ec95fe into master Mar 19, 2026
2 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

Development

Successfully merging this pull request may close these issues.

TRK-004 — Embed QR Code into Invoice PDF 🟡

2 participants