Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
btm2000.bak /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
dolistore
[ DIR ]
drwxr-xr-x
2025-11-25 12:58
menus
[ DIR ]
drwxr-xr-x
2025-11-25 13:10
system
[ DIR ]
drwxr-xr-x
2025-11-25 13:10
tools
[ DIR ]
drwxr-xr-x
2025-11-25 13:10
accountant.php
12.01
KB
-rw-r--r--
2025-11-25 13:10
agenda.php
6.71
KB
-rw-r--r--
2025-11-25 13:10
agenda_extrafields.php
4.01
KB
-rw-r--r--
2025-11-25 13:10
agenda_extsites.php
8.17
KB
-rw-r--r--
2025-11-25 13:10
agenda_other.php
13.6
KB
-rw-r--r--
2025-11-25 13:10
agenda_reminder.php
7.6
KB
-rw-r--r--
2025-11-25 13:10
agenda_xcal.php
8.41
KB
-rw-r--r--
2025-11-25 13:10
bank.php
15.95
KB
-rw-r--r--
2025-11-25 13:10
bank_extrafields.php
3.89
KB
-rw-r--r--
2025-11-25 13:10
barcode.php
12.23
KB
-rw-r--r--
2025-11-25 13:10
boxes.php
16.42
KB
-rw-r--r--
2025-11-25 13:10
chequereceipts.php
9.11
KB
-rw-r--r--
2025-11-25 13:10
clicktodial.php
4.94
KB
-rw-r--r--
2025-11-25 13:10
commande.php
22.87
KB
-rw-r--r--
2025-11-25 13:10
company.php
49.4
KB
-rw-r--r--
2025-11-25 13:10
compta.php
5.04
KB
-rw-r--r--
2025-11-25 13:10
confexped.php
4.42
KB
-rw-r--r--
2025-11-25 13:10
const.php
8.74
KB
-rw-r--r--
2025-11-25 13:10
contract.php
16.72
KB
-rw-r--r--
2025-11-25 13:10
dav.php
4.41
KB
-rw-r--r--
2025-11-25 13:10
defaultvalues.php
14.15
KB
-rw-r--r--
2025-11-25 13:10
delais.php
14.2
KB
-rw-r--r--
2025-11-25 13:10
dict.php
96.79
KB
-rw-r--r--
2025-11-25 13:10
ecm.php
2.94
KB
-rw-r--r--
2025-11-25 13:10
events.php
3.23
KB
-rw-r--r--
2025-11-25 13:10
expedition.php
17.26
KB
-rw-r--r--
2025-11-25 13:10
expedition_extrafields.php
4.07
KB
-rw-r--r--
2025-11-25 13:10
expeditiondet_extrafields.php
4.14
KB
-rw-r--r--
2025-11-25 13:10
expensereport.php
16.31
KB
-rw-r--r--
2025-11-25 13:10
expensereport_extrafields.php
4.01
KB
-rw-r--r--
2025-11-25 13:10
expensereport_ik.php
6.13
KB
-rw-r--r--
2025-11-25 13:10
expensereport_rules.php
10.98
KB
-rw-r--r--
2025-11-25 13:10
export.php
2.99
KB
-rw-r--r--
2025-11-25 13:10
external_rss.php
9.69
KB
-rw-r--r--
2025-11-25 13:10
facture.php
29.19
KB
-rw-r--r--
2025-11-25 13:10
fckeditor.php
7.59
KB
-rw-r--r--
2025-11-25 13:10
fichinter.php
21.12
KB
-rw-r--r--
2025-11-25 13:10
geoipmaxmind.php
4.41
KB
-rw-r--r--
2025-11-25 13:10
ihm.php
24.92
KB
-rw-r--r--
2025-11-25 13:10
index.php
4.67
KB
-rw-r--r--
2025-11-25 13:10
ldap.php
12.54
KB
-rw-r--r--
2025-11-25 13:10
ldap_contacts.php
14.88
KB
-rw-r--r--
2025-11-25 13:10
ldap_groups.php
9.08
KB
-rw-r--r--
2025-11-25 13:10
ldap_members.php
19.79
KB
-rw-r--r--
2025-11-25 13:10
ldap_members_types.php
8.71
KB
-rw-r--r--
2025-11-25 13:10
ldap_users.php
19.73
KB
-rw-r--r--
2025-11-25 13:10
limits.php
11.65
KB
-rw-r--r--
2025-11-25 13:10
livraison.php
15.89
KB
-rw-r--r--
2025-11-25 13:10
livraison_extrafields.php
4.07
KB
-rw-r--r--
2025-11-25 13:10
livraisondet_extrafields.php
4.14
KB
-rw-r--r--
2025-11-25 13:10
loan.php
3.22
KB
-rw-r--r--
2025-11-25 13:10
mailing.php
5.39
KB
-rw-r--r--
2025-11-25 13:10
mailman.php
7.63
KB
-rw-r--r--
2025-11-25 13:10
mails.php
37.08
KB
-rw-r--r--
2025-11-25 13:10
mails_emailing.php
25.19
KB
-rw-r--r--
2025-11-25 13:10
mails_senderprofile_list.php
19.76
KB
-rw-r--r--
2025-11-25 13:10
mails_templates.php
44.67
KB
-rw-r--r--
2025-11-25 13:10
menus.php
9.84
KB
-rw-r--r--
2025-11-25 13:10
modulehelp.php
18.65
KB
-rw-r--r--
2025-11-25 13:10
modules.php
43.45
KB
-rw-r--r--
2025-11-25 13:10
multicurrency.php
12.72
KB
-rw-r--r--
2025-11-25 13:10
notification.php
10.17
KB
-rw-r--r--
2025-11-25 13:10
oauth.php
4.73
KB
-rw-r--r--
2025-11-25 13:10
oauthlogintokens.php
13.28
KB
-rw-r--r--
2025-11-25 13:10
order_extrafields.php
3.95
KB
-rw-r--r--
2025-11-25 13:10
orderdet_extrafields.php
4.03
KB
-rw-r--r--
2025-11-25 13:10
payment.php
9.84
KB
-rw-r--r--
2025-11-25 13:10
pdf.php
24.66
KB
-rw-r--r--
2025-11-25 13:10
perms.php
6.56
KB
-rw-r--r--
2025-11-25 13:10
prelevement.php
17.78
KB
-rw-r--r--
2025-11-25 13:10
propal.php
21.95
KB
-rw-r--r--
2025-11-25 13:10
proxy.php
6.73
KB
-rw-r--r--
2025-11-25 13:10
receiptprinter.php
16.72
KB
-rw-r--r--
2025-11-25 13:10
resource.php
4.13
KB
-rw-r--r--
2025-11-25 13:10
resource_extrafields.php
3.92
KB
-rw-r--r--
2025-11-25 13:10
salaries.php
3.22
KB
-rw-r--r--
2025-11-25 13:10
security.php
15.43
KB
-rw-r--r--
2025-11-25 13:10
security_file.php
6.87
KB
-rw-r--r--
2025-11-25 13:10
security_other.php
6.07
KB
-rw-r--r--
2025-11-25 13:10
sms.php
11.25
KB
-rw-r--r--
2025-11-25 13:10
spip.php
4.72
KB
-rw-r--r--
2025-11-25 13:10
stock.php
23.42
KB
-rw-r--r--
2025-11-25 13:10
supplier_invoice.php
18.36
KB
-rw-r--r--
2025-11-25 13:10
supplier_order.php
20.44
KB
-rw-r--r--
2025-11-25 13:10
supplier_payment.php
16.34
KB
-rw-r--r--
2025-11-25 13:10
supplier_proposal.php
20.24
KB
-rw-r--r--
2025-11-25 13:10
supplierinvoice_extrafields.php
4.15
KB
-rw-r--r--
2025-11-25 13:10
supplierinvoicedet_extrafields.php
4.16
KB
-rw-r--r--
2025-11-25 13:10
supplierorder_extrafields.php
4.01
KB
-rw-r--r--
2025-11-25 13:10
supplierorderdet_extrafields.php
4.08
KB
-rw-r--r--
2025-11-25 13:10
syslog.php
10.08
KB
-rw-r--r--
2025-11-25 13:10
taxes.php
8.76
KB
-rw-r--r--
2025-11-25 13:10
ticket.php
25.76
KB
-rw-r--r--
2025-11-25 13:10
ticket_extrafields.php
3.75
KB
-rw-r--r--
2025-11-25 13:10
translation.php
22.54
KB
-rw-r--r--
2025-11-25 13:10
triggers.php
2.69
KB
-rw-r--r--
2025-11-25 13:10
user.php
11.37
KB
-rw-r--r--
2025-11-25 13:10
usergroup.php
10.09
KB
-rw-r--r--
2025-11-25 13:10
website.php
22.92
KB
-rw-r--r--
2025-11-25 13:10
website_options.php
4.64
KB
-rw-r--r--
2025-11-25 13:10
workflow.php
6.59
KB
-rw-r--r--
2025-11-25 13:10
Save
Rename
<?php /* Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2008-2010 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com> * Copyright (C) 2012-2013 Juanjo Menent <jmenent@2byte.es> * Copyright (C) 2013-2018 Philippe Grand <philippe.grand@atoo-net.com> * Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ /** * \file htdocs/admin/stock.php * \ingroup stock * \brief Page d'administration/configuration du module gestion de stock */ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; // Load translation files required by the page $langs->loadLangs(array("admin", "stocks")); // Securit check if (!$user->admin) accessforbidden(); $action = GETPOST('action','alpha'); /* * Actions */ if($action) { $db->begin(); if ($action == 'STOCK_SUPPORTS_SERVICES') { $res = dolibarr_set_const($db, "STOCK_SUPPORTS_SERVICES", GETPOST('STOCK_SUPPORTS_SERVICES','alpha'),'chaine',0,'',$conf->entity); } if ($action == 'STOCK_USERSTOCK_AUTOCREATE') { $res = dolibarr_set_const($db, "STOCK_USERSTOCK_AUTOCREATE", GETPOST('STOCK_USERSTOCK_AUTOCREATE','alpha'),'chaine',0,'',$conf->entity); } if ($action == 'STOCK_ALLOW_ADD_LIMIT_STOCK_BY_WAREHOUSE') { $res = dolibarr_set_const($db, "STOCK_ALLOW_ADD_LIMIT_STOCK_BY_WAREHOUSE", GETPOST('STOCK_ALLOW_ADD_LIMIT_STOCK_BY_WAREHOUSE','alpha'),'chaine',0,'',$conf->entity); } if ($action == 'STOCK_ALLOW_NEGATIVE_TRANSFER') { $res = dolibarr_set_const($db, "STOCK_ALLOW_NEGATIVE_TRANSFER", GETPOST('STOCK_ALLOW_NEGATIVE_TRANSFER','alpha'),'chaine',0,'',$conf->entity); } // Mode of stock decrease if ($action == 'STOCK_CALCULATE_ON_BILL' || $action == 'STOCK_CALCULATE_ON_VALIDATE_ORDER' || $action == 'STOCK_CALCULATE_ON_SHIPMENT' || $action == 'STOCK_CALCULATE_ON_SHIPMENT_CLOSE') { $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_BILL", '','chaine',0,'',$conf->entity); $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_VALIDATE_ORDER", '','chaine',0,'',$conf->entity); $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_SHIPMENT", '','chaine',0,'',$conf->entity); $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_SHIPMENT_CLOSE", '','chaine',0,'',$conf->entity); if ($action == 'STOCK_CALCULATE_ON_BILL') $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_BILL", GETPOST('STOCK_CALCULATE_ON_BILL','alpha'),'chaine',0,'',$conf->entity); if ($action == 'STOCK_CALCULATE_ON_VALIDATE_ORDER') $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_VALIDATE_ORDER", GETPOST('STOCK_CALCULATE_ON_VALIDATE_ORDER','alpha'),'chaine',0,'',$conf->entity); if ($action == 'STOCK_CALCULATE_ON_SHIPMENT') $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_SHIPMENT", GETPOST('STOCK_CALCULATE_ON_SHIPMENT','alpha'),'chaine',0,'',$conf->entity); if ($action == 'STOCK_CALCULATE_ON_SHIPMENT_CLOSE') $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_SHIPMENT_CLOSE", GETPOST('STOCK_CALCULATE_ON_SHIPMENT_CLOSE','alpha'),'chaine',0,'',$conf->entity); } // Mode of stock increase if ($action == 'STOCK_CALCULATE_ON_SUPPLIER_BILL' || $action == 'STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER' || $action == 'STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER') { //Use variable cause empty(GETPOST()) do not work with php version < 5.4 $valdispatch=GETPOST('STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER','alpha'); $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_SUPPLIER_BILL", '','chaine',0,'',$conf->entity); $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER", '','chaine',0,'',$conf->entity); $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER", '','chaine',0,'',$conf->entity); if ($action == 'STOCK_CALCULATE_ON_SUPPLIER_BILL') $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_SUPPLIER_BILL", GETPOST('STOCK_CALCULATE_ON_SUPPLIER_BILL','alpha'),'chaine',0,'',$conf->entity); if ($action == 'STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER') $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER", GETPOST('STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER','alpha'),'chaine',0,'',$conf->entity); if ($action == 'STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER') $res=dolibarr_set_const($db, "STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER", $valdispatch,'chaine',0,'',$conf->entity); if (empty($valdispatch)) { $res=dolibarr_set_const($db, "SUPPLIER_ORDER_USE_DISPATCH_STATUS", '','chaine',0,'',$conf->entity); } } if($action == 'SUPPLIER_ORDER_USE_DISPATCH_STATUS') { $res = dolibarr_set_const($db, "SUPPLIER_ORDER_USE_DISPATCH_STATUS", GETPOST('SUPPLIER_ORDER_USE_DISPATCH_STATUS','alpha'),'chaine',0,'',$conf->entity); } if($action == 'STOCK_USE_VIRTUAL_STOCK') { $res = dolibarr_set_const($db, "STOCK_USE_VIRTUAL_STOCK", GETPOST('STOCK_USE_VIRTUAL_STOCK','alpha'),'chaine',0,'',$conf->entity); } if($action == 'STOCK_MUST_BE_ENOUGH_FOR_INVOICE') { $res = dolibarr_set_const($db, "STOCK_MUST_BE_ENOUGH_FOR_INVOICE", GETPOST('STOCK_MUST_BE_ENOUGH_FOR_INVOICE','alpha'),'chaine',0,'',$conf->entity); } if($action == 'STOCK_MUST_BE_ENOUGH_FOR_ORDER') { $res = dolibarr_set_const($db, "STOCK_MUST_BE_ENOUGH_FOR_ORDER", GETPOST('STOCK_MUST_BE_ENOUGH_FOR_ORDER','alpha'),'chaine',0,'',$conf->entity); } if($action == 'STOCK_MUST_BE_ENOUGH_FOR_SHIPMENT') { $res = dolibarr_set_const($db, "STOCK_MUST_BE_ENOUGH_FOR_SHIPMENT", GETPOST('STOCK_MUST_BE_ENOUGH_FOR_SHIPMENT','alpha'),'chaine',0,'',$conf->entity); } if($action == 'INDEPENDANT_SUBPRODUCT_STOCK') { $res = dolibarr_set_const($db, "INDEPENDANT_SUBPRODUCT_STOCK", GETPOST('INDEPENDANT_SUBPRODUCT_STOCK','alpha'),'chaine',0,'',$conf->entity); } if (! $res > 0) $error++; if (! $error) { $db->commit(); setEventMessages($langs->trans("SetupSaved"), null, 'mesgs'); } else { $db->rollback(); setEventMessages($langs->trans("Error"), null, 'errors'); } } /* * View */ llxHeader('',$langs->trans("StockSetup")); $linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>'; print load_fiche_titre($langs->trans("StockSetup"),$linkback,'title_setup'); $form=new Form($db); $disabled=''; if (! empty($conf->productbatch->enabled)) { $langs->load("productbatch"); $disabled=' disabled'; print info_admin($langs->trans("WhenProductBatchModuleOnOptionAreForced")); } //if (! empty($conf->global->STOCK_CALCULATE_ON_VALIDATE_ORDER) || ! empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT)) //{ print info_admin($langs->trans("IfYouUsePointOfSaleCheckModule")); print '<br>'; //} // Title rule for stock decrease print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print " <td>".$langs->trans("RuleForStockManagementDecrease")."</td>\n"; print " <td align=\"right\"> </td>\n"; print '</tr>'."\n"; $found=0; print '<tr class="oddeven">'; print '<td>'.$langs->trans("DeStockOnBill").'</td>'; print '<td align="right">'; if (! empty($conf->facture->enabled)) { print "<form method=\"post\" action=\"stock.php\">"; print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; print "<input type=\"hidden\" name=\"action\" value=\"STOCK_CALCULATE_ON_BILL\">"; print $form->selectyesno("STOCK_CALCULATE_ON_BILL",$conf->global->STOCK_CALCULATE_ON_BILL,1,$disabled); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'"'.$disabled.'>'; print "</form>\n"; } else { print $langs->trans("ModuleMustBeEnabledFirst", $langs->transnoentitiesnoconv("Module30Name")); } print "</td>\n</tr>\n"; $found++; print '<tr class="oddeven">'; print '<td>'.$langs->trans("DeStockOnValidateOrder").'</td>'; print '<td align="right">'; if (! empty($conf->commande->enabled)) { print "<form method=\"post\" action=\"stock.php\">"; print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; print "<input type=\"hidden\" name=\"action\" value=\"STOCK_CALCULATE_ON_VALIDATE_ORDER\">"; print $form->selectyesno("STOCK_CALCULATE_ON_VALIDATE_ORDER",$conf->global->STOCK_CALCULATE_ON_VALIDATE_ORDER,1,$disabled); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'"'.$disabled.'>'; print "</form>\n"; } else { print $langs->trans("ModuleMustBeEnabledFirst", $langs->transnoentitiesnoconv("Module25Name")); } print "</td>\n</tr>\n"; $found++; //if (! empty($conf->expedition->enabled)) //{ print '<tr class="oddeven">'; print '<td>'.$langs->trans("DeStockOnShipment").'</td>'; print '<td align="right">'; if (! empty($conf->expedition->enabled)) { print "<form method=\"post\" action=\"stock.php\">"; print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; print "<input type=\"hidden\" name=\"action\" value=\"STOCK_CALCULATE_ON_SHIPMENT\">"; print $form->selectyesno("STOCK_CALCULATE_ON_SHIPMENT",$conf->global->STOCK_CALCULATE_ON_SHIPMENT,1,$disabled); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'"'.$disabled.'>'; print "</form>\n"; } else { print $langs->trans("ModuleMustBeEnabledFirst", $langs->transnoentitiesnoconv("Module80Name")); } print "</td>\n</tr>\n"; $found++; print '<tr class="oddeven">'; print '<td>'.$langs->trans("DeStockOnShipmentOnClosing").'</td>'; print '<td align="right">'; if (! empty($conf->expedition->enabled)) { print "<form method=\"post\" action=\"stock.php\">"; print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; print "<input type=\"hidden\" name=\"action\" value=\"STOCK_CALCULATE_ON_SHIPMENT_CLOSE\">"; print $form->selectyesno("STOCK_CALCULATE_ON_SHIPMENT_CLOSE",$conf->global->STOCK_CALCULATE_ON_SHIPMENT_CLOSE,1,$disabled); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'"'.$disabled.'>'; print "</form>\n"; } else { print $langs->trans("ModuleMustBeEnabledFirst", $langs->transnoentitiesnoconv("Module80Name")); } print "</td>\n</tr>\n"; $found++; /*if (! $found) { print '<tr class="oddeven">'; print '<td colspan="2">'.$langs->trans("NoModuleToManageStockDecrease").'</td>'; print "</tr>\n"; }*/ print '</table>'; print '<br>'; // Title rule for stock increase print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print " <td>".$langs->trans("RuleForStockManagementIncrease")."</td>\n"; print " <td align=\"right\"> </td>\n"; print '</tr>'."\n"; $found=0; print '<tr class="oddeven">'; print '<td>'.$langs->trans("ReStockOnBill").'</td>'; print '<td 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=\"STOCK_CALCULATE_ON_SUPPLIER_BILL\">"; print $form->selectyesno("STOCK_CALCULATE_ON_SUPPLIER_BILL",$conf->global->STOCK_CALCULATE_ON_SUPPLIER_BILL,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++; print '<tr class="oddeven">'; print '<td>'.$langs->trans("ReStockOnValidateOrder").'</td>'; print '<td 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=\"STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER\">"; print $form->selectyesno("STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER",$conf->global->STOCK_CALCULATE_ON_SUPPLIER_VALIDATE_ORDER,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++; print '<tr class="oddeven">'; print '<td>'.$langs->trans("ReStockOnDispatchOrder").'</td>'; print '<td 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=\"STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER\">"; print $form->selectyesno("STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER",$conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER,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) { print '<tr class="oddeven">'; print '<td colspan="2">'.$langs->trans("NoModuleToManageStockIncrease").'</td>'; print "</tr>\n"; }*/ print '</table>'; print '<br>'; print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print " <td>".$langs->trans("RuleForStockAvailability")."</td>\n"; print " <td align=\"right\"> </td>\n"; print '</tr>'."\n"; print '<tr class="oddeven">'; print '<td>'.$langs->trans("WarehouseAllowNegativeTransfer").'</td>'; print '<td 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=\"STOCK_ALLOW_NEGATIVE_TRANSFER\">"; print $form->selectyesno("STOCK_ALLOW_NEGATIVE_TRANSFER",$conf->global->STOCK_ALLOW_NEGATIVE_TRANSFER,1); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'; print '</form>'; print "</td>\n"; print "</tr>\n"; // Option to force stock to be enough before adding a line into document if($conf->invoice->enabled) { print '<tr class="oddeven">'; print '<td>'.$langs->trans("StockMustBeEnoughForInvoice").'</td>'; print '<td 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=\"STOCK_MUST_BE_ENOUGH_FOR_INVOICE\">"; print $form->selectyesno("STOCK_MUST_BE_ENOUGH_FOR_INVOICE",$conf->global->STOCK_MUST_BE_ENOUGH_FOR_INVOICE,1); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'; print '</form>'; print "</td>\n"; print "</tr>\n"; } if($conf->order->enabled) { print '<tr class="oddeven">'; print '<td>'.$langs->trans("StockMustBeEnoughForOrder").'</td>'; print '<td 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=\"STOCK_MUST_BE_ENOUGH_FOR_ORDER\">"; print $form->selectyesno("STOCK_MUST_BE_ENOUGH_FOR_ORDER",$conf->global->STOCK_MUST_BE_ENOUGH_FOR_ORDER,1); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'; print '</form>'; print "</td>\n"; print "</tr>\n"; } if($conf->expedition->enabled) { print '<tr class="oddeven">'; print '<td>'.$langs->trans("StockMustBeEnoughForShipment").'</td>'; print '<td 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=\"STOCK_MUST_BE_ENOUGH_FOR_SHIPMENT\">"; print $form->selectyesno("STOCK_MUST_BE_ENOUGH_FOR_SHIPMENT",$conf->global->STOCK_MUST_BE_ENOUGH_FOR_SHIPMENT,1); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'; print '</form>'; print "</td>\n"; print "</tr>\n"; } print '</table>'; print '<br>'; $virtualdiffersfromphysical=0; if (! empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT) || ! empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER) ) $virtualdiffersfromphysical=1; // According to increase/decrease stock options, virtual and physical stock may differs. if ($virtualdiffersfromphysical) { print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print " <td>".$langs->trans("RuleForStockReplenishment")." ".img_help('help',$langs->trans("VirtualDiffersFromPhysical"))."</td>\n"; print " <td align=\"right\"> </td>\n"; print '</tr>'."\n"; print '<tr class="oddeven">'; print '<td>'.$langs->trans("UseVirtualStockByDefault").'</td>'; print '<td 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=\"STOCK_USE_VIRTUAL_STOCK\">"; print $form->selectyesno("STOCK_USE_VIRTUAL_STOCK",$conf->global->STOCK_USE_VIRTUAL_STOCK,1); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'; print '</form>'; print "</td>\n"; print "</tr>\n"; print '</table>'; print '<br>'; } print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print " <td>".$langs->trans("Other")."</td>\n"; print " <td align=\"right\"> </td>\n"; print '</tr>'."\n"; print '<tr class="oddeven">'; print '<td>'.$langs->trans("UserWarehouseAutoCreate").'</td>'; print '<td 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=\"STOCK_USERSTOCK_AUTOCREATE\">"; print $form->selectyesno("STOCK_USERSTOCK_AUTOCREATE",$conf->global->STOCK_USERSTOCK_AUTOCREATE,1); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'; print '</form>'; print "</td>\n"; print "</tr>\n"; print '<tr class="oddeven">'; print '<td>'; print $form->textwithpicto($langs->trans("StockSupportServices"), $langs->trans("StockSupportServicesDesc")); print '</td>'; print '<td 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=\"STOCK_SUPPORTS_SERVICES\">"; print $form->selectyesno("STOCK_SUPPORTS_SERVICES",$conf->global->STOCK_SUPPORTS_SERVICES,1); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'; print '</form>'; print "</td>\n"; print "</tr>\n"; print '<tr class="oddeven">'; print '<td>'.$langs->trans("AllowAddLimitStockByWarehouse").'</td>'; print '<td 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=\"STOCK_ALLOW_ADD_LIMIT_STOCK_BY_WAREHOUSE\">"; print $form->selectyesno("STOCK_ALLOW_ADD_LIMIT_STOCK_BY_WAREHOUSE",$conf->global->STOCK_ALLOW_ADD_LIMIT_STOCK_BY_WAREHOUSE,1); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'; print '</form>'; print "</td>\n"; print "</tr>\n"; if (! empty($conf->fournisseur->enabled) && !empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER)) { print '<tr class="oddeven">'; print '<td>'.$langs->trans("UseDispatchStatus").'</td>'; print '<td 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"; } print '</table>'; print '<br>'; if ($conf->global->MAIN_FEATURES_LEVEL >= 2) { print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; print '<td>'.$langs->trans("Inventory").'</td>'."\n"; print '<td align="center" width="20"> </td>'; print '<td align="center"> </td>'."\n"; // Example with a yes / no select print '<tr class="oddeven">'; print '<td>'.$langs->trans("INVENTORY_DISABLE_VIRTUAL").'</td>'; print '<td align="center" width="20"> </td>'; print '<td align="right" width="300">'; print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'">'; print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; print '<input type="hidden" name="action" value="set_INVENTORY_DISABLE_VIRTUAL">'; print $form->selectyesno("INVENTORY_DISABLE_VIRTUAL",$conf->global->INVENTORY_DISABLE_VIRTUAL,1); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'; print '</form>'; print '</td></tr>'; // Example with a yes / no select print '<tr class="oddeven">'; print '<td>'.$langs->trans("INVENTORY_USE_MIN_PA_IF_NO_LAST_PA").'</td>'; print '<td align="center" width="20"> </td>'; print '<td align="right" width="300">'; print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'">'; print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; print '<input type="hidden" name="action" value="set_INVENTORY_USE_MIN_PA_IF_NO_LAST_PA">'; print $form->selectyesno("INVENTORY_USE_MIN_PA_IF_NO_LAST_PA",$conf->global->INVENTORY_USE_MIN_PA_IF_NO_LAST_PA,1); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'; print '</form>'; print '</td></tr>'; // Example with a yes / no select print '<tr class="oddeven">'; print '<td>'.$langs->trans("INVENTORY_USE_INVENTORY_DATE_FROM_DATEMVT").'</td>'; print '<td align="center" width="20"> </td>'; print '<td align="right" width="300">'; print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'">'; print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; print '<input type="hidden" name="action" value="set_INVENTORY_USE_INVENTORY_DATE_FROM_DATEMVT">'; print $form->selectyesno("INVENTORY_USE_INVENTORY_DATE_FROM_DATEMVT",$conf->global->INVENTORY_USE_INVENTORY_DATE_FROM_DATEMVT,1); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'; print '</form>'; print '</td></tr>'; print '</table>'; } /* I keep the option/feature, but hidden to end users for the moment. If feature is used by module, no need to have users see it. If not used by a module, I still need to understand in which case user may need this now we can set rule on product page. if ($conf->global->PRODUIT_SOUSPRODUITS) { print '<tr class="oddeven">'; print '<td>'.$langs->trans("IndependantSubProductStock").'</td>'; print '<td 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=\"INDEPENDANT_SUBPRODUCT_STOCK\">"; print $form->selectyesno("INDEPENDANT_SUBPRODUCT_STOCK",$conf->global->INDEPENDANT_SUBPRODUCT_STOCK,1); print '<input type="submit" class="button" value="'.$langs->trans("Modify").'">'; print '</form>'; print "</td>\n"; print "</tr>\n"; } */ llxFooter(); $db->close();