protected function _serializeOptionalAmount($nodeName, $amount, $currencyCode=null)
	{
		if( $currencyCode)
		{
			return (!is_null($amount) && !is_nan($amount)) ? "<$nodeName currencyCode=\"$currencyCode\">{$this->_helper->formatAmount($amount)}</$nodeName>" : '';
		} else {
			return (!is_null($amount) && !is_nan($amount)) ? "<$nodeName>{$this->_helper->formatAmount($amount)}</$nodeName>" : '';
		}
	}
protected function _serializeOptionalAmount($nodeName, $amount, $currencyCode=null)
	{
		if( $currencyCode)
		{
			return (!is_null($amount) && !is_nan($amount)) ? "<$nodeName currencyCode=\"$currencyCode\">{$this->_helper->formatAmount($amount)}</$nodeName>" : '';
		} else {
			return (!is_null($amount) && !is_nan($amount)) ? "<$nodeName>{$this->_helper->formatAmount($amount)}</$nodeName>" : '';
		}
	}
protected function _serializeOptionalAmount ( $ nodeName , $ amount , $ currencyCode = null ) { if ( $ currencyCode ) { return ( ! is_null ( $ amount ) && ! is_nan ( $ amount ) ) ? "<$nodeName currencyCode=\"$currencyCode\">{$this->_helper->formatAmount($amount)}</$nodeName>" : '' ; } else { return ( ! is_null ( $ amount ) && ! is_nan ( $ amount ) ) ? "<$nodeName>{$this->_helper->formatAmount($amount)}</$nodeName>" : '' ; } }
Serialize the currency amount as an XML node with the provided name.
When the amount is not set, returns an empty string.

@param  string
@param  float
@param  string
@return string
Serialize the currency amount as an XML node with the provided name . When the amount is not set returns an empty string .