Skip to content

Conversation

@Fabtron
Copy link
Collaborator

@Fabtron Fabtron commented Dec 23, 2024

What's new?

If a deposit return voucher is invalid we need to handle it. Since we can't define that we received an invalid drv and only do a match up via the id from the error the message is adjusted to match that of a product.

We dialog is integrated in several places. E.g. in the selfscanning view to ensure that it will be removed directly by the user after it was added and in the checkoutbar to ensure that a checkout can't be started if a invalid product is part of the cart (this was the previous way).

APPS-2039

How to test?

Integrate this branch into an application and scan the barcode mentioned in the ticket.

Definition of Done

  • Issue is linked
  • All requirements of the issue are fulfilled
  • Changelog is updated
  • Documentation is updated
  • Self-Review
  • Review with the Product Owner (Release-Variante o. Minified Build)

App Tests

  • Minified build has been tested (aka. Release Build)
  • Environments have been taken care of (Production/Staging)
  • Supported languages have been tested
  • Light-/Dark-Mode has been tested
  • Edge-Cases have been tested
  • Android API Levels have been taken care of (minSdk?)

Testing

  • Tests have been written (aka Unit-Tests, Integration-Tests, ...)

…ve for to return the id's of the invalid items to resolve cart items that are not part of products
…into apps-1642-add-scanner-support-for-invalid-drv-and-other-items

# Conflicts:
#	core/src/main/java/io/snabble/sdk/checkout/CheckoutApi.kt
#	core/src/main/java/io/snabble/sdk/checkout/DefaultCheckoutApi.kt
#	core/src/main/java/io/snabble/sdk/codes/ScannedCode.kt
#	core/src/main/java/io/snabble/sdk/codes/templates/depositReturnVoucher/DepositReturnVoucherProvider.kt
#	core/src/main/java/io/snabble/sdk/shoppingcart/ShoppingCart.kt
#	core/src/main/java/io/snabble/sdk/shoppingcart/ShoppingCartUpdater.kt
#	ui/src/main/java/io/snabble/sdk/ui/scanner/SelfScanningExtensions.kt
#	ui/src/main/java/io/snabble/sdk/ui/scanner/SelfScanningView.java
@Fabtron Fabtron changed the title Apps 1642 add scanner support for invalid drv and other items Handle invalid drv and other items (Apps-2039) Dec 23, 2024
@Fabtron Fabtron marked this pull request as ready for review December 30, 2024 09:41
@Fabtron Fabtron requested a review from cmaier December 30, 2024 09:41
@Fabtron Fabtron requested a review from cmaier January 7, 2025 06:57
@Fabtron Fabtron merged commit f922819 into feature-deposit-return-voucher Jan 7, 2025
1 check passed
@Fabtron Fabtron deleted the apps-1642-add-scanner-support-for-invalid-drv-and-other-items branch January 7, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants