Dates on Invoices
Submitted by Guest on Wed, 19/10/2011 - 22:37
Hello,
I have a question about printed invoices for prolonged hospitalisation cases.
Currently our protocol is to run ONE invoice for the entire visit and leave it 'in progress' until we are ready to discharge the patient (this was the recommendation last time I enquired).
We have found that when we print the itemised invoice for the client at discharge, there are no printed 'dates' for the individual invoice items. It makes it very difficult for clients and reception to check the invoice.
Is this a problem associated with our invoice format? How can we get the dates of the individual invoice items to appear on the invoice? (ie. the date appears on the computer screen, but not the invoice)?
Many thanks,
Amanda.
Re: Dates on Invoices
Hi Amanda,
The default invoice template that comes with OpenVPMS 1.4 doesn't display dates but it is a relatively easy task for anyone who knows how to edit the template using iReport to change this. The file to edit is either invoiceitems.jrxml or invoiceitemsa5.jrxml (depending on what size paper you are using). You can use IReport to edit and add a date field or just about anything really (logos, invoice sirt orders in 1.5 etc)
If the person you get to do the edit needs help just get them to post here for some editing advise.
Cheers Tony
Re: Dates on Invoices
Thanks Tony!! I will get Damien to give it a go! If no luck, will post a query.
Amanda.
Re: Dates on Invoices
Hi Damien,
Quick answer for 1 is target.startTime
Fields you can use is determined by archetype being referenced and if subreport or not so a little complicated to give definitive list. :-)
Cheers Tony
Re: Dates on Invoices
Hi Damien,
target.startTime is the correct field.
Make sure the field is defined in the Fields list (View -> Fields). If not add it and make sure it's type is a java.util.Date.
Also make sure that the field you added to the report has the correct type (Properties ->Text Field) as well as set Pattern so displays date in the format you want.
You cna check the operation of reports inside iReport but the invoice, receipt etc templates are passed data from the application so more difficult to test outside the application. You can use Build->Compile to check for general errors such as type mismatches etc.
Cheers Tony