Advertisement
DataCCIW

_org_CollegeChurch_ScheduledTransactionListLiquid

Sep 29th, 2022
1,307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="scheduledtransaction-summary" style="margin-bottom:10px">
  2.  
  3.   {%- financialscheduledtransaction id:'{{ScheduledTransaction.Id}}' securityenabled:'false' -%}
  4.     {%- assign transactions = financialscheduledtransaction.Transactions | OrderBy: 'CreatedDateTime desc' -%}
  5.     {%- for trans in transactions limit:1 -%}
  6.       {%- assign status = trans.Status -%}
  7.       {%- if status == "DECLINED" or status == "UNKNOWN" or status == "REVERSED" or status == "LATE_RETURN" or status == "RETURNED" -%}
  8.         <div class="alert alert-danger">
  9.         <strong>Schedule Failing: </strong><span class="js-notification-text">The recent transaction for the schedule below failed. Please edit the schedule and update the payment method. This notification will continue to appear until the next successful payment.
  10.         </div>
  11.       {%- endif -%}
  12.     {%- endfor -%}
  13.   {%- endfinancialscheduledtransaction -%}
  14.  
  15.   <strong>{{ ScheduledTransaction.PersonName }}</strong><br>
  16.   {{ ScheduledTransaction.ScheduledAmount | FormatAsCurrency }} on&nbsp;
  17.   {%- if ScheduledTransaction.CurrencyType != "Credit Card" -%}
  18.     {{ ScheduledTransaction.CurrencyType }}
  19.   {%- else -%}
  20.     {{ ScheduledTransaction.CreditCardType }} {{ ScheduledTransaction.AccountNumberMasked }}{%- if ScheduledTransaction.CardExpirationDate and ScheduledTransaction.CardExpirationDate != empty -%} Expires: {{ ScheduledTransaction.CardExpirationDate }} {%- endif -%}
  21.     {%- if ScheduledTransaction.CardIsExpired -%}
  22.     <span class='label label-warning'>Card Expired</span>
  23.     {%- elseif ScheduledTransaction.Status and ScheduledTransaction.Status != 'Active' -%}
  24.     <span class='label label-warning'>{{ ScheduledTransaction.Status }}</span>
  25.     {%- endif -%}
  26.   {%- endif -%}<br>
  27.  
  28.   {{ ScheduledTransaction.FrequencyDescription | downcase }}.
  29.  
  30.   {%- if ScheduledTransaction.NextPaymentDate != null -%}
  31.     &nbsp;Next gift will be on {{ ScheduledTransaction.NextPaymentDate | Date:"MMMM d, yyyy" }}.
  32.   {%- endif -%}
  33.  
  34.   {%- if ScheduledTransaction.EditPage == null -%}
  35.     <p>Please contact us to if you need to change this scheduled transaction.</p>
  36.   {%- endif -%}
  37. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement