Skip to content

ABN-443/fix: surcharge on invoice/credit-memo PDF + shipping before tax#208

Merged
dgjlindsay merged 1 commit into
stagingfrom
doug/ABN-443-invoice-pdf-surcharge-and-order
Jun 5, 2026
Merged

ABN-443/fix: surcharge on invoice/credit-memo PDF + shipping before tax#208
dgjlindsay merged 1 commit into
stagingfrom
doug/ABN-443-invoice-pdf-surcharge-and-order

Conversation

@dgjlindsay
Copy link
Copy Markdown
Contributor

Invoice/credit-memo PDF fixes:

  1. Surcharge now renders — it was mis-registered under PDF item-renderers, never as a total. Registered as a totals <model> (etc/pdf.xml, sort_order 280) → prints the NET surcharge directly above the Tax line.
  2. Shipping before Tax — core/Tax order has tax (300) before shipping (400); shipping is part of the tax base and the on-screen totals show it first. Re-sorted shipping to 250.

Also: dropped the dead di.xml item-renderer entry, added Magento_Tax to module sequence (deterministic pdf.xml merge), brand-neutral fallback label. PHPUnit 153 green. Verify by rendering an invoice + credit-memo PDF. Refs ABN-443

…efore tax

The surcharge never appeared on PDFs because it was registered under
PDF item-renderers, not totals. Register it as a totals model via etc/pdf.xml
(sort_order 280) so the renderer prints the NET surcharge directly above the
Tax line. Also move Shipping & Handling ahead of Tax (sort_order 250 vs tax
300) — shipping is part of the tax base and the on-screen totals already show
it first. Drop the dead di.xml item-renderer registration; sequence after
Magento_Tax for a deterministic pdf.xml merge; brand-neutral fallback label.

Refs ABN-443

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@dgjlindsay dgjlindsay merged commit 76a34a9 into staging Jun 5, 2026
20 checks passed
@dgjlindsay dgjlindsay deleted the doug/ABN-443-invoice-pdf-surcharge-and-order branch June 5, 2026 01:22
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.

1 participant