Question

Photo of Bronson Nichols

0

Contribution Report

How do I add the transaction code and the comments from a financial transaction to the contribution report? I have the below code. What value should be after "tranactionDetail."? I thought maybe it would be tranactionDetail.Comments, but that doesn't work. I don't know what the field name is

<table class="table table-bordered table-striped table-condensed">

    <thead>
        <tr>
            <th>Date</th>
            <th>Type</th>
            <th>Comments</th>
            <th>Account</th>
            <th style="text-align:right">Amount</th>
        </tr>
    </thead>    
    <tbody>
    {% for transactionDetail in TransactionDetails %}
        <tr>
            <td>{{ transactionDetail.Transaction.TransactionDateTime | Date:'M/d/yyyy' }}</td>
            <td>{{ transactionDetail.Transaction.FinancialPaymentDetail.CurrencyTypeValue.Value }}</td>
            <td>{{ transactionDetail.}}</td>
            <td>{{ transactionDetail.Account.Name }}</td>
            <td style="text-align:right">{{ currencySymbol }}{{ transactionDetail.Amount }}</td>
        </tr>
    {% endfor %}
    </tbody>
 
  • Photo of Ben Murphy

    1

    Hi Bronson!

    You'd need it to be {{ transactionDetail.Transaction.TransactionCode }}

    You may also want to include the transaction Comments or Memo field which would be {{ transactionDetail.Transaction.Summary }}

    You can figure out what Properties to pull by reviewing the Model Map for FinancialTransaction here or in your Rock Instance under the Power Tools: https://community.rockrms.com/ModelMap

    Note: You can get immediate "live" help from the Rock community by going to the chat at https://community.rockrms.com/chat

    Also, I presented on all things Contribution Statements at the RX 2023 conference and you can review my slides or videos here: https://simpledonation.com/resources/rx2023-takeaway