"Applied fix from trunk for revision: 1531848 " jleroux: I have tested it locally with R11.04: works!
------------------------------------------------------------------------
r1531848 | jacopoc | 2013-10-14 12:56:24 +0200 (lun. 14 oct. 2013) | 3 lignes

Fixed bug reported by Simon Maskell in OFBIZ-5344 with a slightly different patch than the one provided by Simon.
 Also added a TODO comment to warn that the current logic doesn't work well for LIFO/FIFO.

------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/release12.04@1553863 13f79535-47bb-0310-9956-ffa450edef68