Standardize and update code
This commit is contained in:
parent
251273e3c3
commit
9f35767b4b
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
|
* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
|
||||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
@ -8,7 +8,7 @@
|
|||||||
* Copyright (C) 2012-2017 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2012-2017 Juanjo Menent <jmenent@2byte.es>
|
||||||
* Copyright (C) 2014 Florian Henry <florian.henry@open-concept.pro>
|
* Copyright (C) 2014 Florian Henry <florian.henry@open-concept.pro>
|
||||||
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
|
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
|
||||||
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -41,9 +41,8 @@ if (! empty($conf->projet->enabled)) {
|
|||||||
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formprojet.class.php';
|
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formprojet.class.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
$langs->load('orders');
|
// Load translation files required by the page
|
||||||
$langs->load('deliveries');
|
$langs->loadLangs(array("orders", "companies", "deliveries"));
|
||||||
$langs->load('companies');
|
|
||||||
|
|
||||||
if (! $user->rights->fournisseur->facture->creer)
|
if (! $user->rights->fournisseur->facture->creer)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
@ -105,9 +104,9 @@ if (($action == 'create' || $action == 'add') && ! $error) {
|
|||||||
if (! empty($conf->projet->enabled))
|
if (! empty($conf->projet->enabled))
|
||||||
require_once DOL_DOCUMENT_ROOT . '/projet/class/project.class.php';
|
require_once DOL_DOCUMENT_ROOT . '/projet/class/project.class.php';
|
||||||
|
|
||||||
$langs->load('bills');
|
// Load translation files required by the page
|
||||||
$langs->load('products');
|
$langs->loadLangs(array("bills", "main", "products"));
|
||||||
$langs->load('main');
|
|
||||||
if (isset($_GET['orders_to_invoice'])) {
|
if (isset($_GET['orders_to_invoice'])) {
|
||||||
$orders_id = GETPOST('orders_to_invoice','',1);
|
$orders_id = GETPOST('orders_to_invoice','',1);
|
||||||
$n = count($orders_id);
|
$n = count($orders_id);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user