Change value of option from the value to the key of the array
fix WO entry costing calculations to take into account BOM effectivity dates
09/06/2014 Exson: Fixed the Delivery Date lossing bugs when change Warehouse. Reported by akits from minghao.hk(weberp) bbs.