Colour Code Customer Invoice Item
Submitted by Yuri on Thu, 28/11/2013 - 17:30
In the Visit Editor, Meds have green background (BG); is it possible to change BG colour of Customer Invoice Item? I had a bit of a fossick around in default.stylesheet but can't see anything there.
Re: Colour Code Customer Invoice Item
Try adding the following to default.stylesheet:
This works in 1.7, but should also work in 1.6.
-Tim
Re: Colour Code Customer Invoice Item
Thanks, Tim that worked a treat, even on 1.6.2.
Yuri.
Re: Colour Code Customer Invoice Item
I'm customising 1.7 with the changes from 1.6, and have gone to the default.stylesheet (DS) as above to alter the invoice item colours.
However the new DS shows
<property name="background" value="${history.invoice.colour}"/> instead of the former
<property name="background" value="#ffffff"/>.
I've fossicked around looking for, but can't find, the location of ${history.invoice.colour}. I've tried a forum search for history.invoice, but no results are returned (I thought it might be somewhere in 1.7's help files).
Wondering:
1. Where are these variables(?) located/stored?
2. In the meantime, can I just change ${history.invoice.colour} to say, #ffff80 ?
Yuri.
Re: Colour Code Customer Invoice Item
Yuri - the history colours are set in default.properties - around line 130 which has:
default.properties is in <TOMCAT-HOME>\webapps\openvpms\WEB-INF\classes\style
I have adjusted http://www.openvpms.org/documentation/csh/1.7/reference/style-colours to mention these. Apologies for it not being there before.
Regards, Tim G
Re: Colour Code Customer Invoice Item
Thanks, all fixed now.
Yuri.
Re: Colour Code Customer Invoice Item
Staff love this, thanks. Now almost only the notes are white, most other stuff is coloured, making notes much easier to read on-screen (especially as some items in the visit seem to randomly place themselves above or below the notes).
Being a pain, I know, while I'm on a roll, can I change BG colour for investigation, attachment, image as well? I can't find them in def.prop or def.stylesheet?
Yuri.
Re: Colour Code Customer Invoice Item
No-one here likes the BG colour (cream = #f2f3b3) on a selected item in the schedule as it's too easy to miss what's actually happening to that appointment (especially on our LCD monitors if you're not looking at the screen exactly square on - too similar to Pending, so it's easy to miss a waiting client if you haven't de-selected that client -> grumpy client!). Previous versions of OV bolded the selected item, but didn't mask the BG colour.
Line 509 in default.stylesheet lists ScheduleTable.Selected, and has cream as the value.
Is it possible to disable "creaming-the-selected-item" and have just the underlying colour and bold/italic text?
Yuri.
Re: Colour Code Customer Invoice Item
Try changing default.stylesheet to comment out the layoutData property as follows:
Re: Colour Code Customer Invoice Item
You can change the investigation colour with the history.investigation.colour property.
You'll need to add the following to default.stylesheet to change the document colours:
Then add the corresponding properties to default.properties:
Raised as https://openvpms.atlassian.net/browse/OVPMS-1447
-Tim