diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index 7cbe020142f..c4c0957af0b 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -1684,10 +1684,12 @@ if ($action == 'create') // Incoterms if (!empty($conf->incoterm->enabled)) { + $fkincoterms = (!empty($object->fk_incoterms) ? $object->fk_incoterms : ($socid > 0 ? $societe->fk_incoterms : '')); + $locincoterms = (!empty($object->location_incoterms) ? $object->location_incoterms : ($socid > 0 ? $societe->location_incoterms : '')); print ''; print ''; print ''; - print $form->select_incoterms((!empty($object->fk_incoterms) ? $object->fk_incoterms : ''), (!empty($object->location_incoterms) ? $object->location_incoterms : '')); + print $form->select_incoterms($fkincoterms, $locincoterms); print ''; }