Advertisement
DataCCIW

Failing Gift Info on Internal Schedule Gifts Page

Dec 28th, 2022
1,392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {% financialscheduledtransaction where:'Guid == "{{PageParameter.ScheduledTransactionGuid}}"' securityenabled:'false'%}
  2.  
  3. {% if financialscheduledtransaction.Status == "Failed" %} <div id="scheduleFailing" class="alert alert-danger alert-message">
  4.     <div class="d-flex align-items-center"> <i class="fa fa-exclamation-triangle fa-2x mr-2"></i>
  5.         <div>
  6.             <div class="alert-message-heading mb-0"><strong>Schedule Failing</strong> </div>
  7.             {% assign hasDeclinedTrans = false %}
  8.            
  9.               {% assign transactions = financialscheduledtransaction.Transactions | OrderBy: 'CreatedDateTime desc' %}
  10.               {% assign schedulePaymentCreatedAt = financialscheduledtransaction.FinancialPaymentDetail.CreatedDateTime %}
  11.               {{scheduleModifiedDateTime}}
  12.               {% for trans in transactions limit:1 %}
  13.                 {% assign status = trans.Status %}
  14.                 {% if status == "DECLINED" or status == "UNKNOWN" or status == "REVERSED" or status == "LATE_RETURN" or status ==
  15.               "RETURNED" %}
  16.                   {% assign hasDeclinedTrans = true %}
  17.                   <p style="text-transform: none; font-size: 12px"> {{ trans.Status }} <strong>ยท</strong> {{trans.StatusMessage}} </p>
  18.                 {% endif %}
  19.               {% endfor %}
  20.          
  21.         </div>
  22.     </div>
  23.     <p class="js-notification-text; {% if hasDeclinedTrans == false %} mt-3 {% endif %}" style="text-transform: none;">
  24.       The most recent transaction for the schedule below has failed. The users will need to edit the schedule and update the payment method.</p>
  25. </div>
  26. {% endif %}
  27. {% endfinancialscheduledtransaction %}
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement