-
Notifications
You must be signed in to change notification settings - Fork 133
[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
base: trunk
Are you sure you want to change the base?
[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.
Great work @kidinov! LGTM 🚢
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:
WooPosGetOrderRefundsByOrderId
utility to fetch refund data for ordersOrderDetailsViewState.TotalsBreakdown
to include refunds list and net paymentWooPosOrdersViewModel
to fetch and format refund amountsWooPosOrderDetails
UI 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.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.