SetCompletedStatus method logical mistake is reverted.
This commit is contained in:
parent
0cc909b660
commit
51c9e0dce6
@ -158,9 +158,8 @@ public class Order
|
||||
|
||||
public void SetCompletedStatus()
|
||||
{
|
||||
// make sure it is shipped and paid before completing
|
||||
if (_orderStatusId == OrderStatus.Paid.Id ||
|
||||
_orderStatusId == OrderStatus.Shipped.Id)
|
||||
// make sure it is shipped before completing
|
||||
if (_orderStatusId == OrderStatus.Shipped.Id)
|
||||
{
|
||||
StatusChangeException(OrderStatus.Completed);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user