## What - The letter head step also compares `source` and `footer_source` (want: HTML/HTML). - `ensureFields` treats `<tbody>`/`</tbody>` as equal (Frappe's HTML editor adds them on a UI save). ## Why Live ERPNext letter head `BreakPilot` (last saved 2026-10-06 09:19 in the UI): `source = Image`, so documents use an image header instead of our HTML one, plus `<tbody>` in content and footer. The dry run showed `letter head → would update` on every run, and an apply would not have restored `source`. ## Test plan - [x] New test: tbody-only difference → `exists`; source Image → restored to HTML. - [x] Existing erpsetup tests. - [ ] User: dry run shows `letter head → would update` once, apply, then `exists`; check one invoice PDF shows the HTML header. ## Risk **Blast radius:** Letter Head `BreakPilot` only (source fields). **Rollback:** set source back in the UI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB Co-authored-by: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Reviewed-on: #68