spree_active_shipping
spree_active_shipping copied to clipboard
Additional Shipment on Shipped Order Miscalculation
- User completes order
- Order is shipped
- User wants to add an additional item to the order which needs to be shipped in a separate package
- New shipment is added via the admin order shipments area
- Shipping cost is calculated based off of
line_items
and not the unshipped inventory items
Possible solution:
- In
packages
check if the order is complete - If the order is not complete, use
line_items
to calculate shipping - Check if the order's shipment is shipped
- If the order is shipped, calculate the shipping cost based on the inventory units that are not shipped
Of course store preferences for inventory tracking will have to be taken into account.