# Help with report

**URL:** <https://forum.sambapos.com/t/help-with-report/18201>\
**Category:** V5 Question\
**Created:** [September 6, 2018, 9:43am UTC](https://forum.sambapos.com/t/help-with-report/18201 "2018-09-06T09:43:53Z")\
**Posts on this page:** 3\
**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 6, 2018, 9:43am UTC](https://forum.sambapos.com/t/help-with-report/18201/1 "2018-09-06T09:43:53Z")

</div>

Hello I have a report which shows me all outstanding balances due. I need to filter this report for the accountant by date. I need to know what the outstanding balance was on a specific date. If I change dates it still gives me the same figure. The accountant needs to know what was the balance owed on the 31st Dec 2017.

[Customer Account Balances:2, 1]

\>Name| Balance

{REPORT ENTITY DETAILS:EC.Customer,E.Balance.sum:(ET=Customer) && E.AccountId\>0:::$2\>0}

{REPORT ENTITY DETAILS:EC.Customer,E.Balance.sum:(ET=Customer) && E.AccountId\>0:::$2\<0}

\>TOTAL|{REPORT ENTITY DETAILS:E.Balance.sum:(ET=Customer) && E.AccountId\>0:::}

[Open Layaways:3, 2, 2]

\>| Total| Balance Due

\>@@Openlayaways

---

<div class="post-metadata">

**Author:** ![JTRTech](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jtrtech/32/21270_2.png) [@JTRTech](https://forum.sambapos.com/u/JTRTech)\
**Post date:** [September 6, 2018, 11:03am UTC](https://forum.sambapos.com/t/help-with-report/18201/2 "2018-09-06T11:03:59Z")

</div>

I strugled with similar when trying to sort BF and CF figured for a debtors report on a system.  
Balance type reports generally only returned current figure and didnt back date with report period.

---

<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 6, 2018, 12:49pm UTC](https://forum.sambapos.com/t/help-with-report/18201/3 "2018-09-06T12:49:04Z")

</div>

REPORT ENTITY DETAILS report is useful to report Entity Data. You can’t filter customer balance on this report. Preparing a report based on Customer Account transactions and summarize transaction amounts will be a better idea. I prepared a report but.added few features to simplify syntax. That will work on next update.

```auto
[REPORT 2:2, 1]
@{REPORT ENTITY DETAILS:E.AccountId:(ET=Customers):,}
@{REPORT ENTITY DETAILS:E.Name:Entity.AccountId == $1}
{REPORT ACCOUNT TRANSACTION DETAILS: BBI.$1.sum:(STAI=$1):$2|{0}}

```

PS: Second parameter list is useful to capture Entity Name instead of using account name.

– **BBI** (Balance By Id) returns transaction balance for the account id.  
– **STAI** parameter allows us the filter account transactions by source or target account id.
