{** * templates/payments/viewPayment.tpl * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2006-2009 Gunther Eysenbach, Juan Pablo Alperin, MJ Suhonos * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Page to view one CompletedPayment in detail * *} {strip} {assign var="pageTitle" value="common.payment"} {include file="common/header.tpl"} {/strip}
{if $payment}
{else} - {/if} {if $payment->isSubscription()} {assign var=subscriptionId value=$payment->getAssocId()} {if $individualSubscriptionDao->subscriptionExists($subscriptionId)} {elseif $institutionalSubscriptionDao->subscriptionExists($subscriptionId)} {/if} {/if}
 
{translate key="manager.payment.paymentId"} {$payment->getCompletedPaymentId()}
{translate key="user.username"} {assign var=user value=$userDao->getById($payment->getUserId())} {if $isJournalManager} getUserId()}">{$user->getUsername()|escape|wordwrap:15:" ":true} {else} {$user->getUsername()|escape|wordwrap:15:" ":true} {/if}
{translate key="manager.payment.description"} {$payment->getName()|escape}
{translate key="manager.payment.timestamp"} {$payment->getTimestamp()|escape}
{translate key="manager.payment.amount"} {$payment->getAmount()|string_format:"%.2f"} ({$payment->getCurrencyCode()|escape})
{translate key="manager.payment.paymentMethod"} {$payment->getPayMethodPluginName()|escape}
 
{translate key="manager.payment.details"} {if $payment->getAssocDescription()} ({$payment->getAssocId()|escape}) {$payment->getAssocDescription()|escape}
{translate key="manager.payment.editSubscription"}
{translate key="manager.payment.editSubscription"}
 
{else} {translate key="manager.payment.paymentId"} {translate key="manager.payment.notFound"} {/if}

{include file="common/footer.tpl"}