Fix for OVPMS-1509 StackOverflowError selecting customer with thousands of patients

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/branches/1.8-dev@6192 9e4fa352-aafb-0310-9071-df624684024b
Fix for OVPMS-1511 Stock export and import to handle situation where the context doesn't have a default stock location

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/trunk@6193 9e4fa352-aafb-0310-9071-df624684024b
Merged back changes from trunk

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/branches/1.8-dev@6194 9e4fa352-aafb-0310-9071-df624684024b
Integrate changes for OVPMS-1517Add a new Discount type to produce a discount based on cost price plus a rate, contributed by Ben Charlton

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/trunk@6196 9e4fa352-aafb-0310-9071-df624684024b
Fix to use the fixed and unit cost stored on the item rather than those on the price; this may change or not be available if:
* the unit or fixed price changes
* the customer has tax exemptions

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/trunk@6198 9e4fa352-aafb-0310-9071-df624684024b
Changes for OVPMS-1522 Work In Progress location filter

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/trunk@6199 9e4fa352-aafb-0310-9071-df624684024b
Integrated changes for OVPMS-1517 Add a new Discount type to produce a discount based on cost price plus a rate, contributed by Ben Charlton

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/branches/1.8-dev@6201 9e4fa352-aafb-0310-9071-df624684024b
merged back changes from trunk

git-svn-id: svn://svn.openvpms.org/openvpms/vpms/branches/1.8-dev@6204 9e4fa352-aafb-0310-9071-df624684024b
Merge branch 'remote-1.8'