2014-07-16 20:12:33 +00:00
|
|
|
<?php
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
|
|
exit; // Exit if accessed directly
|
|
|
|
}
|
2014-09-20 20:05:06 +00:00
|
|
|
|
2015-02-03 14:02:38 +00:00
|
|
|
/**
|
|
|
|
* @var object $refund The refund object.
|
|
|
|
*/
|
2014-08-03 00:57:14 +00:00
|
|
|
$who_refunded = new WP_User( $refund->post->post_author );
|
2014-07-16 20:12:33 +00:00
|
|
|
?>
|
|
|
|
<tr class="refund <?php echo ( ! empty( $class ) ) ? $class : ''; ?>" data-order_refund_id="<?php echo $refund->id; ?>">
|
2014-07-22 13:38:07 +00:00
|
|
|
<td class="check-column"></td>
|
2014-07-16 20:12:33 +00:00
|
|
|
|
2014-07-22 13:27:47 +00:00
|
|
|
<td class="thumb"><div></div></td>
|
2014-07-16 20:12:33 +00:00
|
|
|
|
|
|
|
<td class="name">
|
2014-08-03 00:57:14 +00:00
|
|
|
<?php
|
2014-11-14 12:52:40 +00:00
|
|
|
echo esc_attr__( 'Refund', 'woocommerce' ) . ' #' . absint( $refund->id ) . ' - ' . esc_attr( date_i18n( get_option( 'date_format' ) . ', ' . get_option( 'time_format' ), strtotime( $refund->post->post_date ) ) );
|
2014-10-09 15:43:21 +00:00
|
|
|
|
|
|
|
if ( $who_refunded->exists() ) {
|
2014-08-15 19:08:43 +00:00
|
|
|
echo ' ' . esc_attr_x( 'by', 'Ex: Refund - $date >by< $username', 'woocommerce' ) . ' ' . '<abbr class="refund_by" title="' . esc_attr__( 'ID: ', 'woocommerce' ) . absint( $who_refunded->ID ) . '">' . esc_attr( $who_refunded->display_name ) . '</abbr>' ;
|
2014-08-03 00:57:14 +00:00
|
|
|
}
|
|
|
|
?>
|
2014-07-28 10:41:47 +00:00
|
|
|
<?php if ( $refund->get_refund_reason() ) : ?>
|
|
|
|
<p class="description"><?php echo esc_html( $refund->get_refund_reason() ); ?></p>
|
|
|
|
<?php endif; ?>
|
2014-07-16 20:12:33 +00:00
|
|
|
<input type="hidden" class="order_refund_id" name="order_refund_id[]" value="<?php echo esc_attr( $refund->id ); ?>" />
|
|
|
|
</td>
|
|
|
|
|
2014-10-02 12:40:30 +00:00
|
|
|
<?php do_action( 'woocommerce_admin_order_item_values', null, $refund, absint( $refund->id ) ); ?>
|
|
|
|
|
2014-11-11 13:40:44 +00:00
|
|
|
<td class="item_cost" width="1%"> </td>
|
2014-07-28 10:45:16 +00:00
|
|
|
<td class="quantity" width="1%"> </td>
|
2014-07-16 20:12:33 +00:00
|
|
|
|
|
|
|
<td class="line_cost" width="1%">
|
|
|
|
<div class="view">
|
|
|
|
<?php echo wc_price( '-' . $refund->get_refund_amount() ); ?>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
|
2014-11-18 16:45:29 +00:00
|
|
|
<?php if ( ( ! isset( $legacy_order ) || ! $legacy_order ) && wc_tax_enabled() ) : for ( $i = 0; $i < count( $order_taxes ); $i++ ) : ?>
|
2014-07-16 20:12:33 +00:00
|
|
|
|
2014-07-20 03:21:33 +00:00
|
|
|
<td class="line_tax" width="1%"></td>
|
2014-07-16 20:12:33 +00:00
|
|
|
|
2014-07-20 03:21:33 +00:00
|
|
|
<?php endfor; endif; ?>
|
2014-07-16 20:12:33 +00:00
|
|
|
|
|
|
|
<td class="wc-order-edit-line-item">
|
|
|
|
<div class="wc-order-edit-line-item-actions">
|
|
|
|
<a class="delete_refund" href="#"></a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|