microsoft / Dynamics365Commerce.Solutions

Repository for hosting the Dynamics 365 Commerce end to end sample solutions
Other
54 stars 26 forks source link

FulfillmentLineCommand setSelectedFulfillmentLines Selects by itemid only #299

Open Vekto opened 2 months ago

Vekto commented 2 months ago

API Behavior Issue

Summary

Describe the issue We using the FulfillmentLineView's-> FulfillmentLineCommand->setSelectedFulfillmentLines method. Setting Fulfillment lines is not matching the exact fulfillment line. It instead selects all fulfillment lines with that ItemId. Our expected behavior is to only select the fulfillment lines passed in.

Version and Error Info Commerce SDK Component: 9.49.24124.3 Component Version: Exception/Error Details:

Extension Requirement Similar to the sample we're trying to implement scanning into this for. We do not aggregate most products, and use a lot of serialized product. Currently we are unable to select just one of many lines so we cannot allow a picker to scan in each picked item.

Reproducing the Issue

Can be reproduced using your own sample for this behavior. Just ensure you have the same item on multiple rows by either using a serialized product or turning off product aggregation in the fuctionality profile. https://github.com/microsoft/Dynamics365Commerce.InStore/blob/release/9.50/src/StoreCommerceSamples/PosExtensionSamples/Pos/Extend/ViewExtensions/FulfillmentLine/FulfillmentLineCommand.ts

Steps to reproduce the behavior:

  1. Create a customer order
  2. Add a customer
  3. Add the same item on multiple lines. (either serialized or with aggregation off)
  4. Add a full deposit
  5. Set to ship all products
  6. save the order
  7. Open the recall order screen
  8. Select Fulfillment
  9. Click the Scan and Select Product button
  10. Enter in the item

Screenshots

image

Additional context

Are you following a sample that showcases this API? Yes, the fulfillment line command sample.

We'd really appreciate a fix for this as we recently migrated to CPOS and our web fulfillment could really use the ability to scan in products for their web orders. but we require it to be count accurate.