diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php
index 44efbc46b15..f02fbada087 100644
--- a/htdocs/expedition/card.php
+++ b/htdocs/expedition/card.php
@@ -1533,9 +1533,9 @@ if ($action == 'create')
print ' ';
print '
';
- print ' ';
- print ' ';
- print ' ';
+ print ' ';
+ print ' ';
+ print ' '; // Cancel for create does not post form if we don't know the backtopage
print '
';
print '';
diff --git a/htdocs/expedition/shipment.php b/htdocs/expedition/shipment.php
index 0af347c0fb7..3d3d8a0de6c 100644
--- a/htdocs/expedition/shipment.php
+++ b/htdocs/expedition/shipment.php
@@ -151,6 +151,15 @@ if (empty($reshook))
setEventMessages($object->error, $object->errors, 'errors');
}
+ // Set incoterm
+ elseif ($action == 'set_incoterms' && !empty($conf->incoterm->enabled))
+ {
+ $result = $object->setIncoterms(GETPOST('incoterm_id', 'int'), GETPOST('location_incoterms', 'alpha'));
+ if ($result < 0) {
+ setEventMessages($object->error, $object->errors, 'errors');
+ }
+ }
+
// shipping method
if ($action == 'setshippingmethod' && $user->rights->commande->creer) {
$object = new Commande($db);