{** * templates/payments/viewPayments.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. * * Table to view all past CompletedPayments * *} {strip} {assign var="pageTitle" value="common.payments"} {include file="common/header.tpl"} {/strip}
{iterate from=payments item=payment} {assign var=isSubscription value=$payment->isSubscription()} {if $isSubscription} {assign var=subscriptionId value=$payment->getAssocId()} {if $individualSubscriptionDao->subscriptionExists($subscriptionId)} {assign var=isIndividual value=true} {elseif $institutionalSubscriptionDao->subscriptionExists($subscriptionId)} {assign var=isInstitutional value=true} {else} {assign var=isIndividual value=false} {assign var=isInstitutional value=false} {/if} {/if} {/iterate} {if $payments->wasEmpty()} {else} {/if}
 
{translate key="common.user"} {translate key="manager.payment.paymentType"} {translate key="manager.payment.timestamp"} {translate key="manager.payment.action"}
 
{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} {if $isSubscription} {if $isIndividual} {$payment->getName()|escape} {elseif $isInstitutional} {$payment->getName()|escape} {else} {$payment->getName()|escape} {/if} {else} {$payment->getName()|escape} {/if} {$payment->getTimestamp()|escape} getPaymentId()}" class="action">{translate key="manager.payment.details"}
 
{translate key="manager.payment.noPayments"}
 
{page_info iterator=$payments} {page_links anchor="payments" name="payments" iterator=$payments}
{include file="common/footer.tpl"}