Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
grandoc committed Sep 23, 2018
2 parents e8b7ad0 + fab57e1 commit 0a86515
Show file tree
Hide file tree
Showing 29 changed files with 248 additions and 106 deletions.
8 changes: 7 additions & 1 deletion htdocs/admin/dict.php
Expand Up @@ -951,7 +951,6 @@
print $langs->trans("DictionaryDesc");
print " ".$langs->trans("OnlyActiveElementsAreShown")."<br>\n";
}
print "<br>\n";


$param = '&id='.urlencode($id);
Expand Down Expand Up @@ -1016,6 +1015,13 @@
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<input type="hidden" name="from" value="'.dol_escape_htmltag(GETPOST('from','alpha')).'">';

if ($id == 10 && empty($conf->global->FACTURE_TVAOPTION))
{
print info_admin($langs->trans("VATIsUsedIsOff", $langs->transnoentities("Setup"), $langs->transnoentities("CompanyFoundation")));
}

print "<br>\n";

// Form to add a new line
if ($tabname[$id])
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/company.lib.php
Expand Up @@ -1583,7 +1583,7 @@ function show_actions_done($conf, $langs, $db, $filterobj, $objcon='', $noprint=
$out.='</td>';

// Author of event
$out.='<td>';
$out.='<td class="tdoverflowmax100">';
//$userstatic->id=$histo[$key]['userid'];
//$userstatic->login=$histo[$key]['login'];
//$out.=$userstatic->getLoginUrl(1);
Expand Down
Expand Up @@ -38,9 +38,18 @@
*/
class doc_generic_order_odt extends ModelePDFCommandes
{
public $emetteur; // Objet societe qui emet
/**
* Issuer
* @var Societe
*/
public $emetteur;

public $phpmin = array(5,4,0); // Minimum version of PHP required by module

/**
* Dolibarr version of the loaded document
* @public string
*/
public $version = 'dolibarr';


Expand Down
6 changes: 3 additions & 3 deletions htdocs/core/modules/commande/doc/pdf_einstein.modules.php
Expand Up @@ -115,9 +115,9 @@ class pdf_einstein extends ModelePDFCommandes
public $marge_basse;

/**
* Issuer
* @var Societe
*/
* Issuer
* @var Societe
*/
public $emetteur; // Objet societe qui emet


Expand Down
Expand Up @@ -37,9 +37,18 @@
*/
class doc_generic_contract_odt extends ModelePDFContract
{
public $emetteur; // Objet societe qui emet
/**
* Issuer
* @var Societe
*/
public $emetteur;

public $phpmin = array(5,4,0); // Minimum version of PHP required by module

/**
* Dolibarr version of the loaded document
* @public string
*/
public $version = 'dolibarr';


Expand Down
Expand Up @@ -39,9 +39,18 @@
*/
class doc_generic_shipment_odt extends ModelePdfExpedition
{
public $emetteur; // Objet societe qui emet
/**
* Issuer
* @var Societe
*/
public $emetteur;

public $phpmin = array(5,4,0); // Minimum version of PHP required by module

/**
* Dolibarr version of the loaded document
* @public string
*/
public $version = 'dolibarr';


Expand Down
Expand Up @@ -38,9 +38,18 @@
*/
class doc_generic_invoice_odt extends ModelePDFFactures
{
/**
* Issuer
* @var Societe
*/
public $emetteur; // Objet societe qui emet

public $phpmin = array(5,4,0); // Minimum version of PHP required by module

/**
* Dolibarr version of the loaded document
* @public string
*/
public $version = 'dolibarr';


Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/modModuleBuilder.class.php
Expand Up @@ -60,7 +60,7 @@ function __construct($db)

// Config pages
//-------------
$this->config_page_url = array('setup@modulebuilder');
$this->config_page_url = array('setup.php@modulebuilder');

// Dependencies
//-------------
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/modSocialNetworks.class.php
Expand Up @@ -48,7 +48,7 @@ function __construct($db)
$this->family = "interface";
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = preg_replace('/^mod/i','',get_class($this));
$this->description = "Enable Social Networks fields into contacts";
$this->description = "Enable Social Networks fields into third parties and addresses (skype, twitter, facebook, ...)";
// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'dolibarr';
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
Expand Down
15 changes: 14 additions & 1 deletion htdocs/core/modules/modSyslog.class.php
Expand Up @@ -85,7 +85,20 @@ function __construct($db)

// Cronjobs
$this->cronjobs = array(
0=>array('label'=>'CompressSyslogs', 'jobtype'=>'method', 'class'=>'core/class/utils.class.php', 'objectname'=>'Utils', 'method'=>'compressSyslogs', 'parameters'=>'', 'comment'=>'Compress and archive log files. Warning: batch must be run with same account than your web server to avoid to get log files with different owner than required by web server. Another solution is to set web server Operating System group as the group of directory documents and set GROUP permission "rws" on this directory so log files will always have the group and permissions of the web server Operating System group', 'frequency'=>1, 'unitfrequency'=> 3600 * 24, 'priority'=>50, 'status'=>0, 'test'=>true),
0 => array(
'label' => 'CompressSyslogs',
'jobtype' => 'method',
'class' => 'core/class/utils.class.php',
'objectname' => 'Utils',
'method' => 'compressSyslogs',
'parameters' => '',
'comment' => 'Compress and archive log files. Warning: batch must be run with same account than your web server to avoid to get log files with different owner than required by web server. Another solution is to set web server Operating System group as the group of directory documents and set GROUP permission "rws" on this directory so log files will always have the group and permissions of the web server Operating System group',
'frequency' => 1,
'unitfrequency' => 3600 * 24,
'priority' => 50,
'status' => 0,
'test' => true,
),
);
}
}
Expand Up @@ -36,9 +36,18 @@
*/
class doc_generic_product_odt extends ModelePDFProduct
{
public $emetteur; // Objet societe qui emet
/**
* Issuer
* @var Societe
*/
public $emetteur;

public $phpmin = array(5,4,0); // Minimum version of PHP required by module

/**
* Dolibarr version of the loaded document
* @public string
*/
public $version = 'dolibarr';


Expand Down
10 changes: 7 additions & 3 deletions htdocs/core/modules/product/doc/pdf_standard.modules.php
Expand Up @@ -58,9 +58,9 @@ class pdf_standard extends ModelePDFProduct

/**
* @var array() Minimum version of PHP required by module.
* e.g.: PHP ≥ 5.3 = array(5, 3)
* e.g.: PHP ≥ 5.4 = array(5, 4)
*/
public $phpmin = array(5, 2);
public $phpmin = array(5, 4);

/**
* Dolibarr version of the loaded document
Expand All @@ -76,7 +76,11 @@ class pdf_standard extends ModelePDFProduct
public $marge_haute;
public $marge_basse;

public $emetteur; // Objet societe qui emet
/**
* Issuer
* @var Societe
*/
public $emetteur;


/**
Expand Down
Expand Up @@ -54,9 +54,18 @@
*/
class doc_generic_task_odt extends ModelePDFTask
{
/**
* Issuer
* @var Societe
*/
public $emetteur; // Objet societe qui emet

public $phpmin = array(5,4,0); // Minimum version of PHP required by module

/**
* Dolibarr version of the loaded document
* @public string
*/
public $version = 'dolibarr';


Expand Down
Expand Up @@ -37,9 +37,18 @@
*/
class doc_generic_proposal_odt extends ModelePDFPropales
{
/**
* Issuer
* @var Societe
*/
public $emetteur; // Objet societe qui emet

public $phpmin = array(5,4,0); // Minimum version of PHP required by module

/**
* Dolibarr version of the loaded document
* @public string
*/
public $version = 'dolibarr';


Expand Down
11 changes: 10 additions & 1 deletion htdocs/core/modules/stock/doc/doc_generic_stock_odt.modules.php
Expand Up @@ -36,9 +36,18 @@
*/
class doc_generic_stock_odt extends ModelePDFStock
{
public $emetteur; // Objet societe qui emet
/**
* Issuer
* @var Societe
*/
public $emetteur;

public $phpmin = array(5,4,0); // Minimum version of PHP required by module

/**
* Dolibarr version of the loaded document
* @public string
*/
public $version = 'dolibarr';


Expand Down
10 changes: 7 additions & 3 deletions htdocs/core/modules/stock/doc/pdf_standard.modules.php
Expand Up @@ -58,9 +58,9 @@ class pdf_standard extends ModelePDFStock

/**
* @var array() Minimum version of PHP required by module.
* e.g.: PHP ≥ 5.3 = array(5, 3)
* e.g.: PHP ≥ 5.4 = array(5, 4)
*/
public $phpmin = array(5, 2);
public $phpmin = array(5, 4);

/**
* Dolibarr version of the loaded document
Expand All @@ -76,7 +76,11 @@ class pdf_standard extends ModelePDFStock
public $marge_haute;
public $marge_basse;

public $emetteur; // Objet societe qui emet
/**
* Issuer
* @var Societe
*/
public $emetteur;


/**
Expand Down
10 changes: 7 additions & 3 deletions htdocs/core/modules/stock/doc/pdf_stdmovement.modules.php
Expand Up @@ -59,9 +59,9 @@ class pdf_stdmovement extends ModelePDFMovement

/**
* @var array() Minimum version of PHP required by module.
* e.g.: PHP ≥ 5.3 = array(5, 3)
* e.g.: PHP ≥ 5.4 = array(5, 4)
*/
public $phpmin = array(5, 2);
public $phpmin = array(5, 4);

/**
* Dolibarr version of the loaded document
Expand All @@ -77,7 +77,11 @@ class pdf_stdmovement extends ModelePDFMovement
public $marge_haute;
public $marge_basse;

public $emetteur; // Objet societe qui emet
/**
* Issuer
* @var Societe
*/
public $emetteur;


/**
Expand Down
Expand Up @@ -37,9 +37,18 @@
*/
class doc_generic_supplier_proposal_odt extends ModelePDFSupplierProposal
{
public $emetteur; // Objet societe qui emet
/**
* Issuer
* @var Societe
*/
public $emetteur;

public $phpmin = array(5,4,0); // Minimum version of PHP required by module

/**
* Dolibarr version of the loaded document
* @public string
*/
public $version = 'dolibarr';


Expand Down
7 changes: 6 additions & 1 deletion htdocs/core/modules/ticket/mod_ticket_simple.php
Expand Up @@ -30,7 +30,12 @@
*/
class mod_ticket_simple extends ModeleNumRefTicket
{
public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr'
/**
* Dolibarr version of the loaded document
* @public string
*/
public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr'

public $prefix = 'TS';
public $error = '';
public $nom = "Simple";
Expand Down
7 changes: 6 additions & 1 deletion htdocs/core/modules/ticket/mod_ticket_universal.php
Expand Up @@ -29,7 +29,12 @@
*/
class mod_ticket_universal extends ModeleNumRefTicket
{
public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr'
/**
* Dolibarr version of the loaded document
* @public string
*/
public $version = 'dolibarr'; // 'development', 'experimental', 'dolibarr'

public $error = '';
public $nom = 'Universal';
public $name = 'Universal';
Expand Down
11 changes: 10 additions & 1 deletion htdocs/core/modules/user/doc/doc_generic_user_odt.modules.php
Expand Up @@ -35,9 +35,18 @@
*/
class doc_generic_user_odt extends ModelePDFUser
{
public $emetteur; // Objet societe qui emet
/**
* Issuer
* @var Societe
*/
public $emetteur;

public $phpmin = array(5,4,0); // Minimum version of PHP required by module

/**
* Dolibarr version of the loaded document
* @public string
*/
public $version = 'dolibarr';


Expand Down

0 comments on commit 0a86515

Please sign in to comment.