Location: PHPKode > projects > QuickerBooks > QuickerBooks/smarty/plugins/modifier.money.php
<?php
/** 
 * this will format the string as money
 */
function smarty_modifier_money($string)
{
	if ($string >= 0) {
		$string = sprintf('<span class="money positive"> %.2f </span>', $string);
	}
	else {
		$string = sprintf('<span class="money negative">(%.2f)</span>', -$string);
	}
    return $string;
}
?>
Return current item: QuickerBooks