Update expedition.class.php

This commit is contained in:
Laurent Destailleur 2021-11-18 20:10:04 +01:00 committed by GitHub
parent db975bbcc2
commit 8f96383186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,14 +364,14 @@ class Expedition extends CommonObject
{
if (!isset($this->lines[$i]->detail_batch))
{ // no batch management
if ($this->create_line($this->lines[$i]->entrepot_id, $this->lines[$i]->origin_line_id, $this->lines[$i]->qty, $this->lines[$i]->rang, $this->lines[$i]->array_options) < 0)
if ($this->create_line($this->lines[$i]->entrepot_id, $this->lines[$i]->origin_line_id, $this->lines[$i]->qty, $this->lines[$i]->rang, $this->lines[$i]->array_options) <= 0)
{
$error++;
}
}
else
{ // with batch management
if ($this->create_line_batch($this->lines[$i], $this->lines[$i]->array_options) < 0)
if ($this->create_line_batch($this->lines[$i], $this->lines[$i]->array_options) <= 0)
{
$error++;
}