selectline-software / selectline-api

Apache License 2.0
24 stars 5 forks source link

POST /Documents/{documentKey}/Successors does not transfer every position #387

Closed ccfrusano closed 2 weeks ago

ccfrusano commented 1 month ago

Details

Steps to replicate the behavior:

We have this positions in an order document: image

As soon as we transfer, this is the outcome: image

So, the last item does not get transferred to packing, and the position is still of course open.

This is our json request: { "DocumentKindDestination": "P", "Positions": [{ "ArticleNumber": "4260137741788", "Identifier": "643dee36-9dab-42bb-9617-354a8646183e", "Quantity": 200.00, "QuantityUnit": "Stück" }, { "ArticleNumber": "V070301", "Identifier": "f4b49489-e9c7-4e41-9f87-63cb022aa932", "Quantity": 1.00, "QuantityUnit": "Stück" }, { "ArticleNumber": "D010193", "Identifier": "ef4c13e8-2a95-4c0d-b68f-1ba244f5f08c", "Quantity": 1.00, "QuantityUnit": "1/2 EWP" } ] }

Is it because V070301 does not have stock? Thanks! Best,

MatthiasGuse commented 3 weeks ago

Hello, the combination of "ShippingItemPosition" and "AccessoryArticleItem" is not supported by the desktop program. The problem is that it is possible to create this combination via the API. Please use only combinations, which ar possible in the desktop program.

Regards

ccfrusano commented 2 weeks ago

Hello Matthias, Thanks for your response, it was very useful, and we were able to fix it! Best regards, Carlos