Update note.php
This commit is contained in:
parent
605db7d792
commit
472602121d
@ -20,11 +20,12 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/fourn/commande/note.php
|
||||
* \ingroup commande
|
||||
* \brief Fiche note commande
|
||||
* \file htdocs/fourn/commande/note.php
|
||||
* \ingroup commande
|
||||
* \brief page for notes on supplier orders
|
||||
*/
|
||||
|
||||
|
||||
// Load Dolibarr environment
|
||||
require '../../main.inc.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/fourn.lib.php';
|
||||
@ -36,6 +37,7 @@ if (isModEnabled('project')) {
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("suppliers", "orders", "companies", "stocks"));
|
||||
|
||||
// Get Parameters
|
||||
$id = GETPOST('facid', 'int') ?GETPOST('facid', 'int') : GETPOST('id', 'int');
|
||||
$ref = GETPOST('ref');
|
||||
$action = GETPOST('action', 'aZ09');
|
||||
@ -45,12 +47,14 @@ if ($user->socid) {
|
||||
$socid = $user->socid;
|
||||
}
|
||||
|
||||
// Init Objects
|
||||
$hookmanager->initHooks(array('ordersuppliercardnote'));
|
||||
$result = restrictedArea($user, 'fournisseur', $id, 'commande_fournisseur', 'commande');
|
||||
|
||||
$object = new CommandeFournisseur($db);
|
||||
$object->fetch($id, $ref);
|
||||
|
||||
// Permissions
|
||||
$permissionnote = ($user->rights->fournisseur->commande->creer || $user->rights->supplier_order->creer); // Used by the include of actions_setnotes.inc.php
|
||||
|
||||
|
||||
@ -70,6 +74,7 @@ if (empty($reshook)) {
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
$title = $object->ref." - ".$langs->trans('Notes');
|
||||
$help_url = 'EN:Module_Suppliers_Orders|FR:CommandeFournisseur|ES:Módulo_Pedidos_a_proveedores';
|
||||
llxHeader('', $title, $help_url);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user