Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upShipping Calculators still calculate for cancelled items #1837
Comments
mamhoff
added
the
Bug
label
Apr 22, 2017
This comment has been minimized.
This comment has been minimized.
This is still present in Solidus 2.7. |
This comment has been minimized.
This comment has been minimized.
@ericsaupe should be closed with #3059, can you please check? |
This comment has been minimized.
This comment has been minimized.
It still seems to be a little bit off. Maybe it's just the taxes? Anyway so the setup here is Shipping Rate Calculator - Flexible Rate by item with first item $1.5 and addition items $1
This was done against the current Correct me if I'm misunderstanding it all here but I think it should adjust the cost of shipping by the canceled item change, adjust the line item by the cost of the item, and maybe additional adjustments to remove taxes? Just thinking about it from an accounting standpoint where adjustments were created to charge money from a customer and then negative adjustments were created to restore money to the customer against what they paid for. |
This comment has been minimized.
This comment has been minimized.
@kennyadsl, #3059 isn't related to this issue, since it doesn't mess with shipment adjustments. I worked recently on |
This comment has been minimized.
This comment has been minimized.
@ericsaupe, by my checks, cancelling items doesn't take in consideration shipment costs using any shipment method: does it match with your observations? |
ericsaupe commentedApr 10, 2017
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