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()
|
public void SetCompletedStatus()
|
||||||
{
|
{
|
||||||
// make sure it is shipped and paid before completing
|
// make sure it is shipped before completing
|
||||||
if (_orderStatusId == OrderStatus.Paid.Id ||
|
if (_orderStatusId == OrderStatus.Shipped.Id)
|
||||||
_orderStatusId == OrderStatus.Shipped.Id)
|
|
||||||
{
|
{
|
||||||
StatusChangeException(OrderStatus.Completed);
|
StatusChangeException(OrderStatus.Completed);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user