Steps to reproduce
- Complete order with many items and flexirate shipping calculator
- Cancel items in shipment
- Adjustment created does not take into account shipping cost
- Cost on shipping was not changed even though less items will be shipped
Expected behavior
After an item is cancelled the calculator should only calculate cost based on what is actually going to ship.
Actual behavior
Shipping calculators are calculating cost on all items even if they are cancelled:
System configuration
Solidus Version: 2.1 (seems to be in all)
Extensions in use: core, frontend, backend
Steps to reproduce
Expected behavior
After an item is cancelled the calculator should only calculate cost based on what is actually going to ship.
Actual behavior
Shipping calculators are calculating cost on all items even if they are cancelled:
solidus/core/app/models/spree/calculator/shipping/per_item.rb
Line 14 in 054e4bd
System configuration
Solidus Version: 2.1 (seems to be in all)
Extensions in use: core, frontend, backend