microsoft / microsoft/Dynamics365Commerce.Solutions
FulfillmentLineCommand setSelectedFulfillmentLines Selects by itemid only
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 80
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
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:
- Create a customer order
- Add a customer
- Add the same item on multiple lines. (either serialized or with aggregation off)
- Add a full deposit
- Set to ship all products
- save the order
- Open the recall order screen
- Select Fulfillment
- Click the Scan and Select Product button
- Enter in the item
Screenshots
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the FulfillmentLineCommand.setSelectedFulfillmentLines implementation and the linked FulfillmentLineCommand.ts sample. Reproduce the issue with repeated item lines, serialized products, or aggregation disabled, then trace how the selected fulfillment lines are matched. Done means only the fulfillment lines passed to the method are selected; verify this through the Scan and Select Product flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100