Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.4
-
Fix Version/s: 4.5
-
Component/s: CiviContribute
-
Labels:None
Description
This is building on the Send PDF Thank you build by Samuel of Koumbit. Basically the code contains the concept of grouping pdf letters by contact but it was commented out.
Per discussion with dgg I plan to take it to then next level by
1) re-enabling the form elements
2) merging the letters by contact (possibly also by recurring contribution)
3) offering another text field to define a separator - so
4) assign the {$contributions} variable to the template so others can build a more complex template
5) probably assign a {$totalAmount} variable as well
Because aggregate tokens are conditional on aggregate options I'm keeping them out of scope for now - but they would be a nice addition - I'm not sure if you would need to use js to alter the options list. I feel it could get complex from a UI point of view - also what if someone has put them in the text & then unchecks the box.
I like the idea of having a recurring block in the template .e.g {begin}
{contribution.date}
blah
{contribution.amount} {end}that gets iterated for each contribution - possibly in a separate message template - but once again - out of scope