// stock : bugs fix and update of supplier order add product interface
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user