stevew
December 28, 2022, 10:50am
1
I am trying to use data from the SambaPOS reservation system to print a reservation card for the table. This is my printer template
And on the preview of the SambaPOS editor all looks good
However, when printed it drops the date from the top left corner
If I now remove the date formating tags
and try to print, it prints date and time
I would like to get this to print just the date and in the format I want. Can anybody see what I am doing wrong?
The printer is an Epson TM-T82 ESC/POS emulated printer.
Posflow
December 28, 2022, 11:25am
2
Try formatting the Local Setting before update action or inside the update action.
stevew
December 28, 2022, 11:42am
3
Sorry, don’t understand. The only action is to execute a print job which in turn uses the specified print template. Can you explain more
Posflow
December 28, 2022, 1:01pm
4
{LOCAL SETTING:RsDate} is not a native setting.
It means in your automation Rules there is an Update Program Setting
action which updates this setting called RsDate with a selected date.
Its a viable option to format it to dd-MMM-yyyy
format before updating it.
Bob_be
December 28, 2022, 1:53pm
5
Try removing the quotes around the local settings (keep them around the formatting) in your printer template.
—Edit—
You have the correct formatting.
Jesse
December 28, 2022, 4:09pm
7
Try using double [ around it.
Write it like this:
[[=FD('{LOCAL SETTING:RsDate}','dd-MMM-yyyy')]]
stevew
December 29, 2022, 9:17am
8
Thanks for the suggestions
Adding an extra set of simply gives on the printout, but unfortunately, still no date
RsDate comes from the Sambapos implementation of the reservation system. As far as I can see there is no ‘Update Program Setting’ associated with this. However, following your suggestion I have added one before the print job as follows
And now the card is printing with the correctly formatted date so thanks very much for that
3 Likes