diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php
index 8b38ffc9459..2efb03baac8 100644
--- a/htdocs/comm/propal.php
+++ b/htdocs/comm/propal.php
@@ -1398,9 +1398,11 @@ if ($action == 'create') {
print '';
// Shipping Method
- print '
| ' . $langs->trans('SendingMethod') . ' | ';
- print $form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1);
- print ' |
';
+ if (! empty($conf->expedition->enabled)) {
+ print '| ' . $langs->trans('SendingMethod') . ' | ';
+ print $form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1);
+ print ' |
';
+ }
// Delivery date (or manufacturing)
print '| ' . $langs->trans("DeliveryDate") . ' | ';
@@ -1865,21 +1867,23 @@ if ($action == 'create') {
print '
';
// Shipping Method
- print '| ';
- print '';
- print ' | ';
- if ($action == 'editshippingmethod') {
- $form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'shipping_method_id', 1);
- } else {
- $form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'none');
+ if (! empty($conf->expedition->enabled)) {
+ print ' |
| ';
+ print '';
+ print ' | ';
+ if ($action == 'editshippingmethod') {
+ $form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'shipping_method_id', 1);
+ } else {
+ $form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'none');
+ }
+ print ' | ';
+ print '
';
}
- print '';
- print '';
// Origin of demand
print '| ';
diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php
index 89b2674cb26..c54e2f187e4 100644
--- a/htdocs/commande/fiche.php
+++ b/htdocs/commande/fiche.php
@@ -1530,9 +1530,11 @@ if ($action == 'create' && $user->rights->commande->creer) {
print ' |
';
// Shipping Method
- print '| ' . $langs->trans('SendingMethod') . ' | ';
- print $form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1);
- print ' |
';
+ if (! empty($conf->expedition->enabled)) {
+ print '| ' . $langs->trans('SendingMethod') . ' | ';
+ print $form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1);
+ print ' |
';
+ }
// What trigger creation
print '| ' . $langs->trans('Source') . ' | ';
@@ -1990,21 +1992,23 @@ if ($action == 'create' && $user->rights->commande->creer) {
print ' |
';
// Shipping Method
- print '| ';
- print '';
- print ' | ';
- if ($action == 'editshippingmethod') {
- $form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'shipping_method_id', 1);
- } else {
- $form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'none');
+ if (! empty($conf->expedition->enabled)) {
+ print ' |
| ';
+ print '';
+ print ' | ';
+ if ($action == 'editshippingmethod') {
+ $form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'shipping_method_id', 1);
+ } else {
+ $form->formSelectShippingMethod($_SERVER['PHP_SELF'].'?id='.$object->id, $object->shipping_method_id, 'none');
+ }
+ print ' | ';
+ print '
';
}
- print '';
- print '';
// Terms of payment
print '| ';
|