If user partially received an order and then cancel order item, system cancel all the order item quantity.System does not check for shipped/received order item quantity.
Expected behavior: Only remaining order item quantity should be cancelled and order item should marked as complete with partial received/shipped quantity.
Steps to regenerate:
- Crate an SO/PO .
- Partially ship/received order item quantity.
- Edit order and cancel the order item.
- System should cancel the remaining quantity not ordered quantity and should mark order item as Complete because partial order item quantity has been shipped/received.
But as per the current behavior system cancel the ordered quantity and ignore the shipped/received order item quantity and marked order item as cancelled.