During work on bug 20903, I realize the need of clean up of print receipts scripts and templates...
This bug is a bit too general and the code has moved on in the last 5 years. If still needed, please re-open with more information!