Merge pull request #22115 from dolibit-ut/patch-528
Update document.php
This commit is contained in:
commit
c8a299b097
@ -23,30 +23,36 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/fourn/paiement/document.php
|
||||
* \ingroup facture, fournisseur
|
||||
* \brief Management page of attached documents to a payment
|
||||
* \file htdocs/fourn/paiement/document.php
|
||||
* \ingroup facture, fournisseur
|
||||
* \brief Management page of attached documents to a payment
|
||||
*/
|
||||
|
||||
|
||||
// Load Dolibarr environment
|
||||
require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/fourn/class/paiementfourn.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/fourn/class/paiementfourn.class.php';
|
||||
if (isModEnabled('project')) {
|
||||
require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
|
||||
}
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('bills', 'banks', 'companies', 'suppliers', 'other'));
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array('banks', 'bills', 'companies', 'suppliers', 'other'));
|
||||
|
||||
|
||||
// Get Parameters
|
||||
$id = GETPOST('id', 'int');
|
||||
$ref = GETPOST('ref', 'alpha');
|
||||
$action = GETPOST('action', 'aZ09');
|
||||
$confirm = GETPOST('confirm', 'alpha');
|
||||
|
||||
|
||||
// Security check
|
||||
if ($user->socid) {
|
||||
$socid = $user->socid;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user