Merge pull request #23998 from yash-webkul/patch-1

Update class-wc-ajax.php
This commit is contained in:
Gerhard Potgieter 2019-07-04 09:17:03 +02:00 committed by GitHub
commit 54cab8086c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -1814,7 +1814,6 @@ class WC_AJAX {
try {
$order = wc_get_order( $order_id );
$order_items = $order->get_items();
$max_refund = wc_format_decimal( $order->get_total() - $order->get_total_refunded(), wc_get_price_decimals() );
if ( ! $refund_amount || $max_refund < $refund_amount || 0 > $refund_amount ) {