fix(erpsetup): letter head and footer in the print template, chevron as PNG #53

Merged
sharang merged 1 commits from fix/erp-print-letterhead into main 2026-09-30 11:48:17 +00:00
Owner

Follow-up to #51, found while rendering in the real ERPNext:

  • custom Jinja print formats have to output {{ letter_head }} and the #footer-html block themselves (ERPNext does that only for its standard formats) → both are now in the template, with page numbers
  • wkhtmltopdf does not draw inline SVG → the chevron is an embedded PNG
  • the print view action banner ("Print / Get PDF") is hidden; the footer columns give the IBAN room

Checked with frappe.get_print on the live ERPNext on a sample invoice built from SAL-ORD-2026-00006-1 (not saved).

🤖 Generated with Claude Code

https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB

Follow-up to #51, found while rendering in the real ERPNext: - custom Jinja print formats have to output `{{ letter_head }}` and the `#footer-html` block themselves (ERPNext does that only for its standard formats) → both are now in the template, with page numbers - wkhtmltopdf does not draw inline SVG → the chevron is an embedded PNG - the print view action banner ("Print / Get PDF") is hidden; the footer columns give the IBAN room Checked with `frappe.get_print` on the live ERPNext on a sample invoice built from SAL-ORD-2026-00006-1 (not saved). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang added 1 commit 2026-09-30 11:24:00 +00:00
fix(erpsetup): letter head and footer in the print template, chevron as PNG
ci / shared (pull_request) Successful in 14s
ci / test (pull_request) Successful in 23m44s
ci / image (pull_request) Skipped
8d6271bf0a
ERPNext adds the letter head and the PDF footer only to its standard
formats; a custom Jinja format has to place {{ letter_head }} and the
#footer-html block itself (with page numbers). wkhtmltopdf does not draw
inline SVG, so the chevron is an embedded PNG. The print view's action
banner is hidden; the footer columns give the IBAN room.

Checked with ERPNext's own print path (frappe.get_print) on a sample
invoice built from SAL-ORD-2026-00006-1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang merged commit fb241befcc into main 2026-09-30 11:48:17 +00:00
Sign in to join this conversation.