hi i have tried more on my own to create the report since to no avail i wanted the report just as i wanted.
What i need is a report exactly just like the Customer Statements (Unpaid Invoices) but with additional grouping of the sales invoice total by a custom field.
I am not sure why there is not any details under all the columns. I can see detail under all columns when I use the same parameters that you have.
Anyway, a report based on Custom fields will probably not produce what you want.
Changes to Custom fields and Custom Reports have been promised by the developer
to improve this. It has been some time though and difficult to know when improvements will happen.
What you want will not be achievable, as at present each custom field is specific to a transaction and has to be defined separately (which results in many columns or many groups which would make the report difficult to read and understand).
I believe that the new functionality will remedy this (when it is implemented).
It is difficult to give help when you only show part of the details each time you post.
I don’t think you can join the Transactions table that contains AccountAmount with Sales Invoice. Instead, Sales Invoices are already joined with the transactions table using SalesInvoiceAsTransaction.
If you replace Sales Invoice with SalesInvoiceAsTransaction in your Select criteria, that should solve your empty columns issue as a start.