Skip to content

Optional archive email

KarinG requested to merge github/fork/eruraindil/optional-archive-email into master

Created by: waddyvic

This branch makes archive email optional, as my organization do not want to archive the tax receipt email if it can be regenerated.

Change log:

CRM/Cdntaxreceipts/Form/Settings.php: remove rule for archive email to make it optional

CRM/Cdntaxreceipts/Form/ViewTaxReceipt.php: if tax receipt PDF file is expired (not found), and no archive email specified, instruct user to reissue tax receipt.

cdntaxreceipts.functions.inc:

  • Update comments in multiple places showing archive email is optional
  • Do not send email to archive email if not specified
  • Change logic for "if" statement when sending receipt email to donor to account for optional archive email
  • Change logic for "if" statement when logging tax receipt

cdntaxreceipts.php: do not check email status when attaching tax receipt to core workflow msg. Since archive email is optional, calling "cdntaxreceipts_issueTaxReceipt()" function with CDNTAXRECEIPTS_MODE_WORKFLOW doesn't always send email.

templates/CRM/Cdntaxreceipts/Task/IssueAggregateTaxReceipts.tpl: update text to show a copy of the tax receipt will send to the archive email if specified.

templates/CRM/Cdntaxreceipts/Task/IssueAnnualTaxReceipts.tpl: update text to show a copy of the tax receipt will send to the archive email if specified.

templates/CRM/Cdntaxreceipts/Task/IssueSingleTaxReceipts.tpl: update text to show a copy of the tax receipt will send to the archive email if specified.

Edited by KarinG

Merge request reports

Loading