Automattic / Automattic/woocommerce-services

Refunded labels not shown in WooCommerce > Reports > Shipping Labels

Open
#1,863 0 comments 0 reactions 0 assignees View on GitHub
[Pri] Low [Type] Bug woocommerce-services
Dominant language
JavaScript
Stars
112
Forks
35
Avg merge
3d 1h
Merged PRs (30d)
14

Description

***Tickets affected***
2603361-zen

Customer stated:

> The refund column I am speaking of is the last column in Reports > Shipping Labels. Why doesn't that retain records of the refunds? They just disappear after a certain time.

In looking at [this bit of code](https://github.com/Automattic/woocommerce-services/blob/1.22.2/classes/class-wc-connect-label-reports.php#L91-L97), it appears that completed refunds are not included in the reports. Not sure why this is.

Unsure of replication steps due to I do not know how to get a refund to show in the report without actually purchasing a label then refunding it.

Contributor guide

Open the contributing guide

Research direction

Start in classes/class-wc-connect-label-reports.php, especially lines 91-97, to inspect how completed refunds are handled in shipping-label reports. Reproduce the case by purchasing and refunding a label, then verify that the refunded label remains in the Reports > Shipping Labels refund column.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.