Fix incorrect exchange postings at hlh

This pull request contains, two fixes for hdm. One to allow issue of multiple inventory items and the other 
for the fix of foreign exchange issue. I have not tested the second. It is based on the previous fix i made for almc basing on the analysis of the code.
The first may not work. I have been trying to ensure that i have uploaded all the required files without much success. The missing file is indexArray.php which is in includes folder. 
Never the less test the second. and let me confirm that i m able to go the entire cycle of fork, clone, correct, commit, push and create a pull request.