Fix: on affiche les options que si le module est activé
This commit is contained in:
parent
90ba517aaa
commit
cd79cd8774
@ -138,35 +138,44 @@ if ($conf->global->STOCK_USERSTOCK == 1)
|
|||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$var=!$var;
|
if ($conf->facture->enabled)
|
||||||
print "<tr ".$bc[$var].">";
|
{
|
||||||
print '<td width="60%">'.$langs->trans("DeStockReStockOnBill").'</td>';
|
$var=!$var;
|
||||||
print '<td width="160" align="right">';
|
print "<tr ".$bc[$var].">";
|
||||||
print "<form method=\"post\" action=\"stock.php\">";
|
print '<td width="60%">'.$langs->trans("DeStockReStockOnBill").'</td>';
|
||||||
print "<input type=\"hidden\" name=\"action\" value=\"stock_bill\">";
|
print '<td width="160" align="right">';
|
||||||
print $html->selectyesno("stock_bill",$conf->global->STOCK_CALCULATE_ON_BILL,1);
|
print "<form method=\"post\" action=\"stock.php\">";
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
print "<input type=\"hidden\" name=\"action\" value=\"stock_bill\">";
|
||||||
print "</form>\n</td>\n</tr>\n";
|
print $html->selectyesno("stock_bill",$conf->global->STOCK_CALCULATE_ON_BILL,1);
|
||||||
|
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
||||||
|
print "</form>\n</td>\n</tr>\n";
|
||||||
|
}
|
||||||
|
|
||||||
$var=!$var;
|
if ($conf->commande->enabled)
|
||||||
print "<tr ".$bc[$var].">";
|
{
|
||||||
print '<td width="60%">'.$langs->trans("DeStockReStockOnValidateOrder").'</td>';
|
$var=!$var;
|
||||||
print '<td width="160" align="right">';
|
print "<tr ".$bc[$var].">";
|
||||||
print "<form method=\"post\" action=\"stock.php\">";
|
print '<td width="60%">'.$langs->trans("DeStockReStockOnValidateOrder").'</td>';
|
||||||
print "<input type=\"hidden\" name=\"action\" value=\"stock_validateorder\">";
|
print '<td width="160" align="right">';
|
||||||
print $html->selectyesno("stock_validateorder",$conf->global->STOCK_CALCULATE_ON_VALIDATE_ORDER,1);
|
print "<form method=\"post\" action=\"stock.php\">";
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
print "<input type=\"hidden\" name=\"action\" value=\"stock_validateorder\">";
|
||||||
print "</form>\n</td>\n</tr>\n";
|
print $html->selectyesno("stock_validateorder",$conf->global->STOCK_CALCULATE_ON_VALIDATE_ORDER,1);
|
||||||
|
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
||||||
|
print "</form>\n</td>\n</tr>\n";
|
||||||
|
}
|
||||||
|
|
||||||
$var=!$var;
|
if ($conf->expedition->enabled)
|
||||||
print "<tr ".$bc[$var].">";
|
{
|
||||||
print '<td width="60%">'.$langs->trans("DeStockReStockOnShipment").'</td>';
|
$var=!$var;
|
||||||
print '<td width="160" align="right">';
|
print "<tr ".$bc[$var].">";
|
||||||
print "<form method=\"post\" action=\"stock.php\">";
|
print '<td width="60%">'.$langs->trans("DeStockReStockOnShipment").'</td>';
|
||||||
print "<input type=\"hidden\" name=\"action\" value=\"stock_shipment\">";
|
print '<td width="160" align="right">';
|
||||||
print $html->selectyesno("stock_shipment",$conf->global->STOCK_CALCULATE_ON_SHIPMENT,1);
|
print "<form method=\"post\" action=\"stock.php\">";
|
||||||
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
print "<input type=\"hidden\" name=\"action\" value=\"stock_shipment\">";
|
||||||
print "</form>\n</td>\n</tr>\n";
|
print $html->selectyesno("stock_shipment",$conf->global->STOCK_CALCULATE_ON_SHIPMENT,1);
|
||||||
|
print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
||||||
|
print "</form>\n</td>\n</tr>\n";
|
||||||
|
}
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user