@@ 955-973 (lines=19) @@ | ||
952 | : ''; |
|
953 | } |
|
954 | ||
955 | if (EE_Registry::instance()->CAP->current_user_can( |
|
956 | 'ee_edit_payments', |
|
957 | 'espresso_transactions_recalculate_line_items' |
|
958 | ) |
|
959 | ) { |
|
960 | $actions['recalculate_line_items'] = EEH_Template::get_button_or_link( |
|
961 | EE_Admin_Page::add_query_args_and_nonce( |
|
962 | array( |
|
963 | 'action' => 'espresso_recalculate_line_items', |
|
964 | 'TXN_ID' => $this->_transaction->ID(), |
|
965 | 'redirect_to' => 'view_transaction', |
|
966 | ), |
|
967 | TXN_ADMIN_URL |
|
968 | ), |
|
969 | esc_html__(' Recalculate Taxes and Total', 'event_espresso'), |
|
970 | 'button secondary-button', |
|
971 | 'dashicons dashicons-update' |
|
972 | ); |
|
973 | } |
|
974 | ||
975 | if ($primary_registration instanceof EE_Registration |
|
976 | && EEH_MSG_Template::is_mt_active('receipt') |
@@ 2038-2056 (lines=19) @@ | ||
2035 | array('EE_Registration' => $this->_registration) |
|
2036 | ); |
|
2037 | $attendee = $this->_registration->attendee(); |
|
2038 | if (EE_Registry::instance()->CAP->current_user_can( |
|
2039 | 'ee_read_transaction', |
|
2040 | 'espresso_transactions_view_transaction' |
|
2041 | )) { |
|
2042 | $this->_template_args['view_transaction_button'] = EEH_Template::get_button_or_link( |
|
2043 | EE_Admin_Page::add_query_args_and_nonce( |
|
2044 | array( |
|
2045 | 'action' => 'view_transaction', |
|
2046 | 'TXN_ID' => $transaction->ID(), |
|
2047 | ), |
|
2048 | TXN_ADMIN_URL |
|
2049 | ), |
|
2050 | esc_html__(' View Transaction', 'event_espresso'), |
|
2051 | 'button secondary-button right', |
|
2052 | 'dashicons dashicons-cart' |
|
2053 | ); |
|
2054 | } else { |
|
2055 | $this->_template_args['view_transaction_button'] = ''; |
|
2056 | } |
|
2057 | if ($attendee instanceof EE_Attendee |
|
2058 | && EE_Registry::instance()->CAP->current_user_can( |
|
2059 | 'ee_send_message', |