woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
298 stars 110 forks source link

[Woo POS] Ensure draft orders are removed from Order storage on leaving POS #13877

Open joshheald opened 1 week ago

joshheald commented 1 week ago

Description

In POS, we show a message saying in-progress orders will be lost when exiting.

This should actually happen, however we do it using the auto-draft feature.

In some cases, draft orders remain in the local device storage after leaving POS, and aren't cleared from the Order List until we pull to refresh.

We could fix this by refreshing order storage on leaving POS, or by just deleting any draft orders from storage, or by ensuring they never get stored in the first place, if possible.

p91TBi-c11-p2#comment-13041

dangermattic commented 1 week ago

Thanks for reporting! 👍