You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The applyOrderPromotions() method removes all adjustments on the different OrderItems prior to calculating new adjustments. If there were adjustments on the OrderItems before, but the new calculation does not generate any adjustments, the updatedItems array remains empty and no OrderItems are returned. As a consequence, the adjustments are not actually cleared from the Order.
Describe the bug
The
applyOrderPromotions()
method removes all adjustments on the different OrderItems prior to calculating new adjustments. If there were adjustments on the OrderItems before, but the new calculation does not generate any adjustments, theupdatedItems
array remains empty and no OrderItems are returned. As a consequence, the adjustments are not actually cleared from the Order.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The discount should no longer be applied.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: