woocommerce-android
woocommerce-android copied to clipboard
[Shipping labels] Fix inconsistent currency in shipping labels flow
Closes WOOMOB-609
Description
This makes following chages:
- Removes the
ShipmentUIModelparameter fromWooShippingLabelRefundFragmentarguments. The fragment is now initialized with onlylabelIdandorderId. - Uses the currency from shipping label data on the refund screen. This value comes
shippingLabelDataparameter in theconfigendpoint response. Before, the screen incorrectly used the order’s currency. - Displays shipping rates using the currency defined in store options. Before, the rates were shown using the order’s currency, which was incorrect.
Steps to reproduce
- Open the Orders screen.
- Select an order that includes a purchased shipment.
- Tap the "Request refund" button.
- Tap the "Refund label" button.
- Confirm that the amount is displayed using the currency from the label purchase.
- Navigate back.
- Fill in the address, package, and other necessary fields to display shipping rates.
- Confirm that the shipping rates are listed using the store’s currency.
The tests that have been performed
Steps above
Images/gif
- [x] I have considered if this change warrants release notes and have added them to
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
| App Name | WooCommerce-Wear Android | |
| Platform | ⌚️ Wear OS | |
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Commit | 78e17bb753c48214d407fb23dc61aaaf8003d4e6 | |
| Direct Download | woocommerce-wear-prototype-build-pr14198-78e17bb.apk |
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
| App Name | WooCommerce Android | |
| Platform | 📱 Mobile | |
| Flavor | Jalapeno | |
| Build Type | Debug | |
| Commit | 78e17bb753c48214d407fb23dc61aaaf8003d4e6 | |
| Direct Download | woocommerce-prototype-build-pr14198-78e17bb.apk |