Merge branch 'NEW_stockstransfers' of github.com:atm-gauthier/dolibarr into NEW_stockstransfers

This commit is contained in:
Gauthier PC portable 024 2021-08-18 19:36:10 +02:00
commit 8170092cb8

View File

@ -474,14 +474,14 @@ class StockTransferLine extends CommonObjectLine
$this->fk_stocktransfer $this->fk_stocktransfer
);*/ );*/
$result = $movementstock->_create($user $result = $movementstock->_create($user,
, $p->id $p->id,
, $fk_entrepot $fk_entrepot,
, $op[$direction] $op[$direction],
, $direction $direction,
, empty($direction) ? $this->pmp : 0 empty($direction) ? $this->pmp : 0,
, $label $label,
, $code_inv); $code_inv);
if ($result < 0) { if ($result < 0) {
setEventMessages($p->errors, $p->errorss, 'errors'); setEventMessages($p->errors, $p->errorss, 'errors');
@ -513,18 +513,18 @@ class StockTransferLine extends CommonObjectLine
GETPOST("codemove") GETPOST("codemove")
);*/ );*/
$result = $movementstock->_create($user $result = $movementstock->_create($user,
, $p->id $p->id,
, $fk_entrepot $fk_entrepot,
, $op[$direction] $op[$direction],
, $direction $direction,
, empty($direction) ? $this->pmp : 0 empty($direction) ? $this->pmp : 0,
, $label $label,
, $code_inv $code_inv,
, '' '',
, $dlc $dlc,
, $dluo $dluo,
, $this->batch); $this->batch);
if ($result < 0) { if ($result < 0) {
setEventMessages($p->errors, $p->errorss, 'errors'); setEventMessages($p->errors, $p->errorss, 'errors');