This repository has been archived by the owner on Feb 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make update shipment handler accept inventory units
In a1c78bb, we updated the shipment serializer to push inventory units, so if we are updating, we should use them as well in case there is a variant mismatch as there is with exchanges If a shipment happens to be created using the add_shipment_handler instead of pushed with the serializer, even though that builds inventory units from the line items matching the shipment items skus, we should still be ok because it should match the inventory units similarly to how it previously matched line items. Change update shipment handler to expect flattened inventory items, since that is what is generated in the serializer Make sure to cast quantity to an integer Handle multiple inventory units of the same sku and quantity in update shipment handler Fixes #39
- Loading branch information
Andrew Thal
authored and
Jeff Dutil
committed
Sep 16, 2014
1 parent
2431c56
commit 918f215
Showing
2 changed files
with
34 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters