bce9536128
* Update primary key to composite (order_item_id, order_id) in the wc_order_product_lookup table * Add full refunded order record to wc_order_product_lookup table * Delete order items in order product lookup when the order is full refund The previous commit will add the order item with negative net revenue when the order is fully refunded. But the items sold in the products analytics page is incorrect, because there was a DB record of an order item with positive net revenue, and the product analytics query simply sums up all the positive net revenue. * Revert "Update primary key to composite (order_item_id, order_id) in the wc_order_product_lookup table" This reverts commit |
||
---|---|---|
.. | ||
woo-ai | ||
woocommerce | ||
woocommerce-admin | ||
woocommerce-beta-tester | ||
woocommerce-blocks |