# ACCOUNTING REPORT Tags Expressions

**URL:** <https://forum.sambapos.com/t/accounting-report-tags-expressions/11438>\
**Category:** V5 Request\
**Created:** [June 25, 2016, 9:22am UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438 "2016-06-25T09:22:43Z")\
**Posts on this page:** 17\
**Page:** 1

<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:** [June 25, 2016, 9:22am UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/1 "2016-06-25T09:22:43Z")

</div>

Hello @emre

I need some here as I have made a glaring stuff thinking I could departmentalize Accounting but these Tags below do not support Expressions:

[[NEW!] How to use Custom Reports Module 1.0](https://forum.sambapos.com/t/new-how-to-use-custom-reports-module-1-0/2142/5):

> [@\[NEW!\] How to use Custom Reports Module 1.0](https://forum.sambapos.com/t/new-how-to-use-custom-reports-module-1-0/2142/5):
>
> Supported Tags:
> 
> {ACCOUNT TOTAL:X}This tag returns total balance of X. X can be an account name or account type name. For example if you type {ACCOUNT TOTAL:Cash} it will give you the balance of Cash account. If you type {ACCOUNT TOTAL:Payment Accounts} it will give you the balance total of all Payment Accounts.
> 
> {ACCOUNT DEBIT TOTAL:X}Works like {ACCOUNT TOTAL:X} but it gives only Debit Total.
> 
> {ACCOUNT CREDIT TOTAL:X}Works like {ACCOUNT TOTAL:X} but it gives only Credit Total.
> 
> {ACCOUNT TRANSACTION TOTAL:X}This tag returns total ot X Account Transactions. X should be [Account Transaction Type Name:Account Name]. For example
> 
> {ACCOUNT TRANSACTION TOTAL:Payment Transaction:Cash} tag will return total amount of Payment Transactions which changes Cash account.
> 
> {ACCOUNT TRANSACTION DEBIT TOTAL:X}Works like {ACCOUNT TRANSACTION TOTAL} but returns Debit Total.
> 
> {ACCOUNT TRANSACTION CREDIT TOTAL:X}Works like {ACCOUNT TRANSACTION TOTAL} but returns Credit Total.
> 
> {ACCOUNT TRANSACTION DETAILS:X}This special tag prints Account Transaction Details for X Account Transaction Type. X will be the Account Transaction Name. It returns a 3 column table. Date, Description and Amount. For example:
> 
> {ACCOUNT TRANSACTION DETAILS:Customer Cash Payment:Cash} tag will print details of cash payments made by customers.

**Emre I was expecting to be able to do something like this:**

`{ACCOUNT TRANSACTION DETAILS:Customer Account Transaction:Customer Accounts:(DE=Bar)}`

The mere fact we had departments I assume we could separate the Accounting? We would assume most venues would not wish to have other departments looking at each others income…

I am trying to Departmentalize Cash Incomes Report:

![](https://forum.sambapos.com/uploads/default/original/3X/e/2/e2e302fb54580071d39fe15dcd55e9f8b3773051.JPG)

Having a look at the DBO structures I have no chance as Department ID only exists in some Mapping DBO that is not used?

Following this link:

> [@Tracking 2 Till Cash and Shifts](https://forum.sambapos.com/t/tracking-2-till-cash-and-shifts/1256):
>
> I wrote it as an answer to a question [Cash 2 tills seperately](http://forum.sambapos.com/t/cash-2-tills-seperately/1232) but later I decided to move it to a tutorial topic to increase visibility. This tutorial is about tracking 2 till cash accounts separately and consolidating them to a main cash account on shifts. If you need to know a total of “something” it will be a good idea to focus on accounting system. Now I’ll try to implement my idea by using accounting features and add step by step instructions. Please keep in mind I’m just trying to show …

INFERS my Account structures will need to Quadruple and go further depending on how many departments we use?

I really going to need your help here as I cannot go LIVE until I am sure my Account Structures are correct.  
Your assistance please.

---

<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:** [June 25, 2016, 10:18am UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/2 "2016-06-25T10:18:45Z")

</div>

You can create separate `Customer Account Transaction` documents for each department and map them through document type’s department mapping.

Well there is no single purpose of departments. Some venues have kitchen, bar, delivery departments. Some people separates cash transactions by currency. Some separates them by physical tills. Being able to define separate account transaction types and document types solves all cases I saw to date.

---

<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:** [June 25, 2016, 10:27am UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/3 "2016-06-25T10:27:35Z")

</div>

> [@emre](#):
>
> Being able to define separate account transaction types and document types solves all cases I saw to date.

Can you please give an example.

> [@emre](#):
>
> You can create separate Customer Account Transaction documents for each department and map them through document type’s department mapping.

So I assume I need to modify my account structure like:

CASH: Department Bar  
CASH Department: Kitchen

So the issue is Customer Account Payments can be **Cash; Credit; Voucher; Acccount Customer; Account Prize; Account Member; and Account Bar**.

So you are telling me these all need to be CLONED by Department correct?

---

<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:** [June 25, 2016, 10:33am UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/4 "2016-06-25T10:33:14Z")

</div>

> [@pauln](#):
>
> So you are telling me these all need to be CLONED by Department correct?

Where I said that? I know my English is not perfect but I don’t think I said clone all your accounts.

See this one.

```
{ACCOUNT TRANSACTION DETAILS:Customer Cash Payment:Cash}

```

It only lists cash account transactions made by customer cash payment transaction. If you need to separate them you can define two Customer Cash Payment transaction types and filter cash account transactions like…

```
{ACCOUNT TRANSACTION DETAILS:Customer's Bar Cash Payment:Cash}

```

If you review Sample report I’ve filtered Payment Type accounts by using different report features.

```auto
[Expenses:1,2,1]
>Cash Transactions||
{ACCOUNT TRANSACTION DETAILS:Cash Expense:Cash}
Total||{ACCOUNT TRANSACTION TOTAL:Cash Expense:Cash}

[Incomes:1,2,1]
>Sale Incomes||
Cash||{ACCOUNT TRANSACTION TOTAL:Payment Transaction:Cash}
Credit Card||{ACCOUNT TRANSACTION TOTAL:Payment Transaction:Credit Card}
Total||{ACCOUNT TRANSACTION TOTAL:Payment Transaction:Payment Accounts}
>Cash Transactions||
{ACCOUNT TRANSACTION DETAILS:Cash Income:Cash}
{ACCOUNT TRANSACTION DETAILS:Customer Cash Payment:Cash}
Total||[=F((TN('{ACCOUNT TRANSACTION TOTAL:Cash Income:Cash}')+TN('{ACCOUNT TRANSACTION TOTAL:Customer Cash Payment:Cash}')),'#,#0.00')]
>Income Totals||
Cash||{ACCOUNT DEBIT TOTAL:Cash}
Credit Card||{ACCOUNT DEBIT TOTAL:Credit Card}

[Totals:3,1]
Cash|{ACCOUNT TOTAL:Cash}
Credit Card|{ACCOUNT TOTAL:Credit Card}
Total|{ACCOUNT TOTAL:Payment Accounts}

```

For example

```
{ACCOUNT TOTAL:Cash}
{ACCOUNT DEBIT TOTAL:Cash}
{ACCOUNT TRANSACTION TOTAL:Cash Income:Cash}
{ACCOUNT TRANSACTION DETAILS:Cash Income:Cash}
{ACCOUNT TRANSACTION TOTAL:Payment Transaction:Cash}
{ACCOUNT TRANSACTION TOTAL:Cash Expense:Cash}

```

All of them takes data from single Cash account. We still have single cash account. We filter it by transaction types.

PS: On Tills tutorial there are separate Cash Accounts because these are physically separate Cash Drawers and tracked separately.

---

<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:** [June 25, 2016, 10:44am UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/5 "2016-06-25T10:44:38Z")

</div>

> [@emre](#):
>
> PS: On Tills tutorial there are separate Cash Accounts because these are physically separate Cash Drawers and tracked separately.

Ok I try this after dinner.  
I need to reproduce this report above DEPARTMENT and then by TILL DRAW…  
That is my task does that help?

---

<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:** [June 25, 2016, 10:58am UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/6 "2016-06-25T10:58:46Z")

</div>

If you have till based distinction you need to select a till for all cash transactions. Best way to do that is having separate cash accounts as I’ve demonstrated in tutorial.

---

<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:** [June 25, 2016, 11:21am UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/7 "2016-06-25T11:21:00Z")

</div>

> [@emre](#):
>
> If you have till based distinction you need to select a till for all cash transactions

Sorry, so if I need the Report by:  
CONSOLIDATED $$$  
DEPARTMENT A $$$  
…TILL 1 $$$  
…TILL 2 $$$  
DEPARTMENT B $$$  
…TILL $$$

I use separate Accounts: Cash; Credit;Voucher;Customer Account;Prize Account;Bar Account; and Member Account, for transactions. Then to Group by Dpeartment I use xxx Account Transaction Document by Department?

---

<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:** [June 25, 2016, 1:30pm UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/8 "2016-06-25T13:30:33Z")

</div>

> [@emre](#):
>
> See this one.
> 
> {ACCOUNT TRANSACTION DETAILS:Customer Cash Payment:Cash}
> 
> It only lists cash account transactions made by customer cash payment transaction. If you need to separate them you can define two Customer Cash Payment transaction types and filter cash account transactions like…
> 
> {ACCOUNT TRANSACTION DETAILS:Customer’s Bar Cash Payment:Cash}

Well that **Customer Bar Cash Payment:Cash** is not DEPARTMENT specific and can occur in all Departments. So I was referring to these Account Transaction Types below.

These have to be cloned?

**Account Transaction Types**  
 ![](https://forum.sambapos.com/uploads/default/original/3X/f/d/fd6d32f8566b7beae6a35a6fe4911c44c0b22ca5.JPG)

AND then to run separate TILL CASH Draws these accounts need to be cloned per Till.

---

<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:** [June 25, 2016, 2:07pm UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/9 "2016-06-25T14:07:34Z")

</div>

Also @emre there is no Button Header? So when tracking Tills I am going to get rather cramped especially when dealing with 4 Departments and Payment Processors as well!

 ![](https://forum.sambapos.com/uploads/default/original/3X/c/b/cb540d325150250555de3ff6f17abc5c550ac524.JPG)

The thing I am also working out is do I need to Clone Payment Types for Accounts and Wallets as these do not affect Till Balances BUT do affect Department Accounts and “Income Values”.

😕

**EDIT:**  
Actually Bar will be -  
Cash Bar 1  
Cash Bar 2  
As we will be using 2 draws in the 1st venue **and 4 Draws** in the 2nd venue…

---

<div class="post-metadata">

**Author:** ![noufal](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/n/6bbea6/32.png) [@noufal](https://forum.sambapos.com/u/noufal)\
**Post date:** [August 21, 2016, 10:56am UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/10 "2016-08-21T10:56:46Z")

</div>

Hello Dears, I have a issue with account details (expanse details) I was did setup expanse function with this tutorials [Expenses and Payouts - Method Q](https://forum.sambapos.com/t/expenses-and-payouts-method-q/1804) but now my issue if i enter my cashdrawe expence that will be goin in refunnd section , please help me how can i solve this issue/

 ![](https://forum.sambapos.com/uploads/default/original/3X/1/3/13d0446c479197413eaf23ce124d4fa3834650f4.png)  
Regards

---

<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:** [August 21, 2016, 12:23pm UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/11 "2016-08-21T12:23:42Z")

</div>

Show us what you did. Its hard for us to know without seeimg it.

---

<div class="post-metadata">

**Author:** ![noufal](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/n/6bbea6/32.png) [@noufal](https://forum.sambapos.com/u/noufal)\
**Post date:** [August 21, 2016, 12:34pm UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/12 "2016-08-21T12:34:52Z")

</div>

PLease tell me sir, what i have send to you|?

---

<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:** [August 21, 2016, 12:45pm UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/13 "2016-08-21T12:45:04Z")

</div>

Typically the way our forum works is you show in detail what your problem is. You use screenshots and detailed explanations. You wont get much help if the community cant understand what your oroblem is.

I understand you probably setup accounting wrong for what you expect but its hard to know exactly.

Start with showing us your accounting that you setup specifically your transaction types. Also is that the default WP report?

---

<div class="post-metadata">

**Author:** ![noufal](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/n/6bbea6/32.png) [@noufal](https://forum.sambapos.com/u/noufal)\
**Post date:** [August 21, 2016, 12:59pm UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/14 "2016-08-21T12:59:36Z")

</div>

Thank you sir, i am a new in smabapos My problem is expenses not coming in expense section, which i upload my image you can see in expenses is not showing. My expenses today 1308.00. its going wrong section, you can see this amount in refund section, today i did not make any refund.This is the issue, i can i solve this issue, i need 1308 should be in expense section.  
I make setup expenses with this tutorial [Expenses and Payouts - Method Q](https://forum.sambapos.com/t/expenses-and-payouts-method-q/1804)  
Thank you.

---

<div class="post-metadata">

**Author:** ![noufal](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/n/6bbea6/32.png) [@noufal](https://forum.sambapos.com/u/noufal)\
**Post date:** [August 22, 2016, 8:27am UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/15 "2016-08-22T08:27:16Z")

</div>

Thank you sir, i am a new in smabapos My problem is expenses not coming in expense section, which i upload my image you can see in expenses is not showing. My expenses today 1308.00. its going wrong section, you can see this amount in refund section, today i did not make any refund.This is the issue, i can i solve this issue, i need 1308 should be in expense section.  
I make setup expenses with this tutorial [Help required for Sam4S Kitchen Printer](https://forum.sambapos.com/t/expenses-and-payouts-method-q/18041)  
Thank you.

 ![](https://forum.sambapos.com/uploads/default/original/3X/0/9/094e9567f03828638d965e062b6ebf3a1f9a5776.jpg) ![](https://forum.sambapos.com/uploads/default/original/3X/9/8/98ff9c568920b3bd61e7f49fbb08da9a1f864d4f.jpg) ![](https://forum.sambapos.com/uploads/default/original/3X/5/4/54f9731341a04b8f282e8513e533d11aaf9c43eb.jpg) ![](https://forum.sambapos.com/uploads/default/original/3X/d/d/dda51c58415c3336b643afec9d81c2bafd88d7ff.jpg) ![](https://forum.sambapos.com/uploads/default/original/3X/a/5/a5b90562ff3f1368f36905d6166ca9d81deadd74.jpg) ![](https://forum.sambapos.com/uploads/default/original/3X/a/e/aef9b784eb0585f3c40b48318355356f56b2e885.jpg) ![](https://forum.sambapos.com/uploads/default/original/3X/e/3/e3dab681b6c69fca2ce505649b24165f4c7962ae.jpg) ![](https://forum.sambapos.com/uploads/default/original/3X/f/6/f679f88e2cb8c9f74d04bced361da95ddb4f1871.jpg) ![](https://forum.sambapos.com/uploads/default/original/3X/e/d/ed1f26da9181402512208367289517461d5a6433.jpg) ![](https://forum.sambapos.com/uploads/default/original/3X/5/9/59026c0ae52281f6afadd2ee6d958c9f25818f16.jpg)

---

<div class="post-metadata">

**Author:** ![noufal](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/n/6bbea6/32.png) [@noufal](https://forum.sambapos.com/u/noufal)\
**Post date:** [August 23, 2016, 7:13am UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/16 "2016-08-23T07:13:40Z")

</div>

Hello Dear, Can you help me ?

---

<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:** [August 23, 2016, 11:20am UTC](https://forum.sambapos.com/t/accounting-report-tags-expressions/11438/17 "2016-08-23T11:20:25Z")

</div>

I think your question needs better explanation. You’re saying it appears under refund account but on your screen shots 1,308.00 amount appears under Shop Expense Account. So it is hard to understand what your issue is. Accounting part of SambaPOS works fine for years without any issue. It is impossible to see an amount under a different account so it should be a configuration issue. It might be a good idea to review your configuration and especially if you’re implementing a tutorial feel free to ask parts you don’t understand so you can find your mistakes easily. Understanding how accounting works important to be able to configure a good account plan for your business needs.
