# Custom Reports -Customer Balance

**URL:** <https://forum.sambapos.com/t/custom-reports-customer-balance/7247>\
**Category:** V5 Question\
**Created:** [September 22, 2015, 9:07pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247 "2015-09-22T21:07:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay007](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jay007/32/15479_2.png) [@jay007](https://forum.sambapos.com/u/jay007)\
**Post date:** [September 22, 2015, 9:07pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/1 "2015-09-22T21:07:42Z")

</div>

I posted a question a while back asking how to change printer template for the accounts screen. I was informed it wasn’t possible as it was hard coded and advised to create a custom report.

> [@Printing from Accounts](http://forum.sambapos.com/t/printing-from-accounts/7009/2):
>
> No, that is hard-coded for now. You could build a Report, then have an Automation Command button on the screen that prints the Report.

I am just looking for the selected customers account balance so I can print it off or email it. I have no idea how to generate the report. Would anyone have an example of a simple report like this to get me started.

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [September 22, 2015, 9:44pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/2 "2015-09-22T21:44:32Z")

</div>

This tutorial should help.

[http://www.sambapos.com/wiki/doku.php?id=creating\_accounting\_reports\_with\_custom\_reporting\_tags](http://www.sambapos.com/wiki/doku.php?id=creating_accounting_reports_with_custom_reporting_tags)

---

<div class="post-metadata">

**Author:** ![jay007](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jay007/32/15479_2.png) [@jay007](https://forum.sambapos.com/u/jay007)\
**Post date:** [September 22, 2015, 10:02pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/3 "2015-09-22T22:02:40Z")

</div>

Could you tell how to create an Automation command button in the account screen?

 ![](https://forum.sambapos.com/uploads/default/original/2X/8/81eff7226eb0b7c47916528ba9c88ce29f02579d.jpg)

---

<div class="post-metadata">

**Author:** ![jay007](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jay007/32/15479_2.png) [@jay007](https://forum.sambapos.com/u/jay007)\
**Post date:** [September 24, 2015, 8:40am UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/4 "2015-09-24T08:40:09Z")

</div>

Could someone give me an example report of how to get outstanding Customer balance. I’m struggling with Custom Reports. 😕

---

<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 24, 2015, 11:07am UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/5 "2015-09-24T11:07:11Z")

</div>

Show us what you have tried so far. We can help spot the problem.

---

<div class="post-metadata">

**Author:** ![jay007](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jay007/32/15479_2.png) [@jay007](https://forum.sambapos.com/u/jay007)\
**Post date:** [September 24, 2015, 1:00pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/6 "2015-09-24T13:00:01Z")

</div>

I haven’t done anything only `{ACCOUNT TOTAL:Scott-4555555555}`which gives me the balance of that account. I would have have to add a report for each account using it that way. What I would like to do is create a report that will show me outstanding balance and maybe all transactions. When that account is selected run the report and it will give me results for that account only. Is this possible?

I would also like to run a report to show all outstanding accounts. Should I be reading up on SQL scripting to achieve above or would Custom Report tags achieve it. A lot of the reports I’ve seen here are for stock and employee. I’m just finding it hard to get my head around it.

I want to learn to how do it myself I don’t expect anyone to write reports for me but if someone could give me a small example of any of the reports I’ve mentioned it might push me in the right direction.

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [September 24, 2015, 1:29pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/7 "2015-09-24T13:29:35Z")

</div>

Did you tried creating a custom account screen?

Accounts \> Account Screens \> Add Account Screen…

… and create something like that.

 ![](https://forum.sambapos.com/uploads/default/original/2X/a/a84ca8c2286f3c8f35cc66d46d5f36dfae9cb305.jpg)

You can also add automation command buttons on this screen to perform actions on selected accounts.

---

<div class="post-metadata">

**Author:** ![jay007](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jay007/32/15479_2.png) [@jay007](https://forum.sambapos.com/u/jay007)\
**Post date:** [September 24, 2015, 2:44pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/8 "2015-09-24T14:44:21Z")

</div>

Yes I have that done but I want to be able to email and print a customer their balance. I was told I would have to create a report to do this and attach the report to the account screen as the print button is hard coded.

---

<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 24, 2015, 2:52pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/9 "2015-09-24T14:52:39Z")

</div>

Yes you would. But based on account you can tell it which report to print when you select an account. I will demonstrate. Give me a few minutes to prepare demonstration.

Create an Automation Command button

![](https://forum.sambapos.com/uploads/default/original/2X/c/cd2c1d0078f96c2177fde912a8ea110987cebe6d.png)

Create an Account Screen for Customers Accounts like what Emre showed above put your automation command button here and select Account for Command Parameter

 ![](https://forum.sambapos.com/uploads/default/original/2X/3/34f9a9832b2e928d48b5f23896cbe0a252fa0aab.png)

Create a Print Account Transactions action use [:Account Id] as Account Id Parameter

![](https://forum.sambapos.com/uploads/default/original/2X/7/754a7f2859d35a79d5a194075f3a207285bb0cc6.png)

Create the following rule:

 ![](https://forum.sambapos.com/uploads/default/original/2X/1/18181a3f464452beb3f1b85b489b128f4064c489.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 24, 2015, 3:29pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/10 "2015-09-24T15:29:28Z")

</div>

Now when you go to your accounts screen and select an account and press your print button you just made it will print only for that selected account the balance and transactions based on date filter you set for the screen.

---

<div class="post-metadata">

**Author:** ![pauln](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pauln/32/12698_2.png) [@pauln](https://forum.sambapos.com/u/pauln)\
**Post date:** [September 24, 2015, 4:13pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/11 "2015-09-24T16:13:31Z")

</div>

> [@Jesse](#):
>
> here and select Account for Command Parameter

Was watching closely as it has to do with Customer Accounts. When you said use “Account” for the Command parameter - where would you find references to the parameters to use? It’s probably because it 12.11am and have been working on our old dog POS system for a client and just can’t see clear (through my red eyes)… 😫

---

<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 24, 2015, 4:20pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/12 "2015-09-24T16:20:49Z")

</div>

Click on the drop down and look at them 😛

---

<div class="post-metadata">

**Author:** ![pauln](https://forum.sambapos.com/user_avatar/forum.sambapos.com/pauln/32/12698_2.png) [@pauln](https://forum.sambapos.com/u/pauln)\
**Post date:** [September 24, 2015, 4:23pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/13 "2015-09-24T16:23:27Z")

</div>

Oh really, that’s it I going to bed! 😮 Thanks Mate…

---

<div class="post-metadata">

**Author:** ![jay007](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jay007/32/15479_2.png) [@jay007](https://forum.sambapos.com/u/jay007)\
**Post date:** [September 24, 2015, 7:20pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/14 "2015-09-24T19:20:04Z")

</div>

Thanks this is what I was looking for. Is it possible to change printer from Ticket Printer or should I just create another printer for my receipts etc.

---

<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 24, 2015, 7:21pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/15 "2015-09-24T19:21:30Z")

</div>

You can change it. I use invoice printer. Go to settings and terminal. Select your terminal and set the report printer.

---

<div class="post-metadata">

**Author:** ![jay007](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jay007/32/15479_2.png) [@jay007](https://forum.sambapos.com/u/jay007)\
**Post date:** [September 24, 2015, 8:14pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/16 "2015-09-24T20:14:29Z")

</div>

Great, thanks for that.

---

<div class="post-metadata">

**Author:** ![jay007](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jay007/32/15479_2.png) [@jay007](https://forum.sambapos.com/u/jay007)\
**Post date:** [October 9, 2015, 1:59pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/17 "2015-10-09T13:59:16Z")

</div>

The Print account Transactions Template is hard-coded right? Is it possible to create a custom report with the same results as the Print account Transactions? I would like to include the Ticket ID

---

<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:** [October 9, 2015, 2:25pm UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/18 "2015-10-09T14:25:31Z")

</div>

~~Are you talking about the Print button from Accounts Screen? Can you show a screenshot of what you mean?~~

Yes that is hard coded.

> [@jay007](#):
>
> Is it possible to create a custom report with the same results as the Print account Transactions? I would like to include the Ticket ID

You can create a report of anything.

**PS: Create a new post use v5 Question category and title It Custom Report Help and then describe in detail what kind of report you want and what you want in it and how you want it to look.**

---

<div class="post-metadata">

**Author:** ![gsreddy](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/g/e9c0ed/32.png) [@gsreddy](https://forum.sambapos.com/u/gsreddy)\
**Post date:** [December 3, 2015, 12:20am UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/19 "2015-12-03T00:20:29Z")

</div>

Can Community please check this report I want to see only customer list with balances , in this report its showing all customers.

 ![](https://forum.sambapos.com/uploads/default/original/3X/0/a/0aefdf6989c8744185f7a8e79832c773f6c7a5cb.jpg)

Template:

```
[Customer Balances:2,2,3, 2]
{REPORT ENTITY DETAILS:EC.Customer Name,E.Name,EC.Address,E.Balance:(ET=Customers) && E.AccountId>0:::$4!=0}

```

Same I have tips and cashout report showing all tickets if I select a month which shows 100’s of tickets only related tickets I need thanks.

Template:

```
[Cash Outs by Tickets:1,1,1,1,1,1,1,1,]
>Ticket Number|Date|Time|Cashout Amount|Service Amount|Orders Amount|Total Amount|Payment Type
{REPORT TICKET DETAILS:T.TicketNumber,T.Date,T.Time,CA.Cash Out,CA.Service,=[T.TotalAmount]-[CA.Cash Out]-[CA.Service],T.TotalAmount,TT.PT2:(TS.Status=Paid)}

[Payment Totals:1, 1]
Eftpos Total: |${REPORT PAYMENT TOTAL:(PT=Eftpos)}
Cash Total: |${REPORT PAYMENT TOTAL:(PT=Cash)}
Cash Out Total: |${REPORT CALCULATION TOTAL:(CT=Cash Out)}
>TOTAL:|${ACCOUNT TOTAL:Payment Accounts}

```

 ![](https://forum.sambapos.com/uploads/default/original/3X/2/a/2aba94df573d51e64f14bc96f9c1428a7cd583d2.jpg)

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [December 3, 2015, 2:10am UTC](https://forum.sambapos.com/t/custom-reports-customer-balance/7247/20 "2015-12-03T02:10:38Z")

</div>

As I’ve explained on your previous question you’re missing “.sum” in field name (E.Balance). Please check my previous example on your other topic.

Please format your posts properly while adding templates. Without formatting it is really hard to read. I’m fixing this one for you.

[Next page](https://forum.sambapos.com/t/custom-reports-customer-balance/7247.md?page=2)
