1.7 Alpha Print on Med Records|Summary misses invoice info
If you display stuff on the Medical Records|Summary screen and then press the Print button, the invoice detail is missing.
For example with the screen showing:
The print shows:
The print uses the template type Patient Visit and the standard content file is patientclinicalevent a4.jrxml
I had a play with this and I think that the problem is that the jrxml thinks that for an invoice line item, the description item passed to the report contains the invoice detail shown on the screen - but its empty.
After playing with the report (I tried to print the item named 'total' but it didn't like it) I think that the problem is not the jrxml but the code in the web app that is building the items sent to the report - and for invoice line items it is not feeding what is shown on the screen into the 'description' item.
Regards, Tim G
Re: 1.7 Alpha Print on Med Records|Summary misses invoice info
This is related to https://openvpms.atlassian.net/browse/OVPMS-1329
What's shown on screen is derived from both the act.patientMedication and the act.customerAccountInvoiceItem, if present.
The report gets passed a list of acts determined by the Type and Include Charges query criteria.
If a medication is linked to an invoice item, then the report can use openvpms:get(., "invoiceItem.source.total") to get the total.
The "invoiceItem" is a node of act.patientMedication of type acRelationship.invoiceItemDispensing. The "source" is the source node of acRelationship.invoiceItemDispensing which links to an act.customerAccountInvoiceItem. The "total" is the total node of act.customerAccountInvoiceItem.
-Tim A