Standardize and update code
This commit is contained in:
parent
ca9b1f155f
commit
fa1521d948
@ -97,7 +97,7 @@ class doc_generic_stock_odt extends ModelePDFStock
|
|||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array("errors","companies"));;
|
$langs->loadLangs(array("errors","companies"));
|
||||||
|
|
||||||
$form = new Form($this->db);
|
$form = new Form($this->db);
|
||||||
|
|
||||||
|
|||||||
@ -46,8 +46,8 @@ class mod_commande_fournisseur_orchidee extends ModeleNumRefSuppliersOrders
|
|||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
|
|
||||||
$langs->load("bills");
|
// Load translation files required by the page
|
||||||
$langs->load("admin");
|
$langs->loadLangs(array("bills","admin"));
|
||||||
|
|
||||||
$form = new Form($this->db);
|
$form = new Form($this->db);
|
||||||
|
|
||||||
|
|||||||
@ -37,10 +37,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/doc.lib.php';
|
|||||||
*/
|
*/
|
||||||
class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
||||||
{
|
{
|
||||||
var $emetteur; // Objet societe qui emet
|
public $emetteur; // Objet societe qui emet
|
||||||
|
|
||||||
var $phpmin = array(5,2,0); // Minimum version of PHP required by module
|
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
|
||||||
var $version = 'dolibarr';
|
public $version = 'dolibarr';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -52,8 +52,8 @@ class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
|
|||||||
{
|
{
|
||||||
global $conf,$langs,$mysoc;
|
global $conf,$langs,$mysoc;
|
||||||
|
|
||||||
$langs->load("main");
|
// Load translation files required by the page
|
||||||
$langs->load("companies");
|
$langs->loadLangs(array("main","companies"));
|
||||||
|
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->name = "ODT templates";
|
$this->name = "ODT templates";
|
||||||
|
|||||||
@ -43,8 +43,8 @@ class mod_ticket_universal extends ModeleNumRefTicket
|
|||||||
{
|
{
|
||||||
global $conf, $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
$langs->load("ticket");
|
// Load translation files required by the page
|
||||||
$langs->load("admin");
|
$langs->loadLangs(array("ticket","admin"));
|
||||||
|
|
||||||
$form = new Form($this->db);
|
$form = new Form($this->db);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user