Standardize and update code
This commit is contained in:
parent
46d7385c54
commit
1adc4bad9e
@ -44,7 +44,11 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
*/
|
*/
|
||||||
public $emetteur; // Objet societe qui emet
|
public $emetteur; // Objet societe qui emet
|
||||||
|
|
||||||
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
|
/**
|
||||||
|
* @var array() Minimum version of PHP required by module.
|
||||||
|
* e.g.: PHP ≥ 5.4 = array(5, 4)
|
||||||
|
*/
|
||||||
|
public $phpmin = array(5, 4);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dolibarr version of the loaded document
|
* Dolibarr version of the loaded document
|
||||||
@ -60,7 +64,7 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
*/
|
*/
|
||||||
function __construct($db)
|
function __construct($db)
|
||||||
{
|
{
|
||||||
global $conf,$langs,$mysoc;
|
global $conf, $langs, $mysoc;
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array("main","companies"));
|
$langs->loadLangs(array("main","companies"));
|
||||||
|
|||||||
@ -138,7 +138,7 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
*/
|
*/
|
||||||
function __construct($db)
|
function __construct($db)
|
||||||
{
|
{
|
||||||
global $conf,$langs,$mysoc;
|
global $conf, $langs, $mysoc;
|
||||||
|
|
||||||
// Translations
|
// Translations
|
||||||
$langs->loadLangs(array("main", "bills"));
|
$langs->loadLangs(array("main", "bills"));
|
||||||
|
|||||||
@ -42,7 +42,11 @@ class doc_generic_product_odt extends ModelePDFProduct
|
|||||||
*/
|
*/
|
||||||
public $emetteur;
|
public $emetteur;
|
||||||
|
|
||||||
public $phpmin = array(5,4,0); // Minimum version of PHP required by module
|
/**
|
||||||
|
* @var array() Minimum version of PHP required by module.
|
||||||
|
* e.g.: PHP ≥ 5.4 = array(5, 4)
|
||||||
|
*/
|
||||||
|
public $phpmin = array(5, 4);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dolibarr version of the loaded document
|
* Dolibarr version of the loaded document
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user