[ADD] tax_receipt_in_portal: publish tax receipts on the portal #34
Reference in New Issue
Block a user
No description provided.
Delete Branch "18.0-tax_receipt_in_portal"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Let donors view and download their own tax receipts from
/my/tax-receipts: a paginated list, a detail page with the receiptinformation, its invoices and the native portal chatter, and a PDF
download rendered on demand through the configured
pdf_formreport.The PDF rendering is delegated to
pdf_form_reportand nothing isarchived: a confirmed receipt is frozen by
l10n_fr_tax_receipt, sorendering it again yields the same document.
Two safety nets compensate third-party behaviors:
report_uuid(system parametertax_receipt_in_portal.report_uuid) with strict validation ofreport type and target model;
before rendering, because
pdf_form_reportswallows resolutionerrors and would otherwise silently serve a receipt with a blank
amount.
Access is enforced twice: a portal record rule (own commercial partner,
confirmed/sent state only) and an explicit controller domain that also
covers internal users browsing
/my.Tested with 17 tests (portal isolation, draft exposure, chatter data
access, blank-field guard, report misconfiguration, private API
contract of
pdf_form_report), including a mutation check provingthe security tests fail when the record rule is opened.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.