Update commande.class.php

This commit is contained in:
Laurent Destailleur 2020-07-03 00:14:22 +02:00 committed by GitHub
parent 642e75c3dd
commit 6c01cc16f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1014,7 +1014,7 @@ class Commande extends CommonOrder
// Complete vat rate with code
$vatrate = $line->tva_tx;
if ($line->vat_src_code && !preg_match('/\(.*\)/', $vatrate)) $vatrate .= ' ('.$line->vat_src_code.')';
$origin = !empty($line->origin) ? $line->origin : $this->element;
$origin = (!empty($line->origin) ? $line->origin : $this->element);
$result = $this->addline(
$line->desc,
$line->subprice,