Skip to content
Snippets Groups Projects
Commit 10dc60ed authored by Dorian Merz's avatar Dorian Merz Committed by Frank Morgner
Browse files

refs #11243

* add SafeMoneyFormat method to ajax controller
* display currency of fees at additional account infos
parent 1ef6fd4b
No related merge requests found
......@@ -27,6 +27,7 @@
*/
namespace finc\Controller;
use VuFind\Exception\Auth as AuthException;
use VuFind\View\Helper\Root\SafeMoneyFormat;
/**
* This controller handles global AJAX functionality
......@@ -266,9 +267,11 @@ class AjaxController extends \VuFind\Controller\AjaxController
$patron
);
$additionalAccountInfos['countFines'] = $catalog->getFinesTotal(
$smf = new SafeMoneyFormat();
$smf->setView($this->getViewRenderer());
$additionalAccountInfos['countFines'] = $smf($catalog->getFinesTotal(
$patron
);
));
// Done
return $this->output($additionalAccountInfos, self::STATUS_OK);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment