Raw SQL from the "Customer Account Balance.jrxml" report.
Submitted by Guest on Tue, 28/08/2018 - 17:28
Trying to extract the raw SQL from the above report so I can make my own report, but when I open this "Customer Account Balance.jrxml" file, with either iReport or just Notepad++, I don't see any SQL statements, is this report baked into the application somehow? It has it's own section(OpenVPMS > Reporting > Debtors), instead of just being in the list under: OpenVPMS > Reporting > Reports.
We are on v1.9.1
Re: Raw SQL from the "Customer Account Balance.jrxml" report.
The Customer Account Balance report uses data supplied by the application rather than SQL.
The SQL would look something like:
Calculation is done internally to determine the overdue and credit and unbilled balances. For reference, this is done in the org.openvpms.archetype.rules.finance.account.CustomerBalanceSummaryQuery class. It could be replicated in SQL.
Re: Raw SQL from the "Customer Account Balance.jrxml" report.
Exactly the answer I'm after - really appreciate it.