Adds _archive_unused_taxes hook that archives all active taxes whose name is not in the curated keep-set (GST/HST/QST/PST per province + zero rated + exempt) AND that have zero usage on existing move lines. Reduces active taxes from 49 to 30 on staging. The 'HST for sales/ purchases - 13%' pair is kept active because of historical postings (215 sales lines + 1 purchase line) — new invoicing routes to the cleaner '13% HST' via fiscal positions. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
9.5 KiB
9.5 KiB