Conditional display tags do not work in Customer (Account) Receipt Template


#1

I’ve noticed this for some time, but haven’t reported it.

In all my receipt templates, I use {SETTING:X} or {CSETTING:X} tags for company name, etc. I then use conditional display [] tags to make sure the lines are only printed when a value exists. It works fine on all templates except any that related to printing account transaction documents. It parses the {CSETTING:X} but displays the conditional display tags rather than parsing them.

For example the default “Customer Receipt Template”:

[LAYOUT]
-- General layout
<XCT>27,50
<EB>
<C11>{CSETTING:Receipt_CompanyName}
<DB>
<L00>
[<C00>[{CSETTING:Receipt_Address1}]]
[<C00>[{CSETTING:Receipt_Address2}]]
[<C00>[{CSETTING:Receipt_Telephone}]]
<L00>
[<C00>[{CSETTING:Receipt_URL}]
<L00>]
<C10>Account Transaction Receipt
<C00>
<F>-
<J00>Date/Time: {DOCUMENT DATE} {DOCUMENT TIME}
<L00>Transaction Type: {DESCRIPTION}
<F>-
{TRANSACTIONS}
<F>-

[TRANSACTIONS]
<J00>{SOURCE ACCOUNT} | {AMOUNT}
<EB>
<J00>Balance:|{SOURCE BALANCE}
<DB>

Preview shows fine:

When printed, the {CSETTING:X} tags are parsed but doesn’t work with conditional display tags.

It’s the same for any template printed using Print Account Transaction Document action - like for gift certificate prints.


#2

Bracket feature specifically implemented for ticket printing.


#3

So it doesn’t work on “Print Account Transaction Document” then?


#4

The formatter that formats the printout are different for tickets and account transaction documents. That feature implemented for ticket formatter but not account transaction document formatter. We can implement it on future versions.