diff --git a/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php b/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php index b030daca098..ac930e58b94 100644 --- a/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php +++ b/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php @@ -429,8 +429,8 @@ class StockTransferLine extends CommonObjectLine $p->fetch($this->fk_product); $op = array(); - $op[0] = "+".trim($this->qty); - $op[1] = "-".trim($this->qty); + $op[0] = "+".trim((string) $this->qty); + $op[1] = "-".trim((string) $this->qty); $movementstock = new MouvementStock($this->db); $st = new StockTransfer($this->db); $movementstock->origin_type = $st->origin_type;