What's your biggest current challenge? Have your say in Community Polls along the right column.

Unable to set quantity when creating a scheduled change

Unable to set quantity when creating a scheduled change

joefitter
Shopify Partner
3 0 0

Using the graphQL api I can add a "scheduled change" to an inventory level using the inventorySetScheduledChanges mutation, however there is no quantity field in the input, and quantity is therefore always 0.  Further to this, only one scheduled change can be added from "incoming" to "available", else an error is returned: "The item can only have one scheduled change for incoming as the fromName."

 

When I add a purchase order through the admin UI this adds a scheduled change with the quantity for every inventory item correctly pulled from the line items as expected.  Adding another purchase order with the same inventory items adds another scheduled change from incoming -> available so multiple incoming quantities and dates can be seen in the db.

 

Due to the missing quantity input, and the inability to stack incoming changes, I fail to see any use at all for scheduled changes added using inventorySetScheduledChanges - I assume this is an oversight?

Please let me know if this is likely to be fixed as this functionality is core to my app, and I don't want to reinvent the wheel.

 

Many thanks!

 

Joe

Replies 0 (0)