dev/financial#77 ++ Make contribution_id mandatory for PaymentProcessor.pay, pass...
[civicrm-core.git] / CRM / Member / Tokens.php
index 44100317acadb61f41b6e539fb972c17dd64b56b..455ba74ffa72e4c0fc52dcd4d6a88f39b6dd28d8 100644 (file)
@@ -94,6 +94,9 @@ class CRM_Member_Tokens extends \Civi\Token\AbstractTokenSubscriber {
     if (in_array($field, ['start_date', 'end_date', 'join_date'])) {
       $row->tokens($entity, $field, \CRM_Utils_Date::customFormat($actionSearchResult->$field));
     }
+    elseif ($field == 'fee') {
+      $row->tokens($entity, $field, \CRM_Utils_Money::format($actionSearchResult->$field, NULL, NULL, TRUE));
+    }
     elseif (isset($actionSearchResult->$field)) {
       $row->tokens($entity, $field, $actionSearchResult->$field);
     }