protected function getItemSku($item)
    {
        if ($item->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) {
            return $item->getProductOptionByCode('simple_sku');
        }
        return $item->getSku();
    }
protected function getItemSku($item)
    {
        if ($item->getProductType() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE) {
            return $item->getProductOptionByCode('simple_sku');
        }
        return $item->getSku();
    }
protected function getItemSku ( $ item ) { if ( $ item -> getProductType ( ) == Mage_Catalog_Model_Product_Type :: TYPE_CONFIGURABLE ) { return $ item -> getProductOptionByCode ( 'simple_sku' ) ; } return $ item -> getSku ( ) ; }
Returns the sku of the given item dependant on the product type.

@param Mage_Sales_Model_Order_Item $item The item to return info from
@return String The sku
Returns the sku of the given item dependant on the product type .