-
Couldn't load subscription status.
- Fork 134
[Woo POS][Historical Orders] Add refund data to model and screen #14779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Woo POS][Historical Orders] Add refund data to model and screen #14779
Conversation
…d and net payment display
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
| private val refundStore: WCRefundStore, | ||
| private val selectedSite: SelectedSite | ||
| ) { | ||
| suspend operator fun invoke(orderId: Long): List<Refund> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider to add tests to this one if necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @kidinov! LGTM 🚢 ![]()
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## trunk #14779 +/- ##
============================================
- Coverage 38.04% 38.03% -0.02%
- Complexity 9994 10000 +6
============================================
Files 2120 2121 +1
Lines 119437 119505 +68
Branches 16249 16259 +10
============================================
+ Hits 45445 45451 +6
- Misses 69406 69468 +62
Partials 4586 4586 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
WOOMOB-1533
Description
Adds refund information to the historical orders details screen in Woo POS. The order details now display individual refund line items and calculate net payment (total paid minus refunds).
Changes:
WooPosGetOrderRefundsByOrderIdutility to fetch refund data for ordersOrderDetailsViewState.TotalsBreakdownto include refunds list and net paymentWooPosOrdersViewModelto fetch and format refund amountsWooPosOrderDetailsUI to display refunds and net payment sectionsNote: The UI layout is not final and will be refined in subsequent iterations.
Steps to reproduce
Testing information
Images/gif
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.