1.8beta2 Statement Printing{solved}
Submitted by Ben_Charlton on Fri, 19/06/2015 - 15:05
There is a problem with Statements in 1.8
I adjusted our statements to use the hide parameter for statement items
but that isnt the issue...
I have atleast 1 unfinalized transaction appearing on the statement.
What follows is a copy paste out my own account history.
Id
|
Date
|
Type
|
Amount
|
Description
|
Hidden |
96208 | 17/06/2015 | Invoice | 115.00 |
|
|
93998 | 14/05/2015 | Credit | -71.22 |
|
|
92276 | 28/04/2015 | Opening Balance | 146.22 |
|
|
92275 | 28/04/2015 | Closing Balance | -146.22 |
|
|
90327 | 01/04/2015 | Opening Balance | 146.22 |
|
|
90326 | 01/04/2015 | Closing Balance | -146.22 |
|
|
89755 | 30/03/2015 | Opening Balance | 146.22 |
|
|
89754 | 30/03/2015 | Closing Balance | -146.22 |
|
|
88539 | 30/03/2015 | Invoice | 71.22 |
|
|
89544 | 27/03/2015 | Refund | 0.01 |
|
Id | Reference | |||
Date | Credit | |||
Amount | Printed | |||
Tax | Clinician |
|
||
Status | Location |
|
||
Notes |
|
||||||||||||||||||||||||||||
|
You can clearly see the most recent transaction The state of my account is:
Balance:190.00 Overdue:75.00 Current Amount:115.00 Unbilled:198.93 Projected Amount:388.93
Now a statement produced the following infomation
Quite clearly the last invoice in unfinalized yet appears on the statement.
Re: 1.8beta2 Statement Printing
My other note is that statementItems has not had Non printing items supressed
The unfinalized invoice was produced by a template. the 2nd item should not print it would be supressed.
Incidently the expression error above is produced by
$F{[party:getPatientMicrochip(target.patient.entity)]}
I am still working on displaying patient microchips next to the patient name on a statement.
Clearly I need to adjust the datasource as I dont have acccess to partyfunctions in the context of a subreport
is the above likely to work I am out now and cant test. The only issue is how to declare the 3rd variable in the subreport.
Re: 1.8beta2 Statement Printing
If there is no act.customerAccountClosingBalance for the reporting period, the statement will show Finalised and Completed acts. I can't tell from your screenshot what the status of your invoice is, but I suspect it is Completed.
The statement report has not had the Print/Print Aggregate treatment as it was not part of the project specification.
The most likely reason $F{[party:getPatientMicrochip(target.patient.entity)]} is failing is because the target.patient.entity should be quoted i.e.:
There should be a full stack trace in the logs indicating the cause.
Re: 1.8beta2 Statement Printing
Wierdly the trace says the function doesnt exist...
Re: 1.8beta2 Statement Printing
Sorry - try:
You should also be able to do:
Re: 1.8beta2 Statement Printing
I am not sure the structure of the xpath is the issue ...the issue is the function party.getPatientMicrochip is undefined.
Same error with the version above
Re: 1.8beta2 Statement Printing
I've corrected a typo in my answer. Try now.
Re: 1.8beta2 Statement Printing
I noticed these import values in this file
statementitems subreport - I am not sure these party functions are available
I
Re: 1.8beta2 Statement Printing{solved}
yeah thanks Tim seriously I need a flipping language checker in jasperreports.