Add a custom date to recipt!

I would like to add a coupon to the bottom of every recipt that I print, but I also need to have a custom date range of when the coupon may be used (one week from the purchase date) within that coupon.

A simple text coupon at the bottom of the recipt would be fine, but I need a code that will print the date exactly one week from the date of the transaction.

Reply to
Scott S
Loading thread data ...

Hi Scott,

there are few things You may do, for adding a new date into your recepit.

Create a variable into your receipt, for example like this: ""

or a session variable (You can use up to 10 at max).

Starting from here, just before You wan a do a new row with the custom date, You can play with the variable You have created or in case of a Session varible, use a hook to pass the date You want to be printed (+ 7 days or + X days).

Regards, A.

Reply to
Antonijo Todoro

I tried this exactly as you described:

1st it couldnt find vbDateTime so I used Transaction.date (This now puts the current date under the footer)

2.) I try to add 7 days to this by: Date2 + 7 days (I get a token error stating "days" cannot be found if I just use + 7 it returns the 36891.

Can you please tell me what I am doing wrong.

I need the code to add 7 days automatically to whatever the current date and time is and print on the recipt.

Thanks for your help

Scott

"Antonijo Todorovik" wrote in message news: snipped-for-privacy@microsoft.com...

Reply to
Scott S

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.