Issue #1623 fixed
This commit is contained in:
parent
fe688852c5
commit
95d427d42c
|
|
@ -234,7 +234,7 @@ class OrderRepository extends Repository
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($totalQtyOrdered != ($totalQtyRefunded + $totalQtyCanceled)
|
if ($totalQtyOrdered != ($totalQtyRefunded + $totalQtyCanceled)
|
||||||
&& $totalQtyOrdered == $totalQtyInvoiced + $totalQtyRefunded + $totalQtyCanceled
|
&& $totalQtyOrdered == $totalQtyInvoiced + $totalQtyCanceled
|
||||||
&& $totalQtyOrdered == $totalQtyShipped + $totalQtyRefunded + $totalQtyCanceled)
|
&& $totalQtyOrdered == $totalQtyShipped + $totalQtyRefunded + $totalQtyCanceled)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
@ -254,7 +254,7 @@ class OrderRepository extends Repository
|
||||||
$totalQtyCanceled += $item->qty_canceled;
|
$totalQtyCanceled += $item->qty_canceled;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $totalQtyOrdered == $totalQtyCanceled;
|
return $totalQtyOrdered === $totalQtyCanceled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -271,7 +271,7 @@ class OrderRepository extends Repository
|
||||||
$totalQtyCanceled += $item->qty_canceled;
|
$totalQtyCanceled += $item->qty_canceled;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $totalQtyOrdered == $totalQtyRefunded + $totalQtyCanceled;
|
return $totalQtyOrdered === $totalQtyRefunded + $totalQtyCanceled;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue