// stock : bugs fix and update of supplier order add product interface

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9967 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dSevere committed 2011-11-08 15:45:45 +00:00
1 parent 621dce0532
commit 1ec33f92e2
7 files changed
+78 -28

No files matched your search

+11
View File
@@ -365,4 +365,15 @@ class SupplierOrderCore extends ObjectModel
$history->save();
}
/**
* Remove all products in the order
*/
public function resetProducts()
{
$products = $this->getEntriesCollection();
foreach ($products as $p)
$p->delete();
}
}