[-] BO : Fix bug #PSCFV-9264 bad cancel qty when refund / return
This commit is contained in:
@@ -290,7 +290,7 @@ class OrderCore extends ObjectModel
|
||||
/* Does NOT delete a product but "cancel" it (which means return/refund/delete it depending of the case) */
|
||||
public function deleteProduct($order, $orderDetail, $quantity)
|
||||
{
|
||||
if (!(int)($this->getCurrentState()))
|
||||
if (!(int)($this->getCurrentState()) || !validate::isLoadedObject($orderDetail))
|
||||
return false;
|
||||
|
||||
if ($this->hasBeenDelivered())
|
||||
|
||||
Reference in New Issue
Block a user