[-] BO : Fix bug #PSCFV-9264 bad cancel qty when refund / return

This commit is contained in:
gRoussac
2013-06-20 18:21:55 +02:00
parent 5563c53133
commit 21d04cb423
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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())