Skip to content
Report · Financials

Cash position by bank account

The ledger balance of each bank account today, with money in and out over the last 30 days.

  • cash
  • treasury
  • snapshot
Sample preview, fictional dataYour own figures appear after import.

01

About this report

For every bank account, the general ledger balance through today in base currency, from the primary accounting book. Next to it are the amounts in and out over the last 30 days, the net movement and the date of the last posting.

This is the book balance, not the bank statement balance, so uncleared cheques and deposits in transit are included. Foreign-currency accounts show their base-currency value. The account name opens the account.

02

Sample preview

Fictional figures in the shape you will see. Yours come from your account.

Bank accountBalanceIn, last 30 daysOut, last 30 daysNet, last 30 daysLast posting
1000 Operating account842,300.15612,400571,880.4040,519.602026-09-23
1010 Payroll account48,200290,000286,4103,5902026-09-19
1020 USD account131,950.8088,40012,20076,2002026-09-22
1050 Savings250,0000002026-06-30

03

The SuiteQL

This is the query each report runs. Read it, copy it, or change it after import.

Cash position by bank account
SELECT a.id AS account__id,
       a.displaynamewithhierarchy AS account,
       SUM(tal.amount) AS balance,
       SUM(CASE WHEN t.trandate > TRUNC(SYSDATE) - 30 AND tal.amount > 0 THEN tal.amount ELSE 0 END) AS inflow_30,
       SUM(CASE WHEN t.trandate > TRUNC(SYSDATE) - 30 AND tal.amount < 0 THEN -tal.amount ELSE 0 END) AS outflow_30,
       SUM(CASE WHEN t.trandate > TRUNC(SYSDATE) - 30 THEN tal.amount ELSE 0 END) AS net_30,
       TO_CHAR(MAX(t.trandate), 'YYYY-MM-DD') AS last_posting
  FROM transactionaccountingline tal
  JOIN accountingbook ab ON ab.id = tal.accountingbook AND ab.isprimary = 'T'
  JOIN transaction t ON t.id = tal.transaction
  JOIN account a ON a.id = tal.account
 WHERE tal.posting = 'T'
   AND a.accttype = 'Bank'
   AND t.trandate <= SYSDATE
 GROUP BY a.id, a.displaynamewithhierarchy
 ORDER BY balance DESC

04

Appears in

ReportFinancials

Cash position by bank account

Screenshot of the Cash position by bank account report in HiScale Advanced Reports, filled with fictional sample data
Sample preview, fictional dataOpen image full size (opens in a new tab)