|
@@ -324,27 +324,6 @@ else
|
|
|
print $langs->trans("ModuleMustBeEnabledFirst", $langs->transnoentitiesnoconv("Module40Name"));
|
|
|
}
|
|
|
print "</td>\n</tr>\n";
|
|
|
-
|
|
|
-if (!empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER)) {
|
|
|
- $var=!$var;
|
|
|
- print "<tr ".$bc[$var].">";
|
|
|
- print '<td width="60%">'.$langs->trans("UseDispatchStatus").'</td>';
|
|
|
- print '<td width="160" align="right">';
|
|
|
- if (! empty($conf->fournisseur->enabled))
|
|
|
- {
|
|
|
- print "<form method=\"post\" action=\"stock.php\">";
|
|
|
- print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
|
|
- print "<input type=\"hidden\" name=\"action\" value=\"SUPPLIER_ORDER_USE_DISPATCH_STATUS\">";
|
|
|
- print $form->selectyesno("SUPPLIER_ORDER_USE_DISPATCH_STATUS",$conf->global->SUPPLIER_ORDER_USE_DISPATCH_STATUS,1,$disabled);
|
|
|
- print '<input type="submit" class="button" value="'.$langs->trans("Modify").'"'.$disabled.'>';
|
|
|
- print "</form>\n";
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- print $langs->trans("ModuleMustBeEnabledFirst", $langs->transnoentitiesnoconv("Module40Name"));
|
|
|
- }
|
|
|
- print "</td>\n</tr>\n";
|
|
|
-}
|
|
|
$found++;
|
|
|
|
|
|
/*if (! $found)
|
|
@@ -461,11 +440,24 @@ print " <td>".$langs->trans("Other")."</td>\n";
|
|
|
print " <td align=\"right\" width=\"160\"> </td>\n";
|
|
|
print '</tr>'."\n";
|
|
|
|
|
|
+if (! empty($conf->fournisseur->enabled) && !empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER)) {
|
|
|
+ $var=!$var;
|
|
|
+ print "<tr ".$bc[$var].">";
|
|
|
+ print '<td width="60%">'.$langs->trans("UseDispatchStatus").'</td>';
|
|
|
+ print '<td width="160" align="right">';
|
|
|
+ print "<form method=\"post\" action=\"stock.php\">";
|
|
|
+ print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
|
|
+ print "<input type=\"hidden\" name=\"action\" value=\"SUPPLIER_ORDER_USE_DISPATCH_STATUS\">";
|
|
|
+ print $form->selectyesno("SUPPLIER_ORDER_USE_DISPATCH_STATUS",$conf->global->SUPPLIER_ORDER_USE_DISPATCH_STATUS,1);
|
|
|
+ print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
|
|
+ print "</form>\n";
|
|
|
+ print "</td>\n</tr>\n";
|
|
|
+}
|
|
|
+
|
|
|
$var=!$var;
|
|
|
|
|
|
print "<tr ".$bc[$var].">";
|
|
|
print '<td width="60%">'.$langs->trans("UserWarehouseAutoCreate").'</td>';
|
|
|
-
|
|
|
print '<td width="160" align="right">';
|
|
|
print "<form method=\"post\" action=\"stock.php\">";
|
|
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|