Hello,
I am putting together a new receipt format for our Gift Certificates. I would like to add a data element for expiration date. The expiration date should be one year from the original sales date of the gift certificate.
There is a data element called GC Original Date which works great for printing the original date of issue, but how do I now add one year to that date and then print it on the ticket? Is there a way to sneak code into the Mask format that will allow me to adjust the date by a year?
This is for printing to the ticket printer. Once I get this figured out I will move on to the form design to print the same information with Gift Certificate Batch Printing report.
Thanks in advance for your help!
Have you looked in the LP_TICKET_ELEMENTS procedure? I believe you can create up to six different cases in that procedure that will return your own information to the specific ticket element (Data > User Defined Element).
We currently use the GC Original Date Data Element and then mask it with dd mmmm 2011 (we are currently changing the date in January every year to reflect the next years date), as we have not yet been able to get the year part of the date to work as conditional masking.
Caryl