# Formatting {ACCOUNT TRANSACTION DETAILS:X} Tag

**URL:** <https://forum.sambapos.com/t/formatting-account-transaction-details-x-tag/2784>\
**Category:** V4 Question\
**Created:** [September 28, 2014, 8:37am UTC](https://forum.sambapos.com/t/formatting-account-transaction-details-x-tag/2784 "2014-09-28T08:37:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevew](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/f05b48/32.png) [@stevew](https://forum.sambapos.com/u/stevew)\
**Post date:** [September 28, 2014, 8:37am UTC](https://forum.sambapos.com/t/formatting-account-transaction-details-x-tag/2784/1 "2014-09-28T08:37:43Z")

</div>

In the Custom Reports Module we have a tag {ACCOUNT TRANSACTION DETAILS:X}.

This give an output in the form of a date, a description and and amount, hence the normal rules of formatting do not work. Is there any specific rules for formatting the output of this tag - my main requirement at present to get the monetary portion into an #,### format i.e. get rid of the numbers after the decimal point?

[Edit] In case anybody has the same issue I eventually resolved it via and SQL script as follows

SELECT CONVERT(VARCHAR(8), [Date], 3), SUBSTRING([Name],4,LEN([Name])-4), FORMAT([Debit],’#,###’)  
FROM [AccountTransactionValues]  
WHERE [AccountTransactionTypeId] = 12 AND [Debit]\>0 AND [Date] \> ‘{Start}’ AND [Date] \< ‘{End}’

The [AccountTransactionTypeId] = 12 is specific to my setup so anybody wishing to use this will need to adjust this line to suit.

The output is as follows  
 ![](https://forum.sambapos.com/uploads/default/original/3X/5/a/5a01bc19879381fbfafd058b23bda9995ef3f2ce.png)

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [September 30, 2014, 4:47pm UTC](https://forum.sambapos.com/t/formatting-account-transaction-details-x-tag/2784/2 "2014-09-30T16:47:43Z")

</div>

There are also printer template tag formatting syntax.

> [@Printer Template Formatting Tags](http://forum.sambapos.com/t/printer-template-formatting-tags/328):
>
> ##General \<T\> (Title) : When used it will format line as a title. \<F\> (Fill) : For example \<F\>- creates a line with - chars or \<F\>= creates a line with = chars. \<EB\> (Enable Bold) Prints everything Bold until \<DB\> command. \<DB\> (Disable Bold) Ends \<EB\> command \<Jxy\> (Justified) Justifies a line from pipe char. \<J00\>Total:|0.00 separates line from pipe (|) char. It aligns Total: part left and 0.00 part right. When used on a ESC/POS compatible ticket printer numeric parts sets font size. Fi…
