Fix arg type to trim() with cast

This commit is contained in:
MDW 2024-03-19 22:10:25 +01:00
parent 26287a363e
commit f2e7dfad40
No known key found for this signature in database

View file

@ -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;