mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
The signature of the Sale order ->cancel() method and shipment
->cancel() has been modified to introduce the $user param like for other methods that modify a status.
This commit is contained in:
@@ -881,10 +881,11 @@ class Commande extends CommonOrder
|
||||
* Cancel an order
|
||||
* If stock is decremented on order validation, we must reincrement it
|
||||
*
|
||||
* @param User $user User making action
|
||||
* @param int $idwarehouse Id warehouse to use for stock change.
|
||||
* @return int Return integer <0 if KO, >0 if OK
|
||||
*/
|
||||
public function cancel($idwarehouse = -1)
|
||||
public function cancel($user, $idwarehouse = -1)
|
||||
{
|
||||
global $user, $langs;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user