merged back changes from trunk

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6207 9e4fa352-aafb-0310-9071-df624684024b
Initial support for pharmacy orders for OVPMS-1523 HL7 Pharmacy Orders

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6210 9e4fa352-aafb-0310-9071-df624684024b
Add support to configure a dispense connector for pharmacies

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6215 9e4fa352-aafb-0310-9071-df624684024b
Add node to locate the act.patientClinicalEvent linked to the invoice item

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6218 9e4fa352-aafb-0310-9071-df624684024b
added customer pharmacy order archetypes

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6221 9e4fa352-aafb-0310-9071-df624684024b
added user node to party.organisationPharmacy to specify the user to process pharmacy dispense messages as

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6237 9e4fa352-aafb-0310-9071-df624684024b
merged back changes from 1.8-dev branch

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6239 9e4fa352-aafb-0310-9071-df624684024b
, reinstate archetypeRange for dispensing node of act.customerAccountInvoiceItem so its rendered on a tab
. added includeMillis, includeTimeZone to entity.connectorReceiverHL7MLLPType

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6243 9e4fa352-aafb-0310-9071-df624684024b
refactoring HL7 archetypes

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6248 9e4fa352-aafb-0310-9071-df624684024b
refactoring HL7 archetypes

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6249 9e4fa352-aafb-0310-9071-df624684024b
refactoring HL7 archetypes

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6254 9e4fa352-aafb-0310-9071-df624684024b
. added OrderRules
. added location node to act.customerOrderPharmacy and act.customerReturnPharmacy

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6258 9e4fa352-aafb-0310-9071-df624684024b
. changed customer order acts to FinancialActs, in order to support queries of other customer orders down the track
. added CustomerAccountRules.getCredit()
. expanded OrderRules

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6262 9e4fa352-aafb-0310-9071-df624684024b
. commented out batch in orders and returns for time being
. refactor FinancialTestHelper

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6265 9e4fa352-aafb-0310-9071-df624684024b
. added PatientHistoryChanges.isNew(Act event)
. added MedicalRecordRules.isAllergy(Act alert)

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6269 9e4fa352-aafb-0310-9071-df624684024b
Fix for OVPMS-1500 Reversal of supplier invoice produces incorrect balance

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/1.8-dev@6278 9e4fa352-aafb-0310-9071-df624684024b
Fix for OVPMS-1462 Check for unique user name before saving users

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/1.8-dev@6279 9e4fa352-aafb-0310-9071-df624684024b
Changes for OVPMS-1521 Change to the Calculation for Line item Price

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/1.8-dev@6280 9e4fa352-aafb-0310-9071-df624684024b
Added nodes to track order received and return quantities

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6281 9e4fa352-aafb-0310-9071-df624684024b
merged back changes from 1.8-dev branch

git-svn-id: svn://svn.openvpms.org/openvpms/archetypes/branches/OVPMS-1523@6282 9e4fa352-aafb-0310-9071-df624684024b