The refund displays the minus amount if tax is enabled

Hi there,

I created a refund and it shows Tax as Total:

This is similar to this issue, but I do not use Dotstore plugin:
https://community.hivepress.io/t/refunded-order-shows-total-label-instead-of-tax/12352

Kind regards,

Jovica

Hi,

Can you please clarify the amount of -$13.04? Does this mean taxes are set up with this document? Or does it mean that a full refund is shown minus on the total sheet in the form of tax, which is set up under this document How to enable taxes - HivePress Help Center?

Hi Andrii,

This is the summary of woocommerce order that was refunded:

I hope this helps.

Kind regards,

Jovica

Hi,

Please send temporary WP access to support@hivepress.io with details for reproducing this issue, and we’ll check it (please send only the link, without login and password). You can create a temporary access link using this plugin Temporary Login Without Password – WordPress plugin | WordPress.org.

Thanks, we’ll fix this in the next update. The issue is with line 2282 in hivepress-marketplace/includes/components/class-marketplace.php file:

$rows['order_total']['value'] = wc_price( $order->get_total() - $order->get_total_tax() - $order->get_total_refunded() );

It should be changed to:

$rows['order_total']['value'] = wc_price( $order->get_total() - $order->get_total_refunded() );

This affected the order table display only and shouldn’t affect the actual calculation of the vendor earnings.