Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST /rest/V1/shipment does not change OrderItems qtyShipped #3799

Closed
ddeppner opened this issue Mar 16, 2016 · 2 comments
Closed

POST /rest/V1/shipment does not change OrderItems qtyShipped #3799

ddeppner opened this issue Mar 16, 2016 · 2 comments
Assignees

Comments

@ddeppner
Copy link

Steps to reproduce

  1. Create a new shipment in the Admin screens and add items from a previously placed order to it.
  2. POST to /rest/V1/shipment to create a new shipment with the items from a different order that has previously been placed.
  3. select item_id,qty_shipped from sales_order_item;

Expected result

  1. sales_order_items qty_shipped field should show 0 for all items affected by either Can you commit to repository a folder dev/tests/static ? #1 or BUG FIX - Uncaught exception when accessing admin with none existent use... #2 above.

Actual result

  1. qty_shipped is 0 for shipments created in the Admin panel.
  2. qty_shipped is NOT 0 for shipments created via the API

If there was an API call to allow me to manually change the qtyShipped via /V1/orders/items/{id} then I could solve this, but there are only GET options for salesOrderItemRepositoryV1.

@ddeppner
Copy link
Author

Because the qty_shipped is not updated when creating a shipment via API, the "Ship" command is still available in the Admin screens, and a user can create another shipment with the same items in it, creating future problems.

@NadiyaS
Copy link
Contributor

NadiyaS commented Mar 18, 2016

Hi @ddeppner,
thanks for reporting this issue. It is already being tracked by MAGETWO-50295 ticket.
This issue will be closed as duplicate of #3307.

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

No branches or pull requests

4 participants