woocommerce-android icon indicating copy to clipboard operation
woocommerce-android copied to clipboard

[Shipping labels] Fix inconsistent currency in shipping labels flow

Open irfano opened this issue 5 months ago • 3 comments

Closes WOOMOB-609

Description

This makes following chages:

  • Removes the ShipmentUIModel parameter from WooShippingLabelRefundFragment arguments. The fragment is now initialized with only labelId and orderId.
  • Uses the currency from shipping label data on the refund screen. This value comesshippingLabelData parameter in the config endpoint 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

  1. Open the Orders screen.
  2. Select an order that includes a purchased shipment.
  3. Tap the "Request refund" button.
  4. Tap the "Refund label" button.
  5. Confirm that the amount is displayed using the currency from the label purchase.
  6. Navigate back.
  7. Fill in the address, package, and other necessary fields to display shipping rates.
  8. 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.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

irfano avatar Jun 13 '25 22:06 irfano

📲 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
FlavorJalapeno
Build TypeDebug
Commit78e17bb753c48214d407fb23dc61aaaf8003d4e6
Direct Downloadwoocommerce-wear-prototype-build-pr14198-78e17bb.apk

wpmobilebot avatar Jun 13 '25 22:06 wpmobilebot

📲 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
FlavorJalapeno
Build TypeDebug
Commit78e17bb753c48214d407fb23dc61aaaf8003d4e6
Direct Downloadwoocommerce-prototype-build-pr14198-78e17bb.apk

wpmobilebot avatar Jun 13 '25 22:06 wpmobilebot