I am trying to produce a report showing invoices and payments against those invoices - in customer order. I have joined:
SALES_LEDGER table to AUDIT_SPLIT table on ACCOUNT_REF
AUDIT_SPLIT table to AUDIT_USAGE table on ACCOUNT_REF
The report is intended to look something like (with extraneous details omitted):
Customer ABC123
Invoice £500
Payment £200
Payment £300
Sub-total payments: £500
Invoice £425
Payment £150
Payment £100
Sub-total payments: £250
Total invoiced: £925
Total payments: £750
Customer CDE456
etc
Groups are set up on Customer and Invoice.
The detail values and subtotals are OK, but the 'Total invoiced' evaluated for each customer is wrong: Sage is evaluating the ‘Total invoiced’ expression AUDIT_SPLIT.GROSS_AMOUNT(Sum) by assuming that there is an invoice amount alongside each payment line and adding the lot up. For example, instead of ‘Total invoiced £925’, Sage is assuming an invoiced value of £500 for each of the first two payments plus £425 for each of the second invoice’s payments and displaying ‘Total invoiced £1850’. The same is true for Grand totals. In other words, it is adding up the values from the detail lines when I want it to add up the values from the group header.
I am obviously doing something wrong, but DAK how I tell Sage (in the expression for ‘Total invoiced’) that I want it to be the sum of the values of each group variable?
Need more, need help now?
- - - - - - - - - - - - - - - - - - pay-as-you-go support - no contract - tenth of an hour billing - expert help - fast service - no call queues
Need integration?
- - - - - - - - - - - - - - - - - - with your shipping system - website - invoicing system - crm - cms - manufacturing - order import - back to back orders..
Need a report?
- - - - - - - - - - - - - - - - - - Excel reporting that pulls data from Sage - custom layouts - layouts that change adapt to your brands and/or for drop shipping.
Want web hosting?
- - - - - - - - - - - - - - - - - - Your own domain name - email - a shop - wordpress - woo commerce - ticket systems - help desks - forums - portals
- - - - - - - - - - - - - - - - - - pay-as-you-go support - no contract - tenth of an hour billing - expert help - fast service - no call queues
Need integration?
- - - - - - - - - - - - - - - - - - with your shipping system - website - invoicing system - crm - cms - manufacturing - order import - back to back orders..
Need a report?
- - - - - - - - - - - - - - - - - - Excel reporting that pulls data from Sage - custom layouts - layouts that change adapt to your brands and/or for drop shipping.
Want web hosting?
- - - - - - - - - - - - - - - - - - Your own domain name - email - a shop - wordpress - woo commerce - ticket systems - help desks - forums - portals
Custom reports - subtotalling groups
-
- User
- Posts: 8
- Joined: 10 Aug 2011, 18:13
- Sage Version: v2009 15 UK/Europe/Africa
- brucedenney
- Site Admin
- Posts: 4631
- Joined: 28 Feb 2006, 09:56
- Sage Version: v28 UK/Europe/Africa
Re: Custom reports - subtotalling groups
You need to add the items in the USAGE record, I think
For just about anything Sage :- Discount subscriptions, pay-as-you-go support, application integration, reports, layouts, linked excel spreadsheets, analysis or any other help making life with sage easier/less time consuming Contact me.
Who is online
Users browsing this forum: No registered users and 4 guests