{*
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2018 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{include file="CRM/common/enableDisableApi.tpl"}
{if $action eq 4} {* when action is view *}
{if $recur}
{if $recur.is_test}
{ts}This is a TEST transaction{/ts}
{/if}
{ts}View Recurring Payment{/ts}
{ts}Amount{/ts} | {$recur.amount|crmMoney:$recur.currency}{if $is_test} ({ts}test{/ts}){/if} |
{ts}Frequency{/ts} | every {$recur.frequency_interval} {$recur.frequency_unit} |
{ts}Installments{/ts} | {$recur.installments} |
{ts}Status{/ts} | {$recur.contribution_status} |
{ts}Start Date{/ts} | {$recur.start_date|crmDate} |
{ts}Created Date{/ts} | {$recur.create_date|crmDate} |
{if $recur.modified_date}{ts}Modified Date{/ts} | {$recur.modified_date|crmDate} |
{/if}
{if $recur.cancel_date}{ts}Cancelled Date{/ts} | {$recur.cancel_date|crmDate} |
{/if}
{if $recur.end_date}{ts}End Date{/ts} | {$recur.end_date|crmDate} |
{/if}
{if $recur.processor_id}{ts}Processor ID{/ts} | {$recur.processor_id} |
{/if}
{ts}Transaction ID{/ts} | {$recur.trxn_id} |
{if $recur.invoice_id}{ts}Invoice ID{/ts} | {$recur.invoice_id} |
{/if}
{ts}Cycle Day{/ts} | {$recur.cycle_day} |
{if $recur.contribution_status_id neq 3}{ts}Next Contribution{/ts} | {$recur.next_sched_contribution_date|crmDate} |
{/if}
{ts}Failure Count{/ts} | {$recur.failure_count} |
{if $recur.invoice_id}{ts}Failure Retry Date{/ts} | {$recur.next_sched_contribution_date|crmDate} |
{/if}
{ts}Auto Renew?{/ts} | {if $recur.auto_renew}{ts}Yes{/ts}{else}{ts}No{/ts}{/if} |
{if $recur.payment_processor}{ts}Payment Processor{/ts} | {$recur.payment_processor} |
{/if}
{if $recur.financial_type}{ts}Financial Type{/ts} | {$recur.financial_type} |
{/if}
{if $recur.campaign}{ts}Campaign{/ts} | {$recur.campaign} |
{/if}
{if $recur.membership_id}
{ts}Membership{/ts} |
{$recur.membership_name} |
{/if}
{include file="CRM/Custom/Page/CustomDataView.tpl"}
{/if}
{/if}
{if $recurRows}
{strip}
{ts}Amount{/ts} |
{ts}Frequency{/ts} |
{ts}Start Date{/ts} |
{ts}Installments{/ts} |
{ts}Status{/ts} |
|
{foreach from=$recurRows item=row}
{assign var=id value=$row.id}
{$row.amount|crmMoney:$row.currency}{if $row.is_test} ({ts}test{/ts}){/if} |
{ts}Every{/ts} {$row.frequency_interval} {$row.frequency_unit} |
{$row.start_date|crmDate} |
{$row.installments} |
{$row.contribution_status} |
{$row.action|replace:'xx':$row.recurId} |
{/foreach}
{/strip}
{/if}