Standardize and update code
This commit is contained in:
parent
ab92871dc3
commit
988774120c
@ -34,8 +34,8 @@ $idprod=GETPOST('idprod','int');
|
|||||||
|
|
||||||
$prices = array();
|
$prices = array();
|
||||||
|
|
||||||
$langs->load('stocks');
|
// Load translation files required by the page
|
||||||
$langs->load('margins');
|
$langs->loadLangs(array("stocks","margins"));
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -5,9 +5,9 @@
|
|||||||
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
|
||||||
* Copyright (C) 2014 Cedric Gross <c.gross@kreiz-it.fr>
|
* Copyright (C) 2014 Cedric Gross <c.gross@kreiz-it.fr>
|
||||||
* Copyright (C) 2016 Florian Henry <florian.henry@atm-consulting.fr>
|
* Copyright (C) 2016 Florian Henry <florian.henry@atm-consulting.fr>
|
||||||
* Copyright (C) 2017 Ferran Marcet <fmarcet@2byte.es>
|
* Copyright (C) 2017 Ferran Marcet <fmarcet@2byte.es>
|
||||||
* 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
|
||||||
@ -40,13 +40,9 @@ require_once DOL_DOCUMENT_ROOT . '/product/class/html.formproduct.class.php';
|
|||||||
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('orders');
|
// Load translation files required by the page
|
||||||
$langs->load('sendings');
|
$langs->loadLangs(array("bills", "orders", "sendings", "companies", "deliveries", "products", "stocks"));
|
||||||
$langs->load('companies');
|
|
||||||
$langs->load('bills');
|
|
||||||
$langs->load('deliveries');
|
|
||||||
$langs->load('products');
|
|
||||||
$langs->load('stocks');
|
|
||||||
if (! empty($conf->productbatch->enabled))
|
if (! empty($conf->productbatch->enabled))
|
||||||
$langs->load('productbatch');
|
$langs->load('productbatch');
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user