6f2d64dcb4
When we refund fee and some other line item whose value is more than fee in a single requst, value of line item will overwrite refund fee. This is because where we check to make sure that we do not discount more than total possible value (to prevent negative total), we do not account for the fact that sometimes the cart could contain refund items. In those cases max_discount * -1 will always be larges then fees total. This commit adds a check to make sure that max discount * -1 is indeed negative before overwriting fee total. |
||
---|---|---|
.. | ||
class-wc-tests-crud-orders.php | ||
class-wc-tests-order-functions.php | ||
coupons.php | ||
query.php |