Cost handling in purchasing module fixed.