Skip to content

Don't make receipts if line items don't match the total

DaveD requested to merge DaveD/cdntaxreceipts:lineitem-check into master

It came up that this can happen. The idea is to bounce if a receipt would get generated on a mismatched contribution.

Misc notes:

  1. It will only display the "last" contribution that had the problem. Hopefully the database doesn't have too many with this problem. An alternate would be to include a searchkit that lists the problem contributions and redirect to that instead.
  2. It only checks the "payment" contribution to be receipted if it's part of a recurring, it doesn't check the recurring contribution or the "template".
  3. I don't think we'll run into false positives with floating point rounding errors. All the values are stored with 2 decimal places.

Merge request reports