lblizzard
IS-IT--Management
- Jun 26, 2007
- 6
We use an IP Epson U220 receipt printer in our kitchen. The software we have uses printer layouts like below. The below layout prints a header and then the items ordered, it prints the modifiers in red below the items if that item has a modifier. My poblem is it double spaces the modifiers and I can't figure out how to make it stop.
Any help would be much appreciated. Also does anyone has a cheat sheet for this code?
Thanks
<|alltrim(printers->color_1)+CENTER('KITCHEN RECEIPT ADDED',40)|>
<|CENTER('Table Number: '+ALLTRIM(utility->first_name)+' '+alltrim(utility->descrip1),40)|>
<|CENTER(dtoc(date())+' '+time(),40)|>
<|CENTER('Server: '+ALLTRIM(utility->operator),40)|>
<|NEWLINE()|>
<|'Qty - Item'|>
<|('----------------------------------------')|>
<|Details(IIF(MODIFIER(), alltrim(printers->color_2)+' ATTN: '+alltrans->Descrip+NEWLINE(),IIF(deltaqty=0,'',alltrim(printers->color_1)+STR(deltaqty,3,0)+' - ' +ALLTRIM(alltrans->descrip)+' '+alltrim(printers->color_2)+ALLTRIM(alltrans->message)+NEWLINE())),TRUE,40)|>
<|NEWLINE()|>
<|NEWLINE()|>
<|NEWLINE()|>
<|NEWLINE()|>
<|printers->cut_code|>
Any help would be much appreciated. Also does anyone has a cheat sheet for this code?
Thanks
<|alltrim(printers->color_1)+CENTER('KITCHEN RECEIPT ADDED',40)|>
<|CENTER('Table Number: '+ALLTRIM(utility->first_name)+' '+alltrim(utility->descrip1),40)|>
<|CENTER(dtoc(date())+' '+time(),40)|>
<|CENTER('Server: '+ALLTRIM(utility->operator),40)|>
<|NEWLINE()|>
<|'Qty - Item'|>
<|('----------------------------------------')|>
<|Details(IIF(MODIFIER(), alltrim(printers->color_2)+' ATTN: '+alltrans->Descrip+NEWLINE(),IIF(deltaqty=0,'',alltrim(printers->color_1)+STR(deltaqty,3,0)+' - ' +ALLTRIM(alltrans->descrip)+' '+alltrim(printers->color_2)+ALLTRIM(alltrans->message)+NEWLINE())),TRUE,40)|>
<|NEWLINE()|>
<|NEWLINE()|>
<|NEWLINE()|>
<|NEWLINE()|>
<|printers->cut_code|>