RickH
December 4, 2018, 9:52pm
1
I have just transferred my test system to my till but my receipt template isnt working. Ive checked my test machine and it works fine. Ive recopied the template from my test machine and pasted into my live machine but i still get the error, so the issue must be something on my live PC
This is the error i get
ive had a similar issue before related to bitmaps and it was because the image path was wrong, but this isnt the issue here. i even deleted the whole bitmap line in my template and i still get this error, so with it saying system.windows and my dev machine works fine im thinking it must be something on my live PC that isnt right, with windows somewhere?
@emre any ideas?
this is my printer template but like i say it works fine on my laptop test machine so i know this is fine
[LAYOUT]
-- General layout
<EC>
<BMP>C:\Users\Rick\Documents\pfclogo.png
<F>-
<div style="font-size:25px;font-weight:bold;text-align:center;font-family:'Calibri'">SALES RECEIPT</div>
<F>-
<div style="font-size:13px;font-weight:bold;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="25">Qty</td>
<td width="196">Item Description</td>
<td width=45 align=right>Price</td>
</tr>
</table>
</div>
<F>-
{ORDERS}
<div style="font-size:15px;font-weight:bold;text-align:center;font-family:'Calibri'"><br/>{TICKET QUANTITY SUM}x Items Sold</div>
<F>-
<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Sub Total:</td><td align="right">£[=F(TN('{TICKET TOTAL}')+TN('{ORDER TAG TOTAL:Discount Item Custom Value}')*-1+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1+TN('{ORDER TAG TOTAL:Price Override}')*-1+TN('{CALCULATION TOTAL:Discount Ticket Total Percent}')*-1+TN('{CALCULATION TOTAL:Staff Discount}')*-1+TN('{CALCULATION TOTAL:Manager Discount}')*-1+TN('{CALCULATION TOTAL:Loyalty Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>
<F>-
{DISCOUNTS}
[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Line Discount:</td><td align "right">-£[=F(TN('{ORDER TAG TOTAL:Discount Item Custom Value}')*-1+TN('{ORDER TAG TOTAL:Price Override}')*-1+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1,'0.00')]</td>
</tr>
</table>
</div>]
[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Transaction Discount:</td><td align "right">-£[=F(TN('{CALCULATION TOTAL:Discount Ticket Total Percent}')*-1,'0.00')]</td>
</tr>
</table>
</div>]
[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Staff Discount 10%:</td><td align "right">-£[=F(TN('{CALCULATION TOTAL:Staff Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>]
[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Owner Discount 100%:</td><td align "right">-£[=F(TN('{CALCULATION TOTAL:Manager Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>]
[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Loyalty Discount 10%:</td><td align "right">-£[=F(TN('{CALCULATION TOTAL:Loyalty Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>]
[<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Discount Total:</td><td align "right">-£[=F(TN('{ORDER TAG TOTAL:Discount Item Custom Value}')*-1+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1+TN('{ORDER TAG TOTAL:Price Override}')*-1+TN('{CALCULATION TOTAL:Discount Ticket Total Percent}')*-1+TN('{CALCULATION TOTAL:Staff Discount}')*-1+TN('{CALCULATION TOTAL:Manager Discount}')*-1+TN('{CALCULATION TOTAL:Loyalty Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>
<F>-]
<div style="font-size:22px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Total:</td><td align "right">£{TICKET TOTAL}</td>
</tr>
</table>
</div>
{PAYMENTS}
<F>-
<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Tendered Total:</td><td align="right">£{TENDERED TOTAL}</td>
</tr>
</table>
</div>
<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Change:</td><td align="right">£{CHANGE TOTAL}</td>
</tr>
</table>
</div>
<F>-
</div>
<F>
<F>
<div style="font-size:15px;font-weight:bold;text-align:center;font-family:'Calibri'">
<L00>THANK YOU<br/>
</div>
<EC>
<BAR>{TICKET TAG:Barcode}
<EL>
<F>-
<div style=font-size:15px;font-weight:bold;text-align:center;font-family:'Calibri'">
<table>
<tr>
<td width=60 align=center>{TICKET ID}</td>
<td width=80 align=center>{TICKET DATE}</td>
<td width=60 align=center>{TIME}</td>
<td width=60 align=center>{USER NAME}</td>
</tr>
</table>
</div>
<F>-
<br/>
<br/>
<br/>
<L>-
{ENTITIES}
[DISCOUNTS]
[PAYMENTS]
<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">{PAYMENT NAME}</td>
<td align="right">£{TENDERED}</td>
</tr>
</table>
</div>
[ORDERS]
-- Default format for orders
<div style="font-size:13px;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="25">{QUANTITY}x</td>
<td width="196">{ITEM TAG:Receipt Name} {PORTION: }</td>
<td width=45 align=right>£{TOTAL PRICE}</td>
</tr>
</table>
</div>
{ORDER TAGS}
[ORDERS:Gift]
-- Format for gifted orders
<J00>{QUANTITY} {NAME}|**FREE ITEM**
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
[<div style="font-size:10px;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="25">***</td>
<td width="196">Line Discount: {ORDER STATE:DStatus}</td>
<td width=45 align=right>-£[=F(TN('{ORDER TAG TOTAL:Discount Item Custom Value}')+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1),'0.00']</td>
</tr>
</table>
</div>]
[<div style="font-size:10px;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="25">***</td>
<td width="196">Price Override: {ORDER STATE:PStatus}</td>
<td width=45 align=right>-£[=F(TN('{ORDER TAG TOTAL:Price Override}')*-1),'0.00']</td>
</tr>
</table>
</div>]
[ENTITIES:Customers]
-- Customer entity format
<F>
<F>
[ENTITIES:Table]
-- Table entity format
<L00>Table: {ENTITY NAME}
<F>
<F>
JTRTech
December 4, 2018, 10:00pm
2
I’d Hazzard a guess it’s permission issue.
You copied the image over right
Likely factor of different PC easily checked by trying alternate directory.
RickH
December 4, 2018, 10:01pm
3
yep copied over to exactly same folder, strange thing is if i completely remove the <BMP>
tag and line completely (theres only 1 at the top for the logo) i still get the error even though there isnt any bmp tags or image links in the template
RickH
December 4, 2018, 10:07pm
4
Tried different directories just in case but no effect
Jesse
December 4, 2018, 10:09pm
5
Did you test print or only in preview you get that?
RickH
December 4, 2018, 10:11pm
6
i get the identical error message from both the template preview and when trying to print a receipt, and it happens when there’s a BMP in the template or not
Jesse
December 4, 2018, 10:12pm
7
Take the bmp line out then restart then try
RickH
December 4, 2018, 10:31pm
8
done that and still have the issue
RickH
December 4, 2018, 10:32pm
9
just the line position has now changed to 4629, but there are no other images in the template
Jesse
December 4, 2018, 11:13pm
11
Ok I get the same error. Its the template… let me look at it.
1 Like
RickH
December 4, 2018, 11:16pm
12
Its just strange that the exact same template works fine on my laptop
Jesse
December 4, 2018, 11:17pm
13
Found it…helps to load it in notepad++ and assign html language coloring. Look here.
Notice something funny with that div specifically the quotes?
1 Like
RickH
December 4, 2018, 11:18pm
14
missing quote before font-size?
Jesse
December 4, 2018, 11:19pm
15
That solves your second issue… first one was image placement or permissions.
Look at Calibri… you have " but nowhere did you have the opening "
Just remove the " That fixes it… when I remove the BMP it works fine. So I imagine you had 2 issues.
Yes or just add the " before font
RickH
December 4, 2018, 11:22pm
16
i added the " before the font but still gives same error
Jesse
December 4, 2018, 11:22pm
17
The bmp error is your folder. I get same error but I remove the BMP line and it works. Its a User folder so you need to be sure it has permission to that.
RickH
December 4, 2018, 11:26pm
18
ive not got the bmp in the template, adding the " or removing the end " still gives the error heres the template without the bmp and with the " added back
[LAYOUT]
-- General layout
<EC>
<F>-
<div style="font-size:25px;font-weight:bold;text-align:center;font-family:'Calibri'">SALES RECEIPT</div>
<F>-
<div style="font-size:13px;font-weight:bold;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="25">Qty</td>
<td width="196">Item Description</td>
<td width=45 align=right>Price</td>
</tr>
</table>
</div>
<F>-
{ORDERS}
<div style="font-size:15px;font-weight:bold;text-align:center;font-family:'Calibri'"><br/>{TICKET QUANTITY SUM}x Items Sold</div>
<F>-
<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Sub Total:</td><td align="right">£[=F(TN('{TICKET TOTAL}')+TN('{ORDER TAG TOTAL:Discount Item Custom Value}')*-1+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1+TN('{ORDER TAG TOTAL:Price Override}')*-1+TN('{CALCULATION TOTAL:Discount Ticket Total Percent}')*-1+TN('{CALCULATION TOTAL:Staff Discount}')*-1+TN('{CALCULATION TOTAL:Manager Discount}')*-1+TN('{CALCULATION TOTAL:Loyalty Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>
<F>-
{DISCOUNTS}
[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Line Discount:</td><td align "right">-£[=F(TN('{ORDER TAG TOTAL:Discount Item Custom Value}')*-1+TN('{ORDER TAG TOTAL:Price Override}')*-1+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1,'0.00')]</td>
</tr>
</table>
</div>]
[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Transaction Discount:</td><td align "right">-£[=F(TN('{CALCULATION TOTAL:Discount Ticket Total Percent}')*-1,'0.00')]</td>
</tr>
</table>
</div>]
[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Staff Discount 10%:</td><td align "right">-£[=F(TN('{CALCULATION TOTAL:Staff Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>]
[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Owner Discount 100%:</td><td align "right">-£[=F(TN('{CALCULATION TOTAL:Manager Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>]
[<div style="font-size:15px;font-weight:normal;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Loyalty Discount 10%:</td><td align "right">-£[=F(TN('{CALCULATION TOTAL:Loyalty Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>]
[<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Discount Total:</td><td align "right">-£[=F(TN('{ORDER TAG TOTAL:Discount Item Custom Value}')*-1+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1+TN('{ORDER TAG TOTAL:Price Override}')*-1+TN('{CALCULATION TOTAL:Discount Ticket Total Percent}')*-1+TN('{CALCULATION TOTAL:Staff Discount}')*-1+TN('{CALCULATION TOTAL:Manager Discount}')*-1+TN('{CALCULATION TOTAL:Loyalty Discount}')*-1,'0.00')]</td>
</tr>
</table>
</div>
<F>-]
<div style="font-size:22px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Total:</td><td align "right">£{TICKET TOTAL}</td>
</tr>
</table>
</div>
{PAYMENTS}
<F>-
<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Tendered Total:</td><td align="right">£{TENDERED TOTAL}</td>
</tr>
</table>
</div>
<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">Change:</td><td align="right">£{CHANGE TOTAL}</td>
</tr>
</table>
</div>
<F>-
</div>
<F>
<F>
<div style="font-size:15px;font-weight:bold;text-align:center;font-family:'Calibri'">
<L00>THANK YOU<br/>
</div>
<EC>
<BAR>{TICKET TAG:Barcode}
<EL>
<F>-
<div style="font-size:15px;font-weight:bold;text-align:center;font-family:'Calibri'">
<table>
<tr>
<td width=60 align=center>{TICKET ID}</td>
<td width=80 align=center>{TICKET DATE}</td>
<td width=60 align=center>{TIME}</td>
<td width=60 align=center>{USER NAME}</td>
</tr>
</table>
</div>
<F>-
<br/>
<br/>
<br/>
<L>-
{ENTITIES}
[DISCOUNTS]
[PAYMENTS]
<div style="font-size:15px;font-weight:bold;text-align:justify;font-family:'Calibri'">
<table>
<tr>
<td align="left">{PAYMENT NAME}</td>
<td align="right">£{TENDERED}</td>
</tr>
</table>
</div>
[ORDERS]
-- Default format for orders
<div style="font-size:13px;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="25">{QUANTITY}x</td>
<td width="196">{ITEM TAG:Receipt Name} {PORTION: }</td>
<td width=45 align=right>£{TOTAL PRICE}</td>
</tr>
</table>
</div>
{ORDER TAGS}
[ORDERS:Gift]
-- Format for gifted orders
<J00>{QUANTITY} {NAME}|**FREE ITEM**
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
[<div style="font-size:10px;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="25">***</td>
<td width="196">Line Discount: {ORDER STATE:DStatus}</td>
<td width=45 align=right>-£[=F(TN('{ORDER TAG TOTAL:Discount Item Custom Value}')+TN('{ORDER TAG TOTAL:Discount Item Custom Percent}')*-1),'0.00']</td>
</tr>
</table>
</div>]
[<div style="font-size:10px;text-align:left;font-family:'Calibri'">
<table>
<tr>
<td width="25">***</td>
<td width="196">Price Override: {ORDER STATE:PStatus}</td>
<td width=45 align=right>-£[=F(TN('{ORDER TAG TOTAL:Price Override}')*-1),'0.00']</td>
</tr>
</table>
</div>]
[ENTITIES:Customers]
-- Customer entity format
<F>
<F>
[ENTITIES:Table]
-- Table entity format
<L00>Table: {ENTITY NAME}
<F>
<F>
Jesse
December 4, 2018, 11:27pm
19
When You fix that what error are you getting now? Your template gave me that same error until I fixed the logo. Now it works fine.
Jesse
December 4, 2018, 11:28pm
20
That template works just fine.