forked from Wavyzz/dolibarr
Merge remote-tracking branch 'upstream/develop' into camelCaps
This commit is contained in:
@@ -216,7 +216,7 @@ before_script:
|
|||||||
- |
|
- |
|
||||||
export CONF_FILE=htdocs/conf/conf.php
|
export CONF_FILE=htdocs/conf/conf.php
|
||||||
echo "Setting up Dolibarr $CONF_FILE"
|
echo "Setting up Dolibarr $CONF_FILE"
|
||||||
echo '<?php ' > $CONF_FILE
|
echo '<?php' > $CONF_FILE
|
||||||
echo '$'dolibarr_main_url_root=\'http://127.0.0.1\'';' >> $CONF_FILE
|
echo '$'dolibarr_main_url_root=\'http://127.0.0.1\'';' >> $CONF_FILE
|
||||||
echo '$'dolibarr_main_document_root=\'$TRAVIS_BUILD_DIR/htdocs\'';' >> $CONF_FILE
|
echo '$'dolibarr_main_document_root=\'$TRAVIS_BUILD_DIR/htdocs\'';' >> $CONF_FILE
|
||||||
echo '$'dolibarr_main_data_root=\'$TRAVIS_BUILD_DIR/documents\'';' >> $CONF_FILE
|
echo '$'dolibarr_main_data_root=\'$TRAVIS_BUILD_DIR/documents\'';' >> $CONF_FILE
|
||||||
|
|||||||
@@ -158,6 +158,22 @@
|
|||||||
<!-- Disabled as this does not support tab -->
|
<!-- Disabled as this does not support tab -->
|
||||||
<!-- <rule ref="Generic.WhiteSpace.ScopeIndent" /> -->
|
<!-- <rule ref="Generic.WhiteSpace.ScopeIndent" /> -->
|
||||||
|
|
||||||
|
<!-- There MUST NOT be trailing whitespace at the end of non-blank lines. -->
|
||||||
|
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
|
||||||
|
<properties>
|
||||||
|
<property name="ignoreBlankLines" value="true"/>
|
||||||
|
</properties>
|
||||||
|
</rule>
|
||||||
|
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.StartFile">
|
||||||
|
<severity>0</severity>
|
||||||
|
</rule>
|
||||||
|
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndFile">
|
||||||
|
<severity>0</severity>
|
||||||
|
</rule>
|
||||||
|
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines">
|
||||||
|
<severity>0</severity>
|
||||||
|
</rule>
|
||||||
|
|
||||||
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration" />
|
<rule ref="Squiz.Functions.MultiLineFunctionDeclaration" />
|
||||||
|
|
||||||
<!-- Rules from PEAR Standard -->
|
<!-- Rules from PEAR Standard -->
|
||||||
|
|||||||
@@ -30,11 +30,31 @@ require_once DOL_DOCUMENT_ROOT . '/core/lib/accounting.lib.php';
|
|||||||
*/
|
*/
|
||||||
class AccountancyCategory // extends CommonObject
|
class AccountancyCategory // extends CommonObject
|
||||||
{
|
{
|
||||||
public $db; //!< To store db handler
|
/**
|
||||||
public $error; //!< To return error code (or message)
|
* @var DoliDB Database handler.
|
||||||
public $errors=array(); //!< To return several error codes (or messages)
|
*/
|
||||||
public $element='c_accounting_category'; //!< Id that identify managed objects
|
public $db;
|
||||||
public $table_element='c_accounting_category'; //!< Name of table without prefix where object is stored
|
|
||||||
|
/**
|
||||||
|
* @var string Error string
|
||||||
|
* @see errors
|
||||||
|
*/
|
||||||
|
public $error;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
|
public $errors = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='c_accounting_category';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
|
public $table_element='c_accounting_category';
|
||||||
|
|
||||||
public $id;
|
public $id;
|
||||||
public $code;
|
public $code;
|
||||||
|
|||||||
@@ -28,7 +28,11 @@
|
|||||||
*/
|
*/
|
||||||
class AccountancySystem
|
class AccountancySystem
|
||||||
{
|
{
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Error code (or message)
|
* @var string Error code (or message)
|
||||||
*/
|
*/
|
||||||
@@ -38,7 +42,12 @@ class AccountancySystem
|
|||||||
var $fk_pcg_version;
|
var $fk_pcg_version;
|
||||||
var $pcg_type;
|
var $pcg_type;
|
||||||
var $pcg_subtype;
|
var $pcg_subtype;
|
||||||
var $label;
|
|
||||||
|
/**
|
||||||
|
* @var string proper name for given parameter
|
||||||
|
*/
|
||||||
|
public $label;
|
||||||
|
|
||||||
var $account_number;
|
var $account_number;
|
||||||
var $account_parent;
|
var $account_parent;
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,12 @@
|
|||||||
class AccountingAccount extends CommonObject
|
class AccountingAccount extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='accounting_account';
|
public $element='accounting_account';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='accounting_account';
|
public $table_element='accounting_account';
|
||||||
|
|
||||||
public $picto = 'billr';
|
public $picto = 'billr';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -39,26 +44,33 @@ class AccountingAccount extends CommonObject
|
|||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
public $ismultientitymanaged = 1;
|
public $ismultientitymanaged = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user
|
* 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user
|
||||||
* @var integer
|
* @var integer
|
||||||
*/
|
*/
|
||||||
public $restrictiononfksoc = 1;
|
public $restrictiononfksoc = 1;
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Error code (or message)
|
* @var string Error code (or message)
|
||||||
*/
|
*/
|
||||||
public $error='';
|
public $error='';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string[] Error codes (or messages)
|
* @var string[] Error codes (or messages)
|
||||||
*/
|
*/
|
||||||
public $errors = array();
|
public $errors = array();
|
||||||
|
|
||||||
var $id;
|
/**
|
||||||
|
* @var int ID
|
||||||
|
*/
|
||||||
|
public $id;
|
||||||
|
|
||||||
var $rowid;
|
var $rowid;
|
||||||
var $datec; // Creation date
|
var $datec; // Creation date
|
||||||
var $fk_pcg_version;
|
var $fk_pcg_version;
|
||||||
@@ -67,7 +79,12 @@ class AccountingAccount extends CommonObject
|
|||||||
var $account_number;
|
var $account_number;
|
||||||
var $account_parent;
|
var $account_parent;
|
||||||
var $account_category;
|
var $account_category;
|
||||||
var $label;
|
|
||||||
|
/**
|
||||||
|
* @var string proper name for given parameter
|
||||||
|
*/
|
||||||
|
public $label;
|
||||||
|
|
||||||
var $fk_user_author;
|
var $fk_user_author;
|
||||||
var $fk_user_modif;
|
var $fk_user_modif;
|
||||||
var $active; // duplicate with status
|
var $active; // duplicate with status
|
||||||
|
|||||||
@@ -26,8 +26,16 @@
|
|||||||
*/
|
*/
|
||||||
class AccountingJournal extends CommonObject
|
class AccountingJournal extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='accounting_journal';
|
public $element='accounting_journal';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='accounting_journal';
|
public $table_element='accounting_journal';
|
||||||
|
|
||||||
public $fk_element = '';
|
public $fk_element = '';
|
||||||
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
public $picto = 'generic';
|
public $picto = 'generic';
|
||||||
|
|||||||
@@ -35,14 +35,17 @@ class BookKeeping extends CommonObject
|
|||||||
* @var string Error code (or message)
|
* @var string Error code (or message)
|
||||||
*/
|
*/
|
||||||
public $error;
|
public $error;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string[] Error codes (or messages)
|
* @var string[] Error codes (or messages)
|
||||||
*/
|
*/
|
||||||
public $errors = array ();
|
public $errors = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Id to identify managed objects
|
* @var string Id to identify managed objects
|
||||||
*/
|
*/
|
||||||
public $element = 'accountingbookkeeping';
|
public $element = 'accountingbookkeeping';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -28,10 +28,10 @@
|
|||||||
abstract class ActionsAdherentCardCommon
|
abstract class ActionsAdherentCardCommon
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Database handler
|
* @var DoliDB Database handler.
|
||||||
* @var DoliDB
|
|
||||||
*/
|
*/
|
||||||
var $db;
|
public $db;
|
||||||
|
|
||||||
var $dirmodule;
|
var $dirmodule;
|
||||||
var $targetmodule;
|
var $targetmodule;
|
||||||
var $canvas;
|
var $canvas;
|
||||||
@@ -41,12 +41,12 @@ abstract class ActionsAdherentCardCommon
|
|||||||
var $tpl = array();
|
var $tpl = array();
|
||||||
//! Object container
|
//! Object container
|
||||||
var $object;
|
var $object;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Error code (or message)
|
* @var string Error code (or message)
|
||||||
*/
|
*/
|
||||||
public $error='';
|
public $error='';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string[] Error codes (or messages)
|
* @var string[] Error codes (or messages)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -41,8 +41,16 @@ require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
|||||||
*/
|
*/
|
||||||
class Adherent extends CommonObject
|
class Adherent extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='member';
|
public $element='member';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='adherent';
|
public $table_element='adherent';
|
||||||
|
|
||||||
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
|
|
||||||
var $mesgs;
|
var $mesgs;
|
||||||
@@ -532,6 +540,13 @@ class Adherent extends CommonObject
|
|||||||
$luser->pass=$this->pass;
|
$luser->pass=$this->pass;
|
||||||
$luser->societe_id=$this->societe;
|
$luser->societe_id=$this->societe;
|
||||||
|
|
||||||
|
$luser->birth=$this->birth;
|
||||||
|
$luser->address=$this->address;
|
||||||
|
$luser->zip=$this->zip;
|
||||||
|
$luser->town=$this->town;
|
||||||
|
$luser->country_id=$this->country_id;
|
||||||
|
$luser->state_id=$this->state_id;
|
||||||
|
|
||||||
$luser->email=$this->email;
|
$luser->email=$this->email;
|
||||||
$luser->skype=$this->skype;
|
$luser->skype=$this->skype;
|
||||||
$luser->office_phone=$this->phone;
|
$luser->office_phone=$this->phone;
|
||||||
|
|||||||
@@ -32,8 +32,16 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class AdherentType extends CommonObject
|
class AdherentType extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element = 'adherent_type';
|
public $table_element = 'adherent_type';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element = 'adherent_type';
|
public $element = 'adherent_type';
|
||||||
|
|
||||||
public $picto = 'group';
|
public $picto = 'group';
|
||||||
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ include_once DOL_DOCUMENT_ROOT . '/adherents/class/subscription.class.php';
|
|||||||
*/
|
*/
|
||||||
class AdherentStats extends Stats
|
class AdherentStats extends Stats
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element;
|
public $table_element;
|
||||||
|
|
||||||
var $socid;
|
var $socid;
|
||||||
|
|||||||
@@ -32,8 +32,16 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class Subscription extends CommonObject
|
class Subscription extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='subscription';
|
public $element='subscription';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='subscription';
|
public $table_element='subscription';
|
||||||
|
|
||||||
public $picto='payment';
|
public $picto='payment';
|
||||||
|
|
||||||
var $datec; // Date creation
|
var $datec; // Date creation
|
||||||
|
|||||||
@@ -65,27 +65,27 @@ complete_substitutions_array($substitutionarrayfortest, $langs);
|
|||||||
|
|
||||||
if ($action == 'update' && empty($_POST["cancel"]))
|
if ($action == 'update' && empty($_POST["cancel"]))
|
||||||
{
|
{
|
||||||
dolibarr_set_const($db, "MAIN_DISABLE_ALL_MAILS", GETPOST("MAIN_DISABLE_ALL_MAILS"),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_DISABLE_ALL_MAILS", GETPOST("MAIN_DISABLE_ALL_MAILS"), 'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_FORCE_SENDTO", GETPOST("MAIN_MAIL_FORCE_SENDTO"),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_FORCE_SENDTO", GETPOST("MAIN_MAIL_FORCE_SENDTO"), 'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_ENABLED_USER_DEST_SELECT", GETPOST("MAIN_MAIL_ENABLED_USER_DEST_SELECT"),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_ENABLED_USER_DEST_SELECT", GETPOST("MAIN_MAIL_ENABLED_USER_DEST_SELECT"), 'chaine', 0, '', $conf->entity);
|
||||||
// Send mode parameters
|
// Send mode parameters
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_SENDMODE", GETPOST("MAIN_MAIL_SENDMODE"),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_SENDMODE", GETPOST("MAIN_MAIL_SENDMODE"), 'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_SMTP_PORT", GETPOST("MAIN_MAIL_SMTP_PORT"),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_SMTP_PORT", GETPOST("MAIN_MAIL_SMTP_PORT"), 'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_SMTP_SERVER", GETPOST("MAIN_MAIL_SMTP_SERVER"),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_SMTP_SERVER", GETPOST("MAIN_MAIL_SMTP_SERVER"), 'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_SMTPS_ID", GETPOST("MAIN_MAIL_SMTPS_ID"), 'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_SMTPS_ID", GETPOST("MAIN_MAIL_SMTPS_ID"), 'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_SMTPS_PW", GETPOST("MAIN_MAIL_SMTPS_PW"), 'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_SMTPS_PW", GETPOST("MAIN_MAIL_SMTPS_PW"), 'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_TLS", GETPOST("MAIN_MAIL_EMAIL_TLS"),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_TLS", GETPOST("MAIN_MAIL_EMAIL_TLS"), 'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_STARTTLS", GETPOST("MAIN_MAIL_EMAIL_STARTTLS"),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_STARTTLS", GETPOST("MAIN_MAIL_EMAIL_STARTTLS"), 'chaine', 0, '', $conf->entity);
|
||||||
|
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_DKIM_ENABLED", GETPOST("MAIN_MAIL_EMAIL_DKIM_ENABLED"),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_DKIM_ENABLED", GETPOST("MAIN_MAIL_EMAIL_DKIM_ENABLED"), 'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_DKIM_DOMAIN", GETPOST("MAIN_MAIL_EMAIL_DKIM_DOMAIN"),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_DKIM_DOMAIN", GETPOST("MAIN_MAIL_EMAIL_DKIM_DOMAIN"), 'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_DKIM_SELECTOR", GETPOST("MAIN_MAIL_EMAIL_DKIM_SELECTOR"),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_DKIM_SELECTOR", GETPOST("MAIN_MAIL_EMAIL_DKIM_SELECTOR"), 'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_DKIM_PRIVATE_KEY", GETPOST("MAIN_MAIL_EMAIL_DKIM_PRIVATE_KEY"),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_DKIM_PRIVATE_KEY", GETPOST("MAIN_MAIL_EMAIL_DKIM_PRIVATE_KEY"), 'chaine', 0, '', $conf->entity);
|
||||||
// Content parameters
|
// Content parameters
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_FROM", GETPOST("MAIN_MAIL_EMAIL_FROM"), 'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_EMAIL_FROM", GETPOST("MAIN_MAIL_EMAIL_FROM"), 'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_ERRORS_TO", GETPOST("MAIN_MAIL_ERRORS_TO"), 'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_ERRORS_TO", GETPOST("MAIN_MAIL_ERRORS_TO"), 'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_AUTOCOPY_TO", GETPOST("MAIN_MAIL_AUTOCOPY_TO"),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_AUTOCOPY_TO", GETPOST("MAIN_MAIL_AUTOCOPY_TO"),'chaine', 0, '', $conf->entity);
|
||||||
dolibarr_set_const($db, 'MAIN_MAIL_DEFAULT_FROMTYPE', GETPOST('MAIN_MAIL_DEFAULT_FROMTYPE'),'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, 'MAIN_MAIL_DEFAULT_FROMTYPE', GETPOST('MAIN_MAIL_DEFAULT_FROMTYPE'), 'chaine', 0, '', $conf->entity);
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
@@ -54,29 +54,29 @@ if ($cancel) {
|
|||||||
|
|
||||||
if ($action == 'update')
|
if ($action == 'update')
|
||||||
{
|
{
|
||||||
dolibarr_set_const($db, "MAIN_PDF_FORMAT", $_POST["MAIN_PDF_FORMAT"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_PDF_FORMAT", $_POST["MAIN_PDF_FORMAT"],'chaine',0,'', $conf->entity);
|
||||||
|
|
||||||
dolibarr_set_const($db, "MAIN_PDF_MARGIN_LEFT", $_POST["MAIN_PDF_MARGIN_LEFT"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_PDF_MARGIN_LEFT", $_POST["MAIN_PDF_MARGIN_LEFT"],'chaine',0,'', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_PDF_MARGIN_RIGHT", $_POST["MAIN_PDF_MARGIN_RIGHT"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_PDF_MARGIN_RIGHT", $_POST["MAIN_PDF_MARGIN_RIGHT"],'chaine',0,'', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_PDF_MARGIN_TOP", $_POST["MAIN_PDF_MARGIN_TOP"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_PDF_MARGIN_TOP", $_POST["MAIN_PDF_MARGIN_TOP"],'chaine',0,'', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_PDF_MARGIN_BOTTOM", $_POST["MAIN_PDF_MARGIN_BOTTOM"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_PDF_MARGIN_BOTTOM", $_POST["MAIN_PDF_MARGIN_BOTTOM"],'chaine',0,'', $conf->entity);
|
||||||
|
|
||||||
dolibarr_set_const($db, "MAIN_PROFID1_IN_ADDRESS", $_POST["MAIN_PROFID1_IN_ADDRESS"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_PROFID1_IN_ADDRESS", $_POST["MAIN_PROFID1_IN_ADDRESS"],'chaine',0,'', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_PROFID2_IN_ADDRESS", $_POST["MAIN_PROFID2_IN_ADDRESS"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_PROFID2_IN_ADDRESS", $_POST["MAIN_PROFID2_IN_ADDRESS"],'chaine',0,'', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_PROFID3_IN_ADDRESS", $_POST["MAIN_PROFID3_IN_ADDRESS"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_PROFID3_IN_ADDRESS", $_POST["MAIN_PROFID3_IN_ADDRESS"],'chaine',0,'', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_PROFID4_IN_ADDRESS", $_POST["MAIN_PROFID4_IN_ADDRESS"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_PROFID4_IN_ADDRESS", $_POST["MAIN_PROFID4_IN_ADDRESS"],'chaine',0,'', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT", $_POST["MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT", $_POST["MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT"],'chaine',0,'', $conf->entity);
|
||||||
|
|
||||||
dolibarr_set_const($db, "MAIN_TVAINTRA_NOT_IN_ADDRESS", $_POST["MAIN_TVAINTRA_NOT_IN_ADDRESS"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_TVAINTRA_NOT_IN_ADDRESS", $_POST["MAIN_TVAINTRA_NOT_IN_ADDRESS"],'chaine',0,'', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS", $_POST["MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS", $_POST["MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS"],'chaine',0,'', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_GENERATE_DOCUMENTS_HIDE_DESC", $_POST["MAIN_GENERATE_DOCUMENTS_HIDE_DESC"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_GENERATE_DOCUMENTS_HIDE_DESC", $_POST["MAIN_GENERATE_DOCUMENTS_HIDE_DESC"],'chaine',0,'', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_GENERATE_DOCUMENTS_HIDE_REF", $_POST["MAIN_GENERATE_DOCUMENTS_HIDE_REF"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_GENERATE_DOCUMENTS_HIDE_REF", $_POST["MAIN_GENERATE_DOCUMENTS_HIDE_REF"],'chaine',0,'', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_PDF_USE_ISO_LOCATION", $_POST["MAIN_PDF_USE_ISO_LOCATION"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_PDF_USE_ISO_LOCATION", $_POST["MAIN_PDF_USE_ISO_LOCATION"],'chaine',0,'', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS", $_POST["MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS", $_POST["MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS"],'chaine',0,'', $conf->entity);
|
||||||
|
|
||||||
|
|
||||||
dolibarr_set_const($db, "MAIN_PDF_MAIN_HIDE_SECOND_TAX", $_POST["MAIN_PDF_MAIN_HIDE_SECOND_TAX"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_PDF_MAIN_HIDE_SECOND_TAX", $_POST["MAIN_PDF_MAIN_HIDE_SECOND_TAX"],'chaine',0,'', $conf->entity);
|
||||||
dolibarr_set_const($db, "MAIN_PDF_MAIN_HIDE_THIRD_TAX", $_POST["MAIN_PDF_MAIN_HIDE_THIRD_TAX"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_PDF_MAIN_HIDE_THIRD_TAX", $_POST["MAIN_PDF_MAIN_HIDE_THIRD_TAX"],'chaine',0,'', $conf->entity);
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
@@ -436,14 +436,14 @@ if ($mode == 'template' && $user->admin)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// to remove after test
|
// to remove after test
|
||||||
$object=new stdClass();
|
// $object=new stdClass();
|
||||||
$object->date_time = '2015-11-02 22:30:25';
|
// $object->date_time = '2015-11-02 22:30:25';
|
||||||
$object->id = 1234;
|
// $object->id = 1234;
|
||||||
$object->customer_firstname = 'John';
|
// $object->customer_firstname = 'John';
|
||||||
$object->customer_lastname = 'Deuf';
|
// $object->customer_lastname = 'Deuf';
|
||||||
$object->vendor_firstname = 'Jim';
|
// $object->vendor_firstname = 'Jim';
|
||||||
$object->vendor_lastname = 'Big';
|
// $object->vendor_lastname = 'Big';
|
||||||
$object->barcode = '3700123862396';
|
// $object->barcode = '3700123862396';
|
||||||
//$printer->sendToPrinter($object, 1, 16);
|
//$printer->sendToPrinter($object, 1, 16);
|
||||||
//setEventMessages($printer->error, $printer->errors, 'errors');
|
//setEventMessages($printer->error, $printer->errors, 'errors');
|
||||||
|
|
||||||
|
|||||||
@@ -48,12 +48,12 @@ $action=GETPOST('action','aZ09');
|
|||||||
|
|
||||||
if ($action == 'update' && empty($_POST["cancel"]))
|
if ($action == 'update' && empty($_POST["cancel"]))
|
||||||
{
|
{
|
||||||
dolibarr_set_const($db, "MAIN_DISABLE_ALL_SMS", $_POST["MAIN_DISABLE_ALL_SMS"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_DISABLE_ALL_SMS", $_POST["MAIN_DISABLE_ALL_SMS"], 'chaine', 0, '', $conf->entity);
|
||||||
|
|
||||||
dolibarr_set_const($db, "MAIN_SMS_SENDMODE", $_POST["MAIN_SMS_SENDMODE"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_SMS_SENDMODE", $_POST["MAIN_SMS_SENDMODE"], 'chaine', 0, '', $conf->entity);
|
||||||
|
|
||||||
dolibarr_set_const($db, "MAIN_MAIL_SMS_FROM", $_POST["MAIN_MAIL_SMS_FROM"],'chaine',0,'',$conf->entity);
|
dolibarr_set_const($db, "MAIN_MAIL_SMS_FROM", $_POST["MAIN_MAIL_SMS_FROM"], 'chaine', 0, '', $conf->entity);
|
||||||
//dolibarr_set_const($db, "MAIN_MAIL_AUTOCOPY_TO", $_POST["MAIN_MAIL_AUTOCOPY_TO"],'chaine',0,'',$conf->entity);
|
//dolibarr_set_const($db, "MAIN_MAIL_AUTOCOPY_TO", $_POST["MAIN_MAIL_AUTOCOPY_TO"], 'chaine', 0, '', $conf->entity);
|
||||||
|
|
||||||
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
header("Location: ".$_SERVER["PHP_SELF"]."?mainmenu=home&leftmenu=setup");
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
@@ -35,18 +35,22 @@ class Asset extends CommonObject
|
|||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element = 'asset';
|
public $element = 'asset';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
*/
|
*/
|
||||||
public $table_element = 'asset';
|
public $table_element = 'asset';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int Does module support multicompany module ? 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
* @var int Does module support multicompany module ? 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
*/
|
*/
|
||||||
public $ismultientitymanaged = 0;
|
public $ismultientitymanaged = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int Does asset support extrafields ? 0=No, 1=Yes
|
* @var int Does asset support extrafields ? 0=No, 1=Yes
|
||||||
*/
|
*/
|
||||||
public $isextrafieldmanaged = 1;
|
public $isextrafieldmanaged = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string String with name of icon for asset. Must be the part after the 'object_' into object_asset.png
|
* @var string String with name of icon for asset. Must be the part after the 'object_' into object_asset.png
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -29,8 +29,16 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class AssetType extends CommonObject
|
class AssetType extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element = 'asset_type';
|
public $table_element = 'asset_type';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element = 'asset_type';
|
public $element = 'asset_type';
|
||||||
|
|
||||||
public $picto = 'group';
|
public $picto = 'group';
|
||||||
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,10 @@ class BlockedLog
|
|||||||
public $entity;
|
public $entity;
|
||||||
|
|
||||||
public $error = '';
|
public $error = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string[] Error codes (or messages)
|
||||||
|
*/
|
||||||
public $errors = array();
|
public $errors = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -28,14 +28,29 @@
|
|||||||
*/
|
*/
|
||||||
class Bookmark extends CommonObject
|
class Bookmark extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='bookmark';
|
public $element='bookmark';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='bookmark';
|
public $table_element='bookmark';
|
||||||
|
|
||||||
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
public $picto = 'bookmark';
|
public $picto = 'bookmark';
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int ID
|
||||||
|
*/
|
||||||
|
public $id;
|
||||||
|
|
||||||
var $id;
|
|
||||||
var $fk_user;
|
var $fk_user;
|
||||||
var $datec;
|
var $datec;
|
||||||
var $url;
|
var $url;
|
||||||
|
|||||||
@@ -148,7 +148,14 @@ class Categorie extends CommonObject
|
|||||||
'project' => 'projet',
|
'project' => 'projet',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='category';
|
public $element='category';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='categorie';
|
public $table_element='categorie';
|
||||||
|
|
||||||
public $fk_parent;
|
public $fk_parent;
|
||||||
|
|||||||
@@ -34,15 +34,25 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class ActionComm extends CommonObject
|
class ActionComm extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='action';
|
public $element='action';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element = 'actioncomm';
|
public $table_element = 'actioncomm';
|
||||||
|
|
||||||
public $table_rowid = 'id';
|
public $table_rowid = 'id';
|
||||||
public $picto='action';
|
public $picto='action';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
public $ismultientitymanaged = 1;
|
public $ismultientitymanaged = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user, 2=Same than 1 but accept record if fksoc is empty
|
* 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user, 2=Same than 1 but accept record if fksoc is empty
|
||||||
* @var integer
|
* @var integer
|
||||||
@@ -53,7 +63,7 @@ class ActionComm extends CommonObject
|
|||||||
* Id of the event
|
* Id of the event
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
var $id;
|
public $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Id of the event. Use $id as possible
|
* Id of the event. Use $id as possible
|
||||||
@@ -67,7 +77,10 @@ class ActionComm extends CommonObject
|
|||||||
var $type_color; // Color into parent table llx_c_actioncomm (used only if option to use type is set)
|
var $type_color; // Color into parent table llx_c_actioncomm (used only if option to use type is set)
|
||||||
var $code; // Free code to identify action. Ie: Agenda trigger add here AC_TRIGGERNAME ('AC_COMPANY_CREATE', 'AC_PROPAL_VALIDATE', ...)
|
var $code; // Free code to identify action. Ie: Agenda trigger add here AC_TRIGGERNAME ('AC_COMPANY_CREATE', 'AC_PROPAL_VALIDATE', ...)
|
||||||
|
|
||||||
var $label;
|
/**
|
||||||
|
* @var string proper name for given parameter
|
||||||
|
*/
|
||||||
|
public $label;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
@@ -885,7 +898,7 @@ class ActionComm extends CommonObject
|
|||||||
$val=array('id'=>$val);
|
$val=array('id'=>$val);
|
||||||
}
|
}
|
||||||
$sql ="INSERT INTO ".MAIN_DB_PREFIX."actioncomm_resources(fk_actioncomm, element_type, fk_element, mandatory, transparency, answer_status)";
|
$sql ="INSERT INTO ".MAIN_DB_PREFIX."actioncomm_resources(fk_actioncomm, element_type, fk_element, mandatory, transparency, answer_status)";
|
||||||
$sql.=" VALUES(".$this->id.", 'user', ".$val['id'].", ".(empty($val['manadatory'])?'0':$val['manadatory']).", ".(empty($val['transparency'])?'0':$val['transparency']).", ".(empty($val['answer_status'])?'0':$val['answer_status']).")";
|
$sql.=" VALUES(".$this->id.", 'user', ".$val['id'].", ".(empty($val['mandatory'])?'0':$val['mandatory']).", ".(empty($val['transparency'])?'0':$val['transparency']).", ".(empty($val['answer_status'])?'0':$val['answer_status']).")";
|
||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if (! $resql)
|
if (! $resql)
|
||||||
|
|||||||
@@ -34,14 +34,17 @@ class ActionCommReminder extends CommonObject
|
|||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element = 'actioncomm_reminder';
|
public $element = 'actioncomm_reminder';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
*/
|
*/
|
||||||
public $table_element = 'actioncomm_reminder';
|
public $table_element = 'actioncomm_reminder';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array Does actioncommreminder support multicompany module ? 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
* @var array Does actioncommreminder support multicompany module ? 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
*/
|
*/
|
||||||
public $ismultientitymanaged = 0;
|
public $ismultientitymanaged = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string String with name of icon for actioncommreminder. Must be the part after the 'object_' into object_actioncommreminder.png
|
* @var string String with name of icon for actioncommreminder. Must be the part after the 'object_' into object_actioncommreminder.png
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -33,14 +33,25 @@ class CActionComm
|
|||||||
*/
|
*/
|
||||||
public $error='';
|
public $error='';
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $id;
|
/**
|
||||||
|
* @var int ID
|
||||||
|
*/
|
||||||
|
public $id;
|
||||||
|
|
||||||
var $code;
|
var $code;
|
||||||
var $type;
|
var $type;
|
||||||
var $libelle; // deprecated
|
var $libelle; // deprecated
|
||||||
var $label;
|
|
||||||
|
/**
|
||||||
|
* @var string proper name for given parameter
|
||||||
|
*/
|
||||||
|
public $label;
|
||||||
|
|
||||||
var $active;
|
var $active;
|
||||||
var $color;
|
var $color;
|
||||||
var $picto;
|
var $picto;
|
||||||
|
|||||||
@@ -582,7 +582,7 @@ if ($object->id > 0)
|
|||||||
$link=DOL_URL_ROOT.'/comm/propal/list.php?socid='.$object->id;
|
$link=DOL_URL_ROOT.'/comm/propal/list.php?socid='.$object->id;
|
||||||
$icon='bill';
|
$icon='bill';
|
||||||
if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">';
|
if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">';
|
||||||
$boxstat.='<div class="boxstats">';
|
$boxstat.='<div class="boxstats" title="'.dol_escape_htmltag($text).'">';
|
||||||
$boxstat.='<span class="boxstatstext">'.img_object("",$icon).' '.$text.'</span><br>';
|
$boxstat.='<span class="boxstatstext">'.img_object("",$icon).' '.$text.'</span><br>';
|
||||||
$boxstat.='<span class="boxstatsindicator">'.price($outstandingTotal, 1, $langs, 1, -1, -1, $conf->currency).'</span>';
|
$boxstat.='<span class="boxstatsindicator">'.price($outstandingTotal, 1, $langs, 1, -1, -1, $conf->currency).'</span>';
|
||||||
$boxstat.='</div>';
|
$boxstat.='</div>';
|
||||||
@@ -600,7 +600,7 @@ if ($object->id > 0)
|
|||||||
$link=DOL_URL_ROOT.'/commande/list.php?socid='.$object->id;
|
$link=DOL_URL_ROOT.'/commande/list.php?socid='.$object->id;
|
||||||
$icon='bill';
|
$icon='bill';
|
||||||
if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">';
|
if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">';
|
||||||
$boxstat.='<div class="boxstats">';
|
$boxstat.='<div class="boxstats" title="'.dol_escape_htmltag($text).'">';
|
||||||
$boxstat.='<span class="boxstatstext">'.img_object("",$icon).' '.$text.'</span><br>';
|
$boxstat.='<span class="boxstatstext">'.img_object("",$icon).' '.$text.'</span><br>';
|
||||||
$boxstat.='<span class="boxstatsindicator">'.price($outstandingTotal, 1, $langs, 1, -1, -1, $conf->currency).'</span>';
|
$boxstat.='<span class="boxstatsindicator">'.price($outstandingTotal, 1, $langs, 1, -1, -1, $conf->currency).'</span>';
|
||||||
$boxstat.='</div>';
|
$boxstat.='</div>';
|
||||||
@@ -618,7 +618,7 @@ if ($object->id > 0)
|
|||||||
$link=DOL_URL_ROOT.'/compta/facture/list.php?socid='.$object->id;
|
$link=DOL_URL_ROOT.'/compta/facture/list.php?socid='.$object->id;
|
||||||
$icon='bill';
|
$icon='bill';
|
||||||
if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">';
|
if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">';
|
||||||
$boxstat.='<div class="boxstats">';
|
$boxstat.='<div class="boxstats" title="'.dol_escape_htmltag($text).'">';
|
||||||
$boxstat.='<span class="boxstatstext">'.img_object("",$icon).' '.$text.'</span><br>';
|
$boxstat.='<span class="boxstatstext">'.img_object("",$icon).' '.$text.'</span><br>';
|
||||||
$boxstat.='<span class="boxstatsindicator">'.price($outstandingTotal, 1, $langs, 1, -1, -1, $conf->currency).'</span>';
|
$boxstat.='<span class="boxstatsindicator">'.price($outstandingTotal, 1, $langs, 1, -1, -1, $conf->currency).'</span>';
|
||||||
$boxstat.='</div>';
|
$boxstat.='</div>';
|
||||||
@@ -634,7 +634,7 @@ if ($object->id > 0)
|
|||||||
$link=DOL_URL_ROOT.'/compta/recap-compta.php?socid='.$object->id;
|
$link=DOL_URL_ROOT.'/compta/recap-compta.php?socid='.$object->id;
|
||||||
$icon='bill';
|
$icon='bill';
|
||||||
if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">';
|
if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">';
|
||||||
$boxstat.='<div class="boxstats">';
|
$boxstat.='<div class="boxstats" title="'.dol_escape_htmltag($text).'">';
|
||||||
$boxstat.='<span class="boxstatstext">'.img_object("",$icon).' '.$text.'</span><br>';
|
$boxstat.='<span class="boxstatstext">'.img_object("",$icon).' '.$text.'</span><br>';
|
||||||
$boxstat.='<span class="boxstatsindicator'.($outstandingOpened>0?' amountremaintopay':'').'">'.price($outstandingOpened, 1, $langs, 1, -1, -1, $conf->currency).$warn.'</span>';
|
$boxstat.='<span class="boxstatsindicator'.($outstandingOpened>0?' amountremaintopay':'').'">'.price($outstandingOpened, 1, $langs, 1, -1, -1, $conf->currency).$warn.'</span>';
|
||||||
$boxstat.='</div>';
|
$boxstat.='</div>';
|
||||||
|
|||||||
@@ -326,8 +326,6 @@ if ($object->fetch($id) >= 0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Si le module mailing est qualifie
|
// Si le module mailing est qualifie
|
||||||
if ($qualified)
|
|
||||||
{
|
|
||||||
if ($allowaddtarget)
|
if ($allowaddtarget)
|
||||||
{
|
{
|
||||||
print '<form class="oddeven tagtr" name="'.$modulename.'" action="'.$_SERVER['PHP_SELF'].'?action=add&id='.$object->id.'&module='.$modulename.'" method="POST" enctype="multipart/form-data">';
|
print '<form class="oddeven tagtr" name="'.$modulename.'" action="'.$_SERVER['PHP_SELF'].'?action=add&id='.$object->id.'&module='.$modulename.'" method="POST" enctype="multipart/form-data">';
|
||||||
|
|||||||
@@ -28,23 +28,35 @@
|
|||||||
*/
|
*/
|
||||||
class AdvanceTargetingMailing extends CommonObject
|
class AdvanceTargetingMailing extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $db; //!< To store db handler
|
|
||||||
/**
|
/**
|
||||||
* @var string Error code (or message)
|
* @var string Error code (or message)
|
||||||
*/
|
*/
|
||||||
public $error='';
|
public $error='';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string[] Error codes (or messages)
|
* @var string[] Error codes (or messages)
|
||||||
*/
|
*/
|
||||||
public $errors = array();
|
public $errors = array();
|
||||||
|
|
||||||
var $element='advtargetemailing'; //!< Id that identify managed objects
|
/**
|
||||||
var $table_element='advtargetemailing'; //!< Name of table without prefix where object is stored
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='advtargetemailing';
|
||||||
|
|
||||||
var $id;
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
|
public $table_element='advtargetemailing';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int ID
|
||||||
|
*/
|
||||||
|
public $id;
|
||||||
|
|
||||||
var $name;
|
var $name;
|
||||||
var $entity;
|
var $entity;
|
||||||
|
|||||||
@@ -16,9 +16,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file comm/mailing/class/html.formadvtragetemaling.class.php
|
* \file comm/mailing/class/html.formadvtargetemailing.class.php
|
||||||
* \ingroup mailing
|
* \ingroup mailing
|
||||||
* \brief Fichier de la classe des fonctions predefinie de composants html advtargetemaling
|
* \brief Fichier de la classe des fonctions predefinies de composant html advtargetemailing
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -26,7 +26,11 @@
|
|||||||
*/
|
*/
|
||||||
class FormAdvTargetEmailing extends Form
|
class FormAdvTargetEmailing extends Form
|
||||||
{
|
{
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Error code (or message)
|
* @var string Error code (or message)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -31,8 +31,16 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class Mailing extends CommonObject
|
class Mailing extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='mailing';
|
public $element='mailing';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='mailing';
|
public $table_element='mailing';
|
||||||
|
|
||||||
public $picto='email';
|
public $picto='email';
|
||||||
|
|
||||||
var $titre;
|
var $titre;
|
||||||
|
|||||||
@@ -45,16 +45,26 @@ require_once DOL_DOCUMENT_ROOT .'/multicurrency/class/multicurrency.class.php';
|
|||||||
*/
|
*/
|
||||||
class Propal extends CommonObject
|
class Propal extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='propal';
|
public $element='propal';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='propal';
|
public $table_element='propal';
|
||||||
|
|
||||||
public $table_element_line='propaldet';
|
public $table_element_line='propaldet';
|
||||||
public $fk_element='fk_propal';
|
public $fk_element='fk_propal';
|
||||||
public $picto='propal';
|
public $picto='propal';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
public $ismultientitymanaged = 1;
|
public $ismultientitymanaged = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user
|
* 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user
|
||||||
* @var integer
|
* @var integer
|
||||||
@@ -1325,6 +1335,7 @@ class Propal extends CommonObject
|
|||||||
$sql.= ", p.fk_shipping_method";
|
$sql.= ", p.fk_shipping_method";
|
||||||
$sql.= ", p.fk_incoterms, p.location_incoterms";
|
$sql.= ", p.fk_incoterms, p.location_incoterms";
|
||||||
$sql.= ", p.fk_multicurrency, p.multicurrency_code, p.multicurrency_tx, p.multicurrency_total_ht, p.multicurrency_total_tva, p.multicurrency_total_ttc";
|
$sql.= ", p.fk_multicurrency, p.multicurrency_code, p.multicurrency_tx, p.multicurrency_total_ht, p.multicurrency_total_tva, p.multicurrency_total_ttc";
|
||||||
|
$sql.= ", p.tms as date_modification";
|
||||||
$sql.= ", i.libelle as libelle_incoterms";
|
$sql.= ", i.libelle as libelle_incoterms";
|
||||||
$sql.= ", c.label as statut_label";
|
$sql.= ", c.label as statut_label";
|
||||||
$sql.= ", ca.code as availability_code, ca.label as availability";
|
$sql.= ", ca.code as availability_code, ca.label as availability";
|
||||||
@@ -1381,6 +1392,7 @@ class Propal extends CommonObject
|
|||||||
$this->datev = $this->db->jdate($obj->datev); // TODO deprecated
|
$this->datev = $this->db->jdate($obj->datev); // TODO deprecated
|
||||||
$this->date_creation = $this->db->jdate($obj->datec); //Creation date
|
$this->date_creation = $this->db->jdate($obj->datec); //Creation date
|
||||||
$this->date_validation = $this->db->jdate($obj->datev); //Validation date
|
$this->date_validation = $this->db->jdate($obj->datev); //Validation date
|
||||||
|
$this->date_modification = $this->db->jdate($obj->date_modification); // tms
|
||||||
$this->date = $this->db->jdate($obj->dp); // Proposal date
|
$this->date = $this->db->jdate($obj->dp); // Proposal date
|
||||||
$this->datep = $this->db->jdate($obj->dp); // deprecated
|
$this->datep = $this->db->jdate($obj->dp); // deprecated
|
||||||
$this->fin_validite = $this->db->jdate($obj->dfv);
|
$this->fin_validite = $this->db->jdate($obj->dfv);
|
||||||
@@ -3668,7 +3680,14 @@ class Propal extends CommonObject
|
|||||||
*/
|
*/
|
||||||
class PropaleLigne extends CommonObjectLine
|
class PropaleLigne extends CommonObjectLine
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='propaldet';
|
public $element='propaldet';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='propaldet';
|
public $table_element='propaldet';
|
||||||
|
|
||||||
var $oldline;
|
var $oldline;
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ include_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php';
|
|||||||
*/
|
*/
|
||||||
class PropaleStats extends Stats
|
class PropaleStats extends Stats
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element;
|
public $table_element;
|
||||||
|
|
||||||
var $socid;
|
var $socid;
|
||||||
|
|||||||
@@ -42,8 +42,16 @@ require_once DOL_DOCUMENT_ROOT .'/multicurrency/class/multicurrency.class.php';
|
|||||||
*/
|
*/
|
||||||
class Commande extends CommonOrder
|
class Commande extends CommonOrder
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='commande';
|
public $element='commande';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='commande';
|
public $table_element='commande';
|
||||||
|
|
||||||
public $table_element_line = 'commandedet';
|
public $table_element_line = 'commandedet';
|
||||||
public $class_element_line = 'OrderLine';
|
public $class_element_line = 'OrderLine';
|
||||||
public $fk_element = 'fk_commande';
|
public $fk_element = 'fk_commande';
|
||||||
@@ -3796,7 +3804,11 @@ class Commande extends CommonOrder
|
|||||||
*/
|
*/
|
||||||
class OrderLine extends CommonOrderLine
|
class OrderLine extends CommonOrderLine
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='commandedet';
|
public $element='commandedet';
|
||||||
|
|
||||||
public $table_element='commandedet';
|
public $table_element='commandedet';
|
||||||
|
|
||||||
var $oldline;
|
var $oldline;
|
||||||
@@ -3818,7 +3830,12 @@ class OrderLine extends CommonOrderLine
|
|||||||
// From llx_commandedet
|
// From llx_commandedet
|
||||||
var $fk_parent_line;
|
var $fk_parent_line;
|
||||||
var $fk_facture;
|
var $fk_facture;
|
||||||
var $label;
|
|
||||||
|
/**
|
||||||
|
* @var string proper name for given parameter
|
||||||
|
*/
|
||||||
|
public $label;
|
||||||
|
|
||||||
var $fk_remise_except;
|
var $fk_remise_except;
|
||||||
var $rang = 0;
|
var $rang = 0;
|
||||||
var $fk_fournprice;
|
var $fk_fournprice;
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ include_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php';
|
|||||||
*/
|
*/
|
||||||
class CommandeStats extends Stats
|
class CommandeStats extends Stats
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element;
|
public $table_element;
|
||||||
|
|
||||||
var $socid;
|
var $socid;
|
||||||
|
|||||||
@@ -36,8 +36,16 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class Account extends CommonObject
|
class Account extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element = 'bank_account';
|
public $element = 'bank_account';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element = 'bank_account';
|
public $table_element = 'bank_account';
|
||||||
|
|
||||||
public $picto = 'account';
|
public $picto = 'account';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1640,13 +1648,33 @@ class Account extends CommonObject
|
|||||||
*/
|
*/
|
||||||
class AccountLine extends CommonObject
|
class AccountLine extends CommonObject
|
||||||
{
|
{
|
||||||
var $error;
|
/**
|
||||||
var $db;
|
* @var string Error code (or message)
|
||||||
var $element='bank';
|
*/
|
||||||
var $table_element='bank';
|
public $error='';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='bank';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
|
public $table_element='bank';
|
||||||
|
|
||||||
var $picto = 'generic';
|
var $picto = 'generic';
|
||||||
|
|
||||||
var $id;
|
/**
|
||||||
|
* @var int ID
|
||||||
|
*/
|
||||||
|
public $id;
|
||||||
|
|
||||||
var $ref;
|
var $ref;
|
||||||
var $datec;
|
var $datec;
|
||||||
var $dateo;
|
var $dateo;
|
||||||
@@ -1656,7 +1684,12 @@ class AccountLine extends CommonObject
|
|||||||
*/
|
*/
|
||||||
var $datev;
|
var $datev;
|
||||||
var $amount;
|
var $amount;
|
||||||
var $label;
|
|
||||||
|
/**
|
||||||
|
* @var string proper name for given parameter
|
||||||
|
*/
|
||||||
|
public $label;
|
||||||
|
|
||||||
var $note;
|
var $note;
|
||||||
var $fk_user_author;
|
var $fk_user_author;
|
||||||
var $fk_user_rappro;
|
var $fk_user_rappro;
|
||||||
|
|||||||
@@ -30,11 +30,23 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class PaymentVarious extends CommonObject
|
class PaymentVarious extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='variouspayment'; //!< Id that identify managed objects
|
/**
|
||||||
public $table_element='payment_various'; //!< Name of table without prefix where object is stored
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='variouspayment';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
|
public $table_element='payment_various';
|
||||||
|
|
||||||
public $picto = 'bill';
|
public $picto = 'bill';
|
||||||
|
|
||||||
var $id;
|
/**
|
||||||
|
* @var int ID
|
||||||
|
*/
|
||||||
|
public $id;
|
||||||
|
|
||||||
var $ref;
|
var $ref;
|
||||||
var $tms;
|
var $tms;
|
||||||
var $datep;
|
var $datep;
|
||||||
@@ -43,7 +55,12 @@ class PaymentVarious extends CommonObject
|
|||||||
var $amount;
|
var $amount;
|
||||||
var $type_payment;
|
var $type_payment;
|
||||||
var $num_payment;
|
var $num_payment;
|
||||||
var $label;
|
|
||||||
|
/**
|
||||||
|
* @var string proper name for given parameter
|
||||||
|
*/
|
||||||
|
public $label;
|
||||||
|
|
||||||
var $accountancy_code;
|
var $accountancy_code;
|
||||||
var $fk_project;
|
var $fk_project;
|
||||||
var $fk_bank;
|
var $fk_bank;
|
||||||
|
|||||||
@@ -31,8 +31,16 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class Deplacement extends CommonObject
|
class Deplacement extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='deplacement';
|
public $element='deplacement';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='deplacement';
|
public $table_element='deplacement';
|
||||||
|
|
||||||
public $table_element_line = '';
|
public $table_element_line = '';
|
||||||
public $fk_element = '';
|
public $fk_element = '';
|
||||||
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ include_once DOL_DOCUMENT_ROOT . '/compta/deplacement/class/deplacement.class.ph
|
|||||||
*/
|
*/
|
||||||
class DeplacementStats extends Stats
|
class DeplacementStats extends Stats
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element;
|
public $table_element;
|
||||||
|
|
||||||
var $socid;
|
var $socid;
|
||||||
|
|||||||
@@ -39,8 +39,16 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
|||||||
*/
|
*/
|
||||||
class FactureRec extends CommonInvoice
|
class FactureRec extends CommonInvoice
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='facturerec';
|
public $element='facturerec';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='facture_rec';
|
public $table_element='facture_rec';
|
||||||
|
|
||||||
public $table_element_line='facturedet_rec';
|
public $table_element_line='facturedet_rec';
|
||||||
public $fk_element='fk_facture';
|
public $fk_element='fk_facture';
|
||||||
public $picto='bill';
|
public $picto='bill';
|
||||||
@@ -1641,7 +1649,14 @@ class FactureRec extends CommonInvoice
|
|||||||
*/
|
*/
|
||||||
class FactureLigneRec extends CommonInvoiceLine
|
class FactureLigneRec extends CommonInvoiceLine
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='facturedetrec';
|
public $element='facturedetrec';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='facturedet_rec';
|
public $table_element='facturedet_rec';
|
||||||
|
|
||||||
var $date_start_fill;
|
var $date_start_fill;
|
||||||
|
|||||||
@@ -53,8 +53,16 @@ if (! empty($conf->accounting->enabled)) require_once DOL_DOCUMENT_ROOT.'/accoun
|
|||||||
*/
|
*/
|
||||||
class Facture extends CommonInvoice
|
class Facture extends CommonInvoice
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='facture';
|
public $element='facture';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='facture';
|
public $table_element='facture';
|
||||||
|
|
||||||
public $table_element_line = 'facturedet';
|
public $table_element_line = 'facturedet';
|
||||||
public $fk_element = 'fk_facture';
|
public $fk_element = 'fk_facture';
|
||||||
public $picto='bill';
|
public $picto='bill';
|
||||||
@@ -4251,7 +4259,14 @@ class Facture extends CommonInvoice
|
|||||||
*/
|
*/
|
||||||
class FactureLigne extends CommonInvoiceLine
|
class FactureLigne extends CommonInvoiceLine
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='facturedet';
|
public $element='facturedet';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='facturedet';
|
public $table_element='facturedet';
|
||||||
|
|
||||||
var $oldline;
|
var $oldline;
|
||||||
|
|||||||
@@ -35,7 +35,11 @@ class FactureStats extends Stats
|
|||||||
var $socid;
|
var $socid;
|
||||||
var $userid;
|
var $userid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element;
|
public $table_element;
|
||||||
|
|
||||||
var $from;
|
var $from;
|
||||||
var $field;
|
var $field;
|
||||||
var $where;
|
var $where;
|
||||||
|
|||||||
@@ -28,8 +28,15 @@
|
|||||||
*/
|
*/
|
||||||
class PaymentTerm // extends CommonObject
|
class PaymentTerm // extends CommonObject
|
||||||
{
|
{
|
||||||
var $db; //!< To store db handler
|
/**
|
||||||
var $error; //!< To return error code (or message)
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Error code (or message)
|
||||||
|
*/
|
||||||
|
public $error='';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string[] Error codes (or messages)
|
* @var string[] Error codes (or messages)
|
||||||
@@ -40,7 +47,10 @@ class PaymentTerm // extends CommonObject
|
|||||||
//public $table_element='c_payment_term'; //!< Name of table without prefix where object is stored
|
//public $table_element='c_payment_term'; //!< Name of table without prefix where object is stored
|
||||||
var $context =array();
|
var $context =array();
|
||||||
|
|
||||||
var $id;
|
/**
|
||||||
|
* @var int ID
|
||||||
|
*/
|
||||||
|
public $id;
|
||||||
|
|
||||||
var $code;
|
var $code;
|
||||||
var $sortorder;
|
var $sortorder;
|
||||||
|
|||||||
@@ -29,8 +29,16 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class Localtax extends CommonObject
|
class Localtax extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='localtax'; //!< Id that identify managed objects
|
/**
|
||||||
public $table_element='localtax'; //!< Name of table without prefix where object is stored
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='localtax';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
|
public $table_element='localtax';
|
||||||
|
|
||||||
public $picto='payment';
|
public $picto='payment';
|
||||||
|
|
||||||
var $ltt;
|
var $ltt;
|
||||||
@@ -38,7 +46,12 @@ class Localtax extends CommonObject
|
|||||||
var $datep;
|
var $datep;
|
||||||
var $datev;
|
var $datev;
|
||||||
var $amount;
|
var $amount;
|
||||||
var $label;
|
|
||||||
|
/**
|
||||||
|
* @var string proper name for given parameter
|
||||||
|
*/
|
||||||
|
public $label;
|
||||||
|
|
||||||
var $fk_bank;
|
var $fk_bank;
|
||||||
var $fk_user_creat;
|
var $fk_user_creat;
|
||||||
var $fk_user_modif;
|
var $fk_user_modif;
|
||||||
|
|||||||
@@ -33,8 +33,16 @@ require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
|||||||
*/
|
*/
|
||||||
class RemiseCheque extends CommonObject
|
class RemiseCheque extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='chequereceipt';
|
public $element='chequereceipt';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='bordereau_cheque';
|
public $table_element='bordereau_cheque';
|
||||||
|
|
||||||
public $picto = 'payment';
|
public $picto = 'payment';
|
||||||
|
|
||||||
var $num;
|
var $num;
|
||||||
|
|||||||
@@ -34,15 +34,12 @@ class Cpaiement
|
|||||||
* @var string Id to identify managed objects
|
* @var string Id to identify managed objects
|
||||||
*/
|
*/
|
||||||
public $element = 'cpaiement';
|
public $element = 'cpaiement';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
*/
|
*/
|
||||||
public $table_element = 'c_paiement';
|
public $table_element = 'c_paiement';
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
|
|
||||||
public $code;
|
public $code;
|
||||||
public $libelle;
|
public $libelle;
|
||||||
public $type;
|
public $type;
|
||||||
@@ -50,9 +47,6 @@ class Cpaiement
|
|||||||
public $accountancy_code;
|
public $accountancy_code;
|
||||||
public $module;
|
public $module;
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
|||||||
@@ -36,8 +36,16 @@ require_once DOL_DOCUMENT_ROOT .'/multicurrency/class/multicurrency.class.php';
|
|||||||
*/
|
*/
|
||||||
class Paiement extends CommonObject
|
class Paiement extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='payment';
|
public $element='payment';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='paiement';
|
public $table_element='paiement';
|
||||||
|
|
||||||
public $picto = 'payment';
|
public $picto = 'payment';
|
||||||
|
|
||||||
var $facid;
|
var $facid;
|
||||||
|
|||||||
@@ -39,8 +39,16 @@ require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
|
|||||||
*/
|
*/
|
||||||
class BonPrelevement extends CommonObject
|
class BonPrelevement extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='widthdraw';
|
public $element='widthdraw';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='prelevement_bons';
|
public $table_element='prelevement_bons';
|
||||||
|
|
||||||
public $picto = 'payment';
|
public $picto = 'payment';
|
||||||
|
|
||||||
var $date_echeance;
|
var $date_echeance;
|
||||||
|
|||||||
@@ -31,8 +31,15 @@
|
|||||||
*/
|
*/
|
||||||
class LignePrelevement
|
class LignePrelevement
|
||||||
{
|
{
|
||||||
var $id;
|
/**
|
||||||
var $db;
|
* @var int ID
|
||||||
|
*/
|
||||||
|
public $id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $statuts = array();
|
var $statuts = array();
|
||||||
|
|
||||||
|
|||||||
@@ -30,8 +30,15 @@
|
|||||||
*/
|
*/
|
||||||
class RejetPrelevement
|
class RejetPrelevement
|
||||||
{
|
{
|
||||||
var $id;
|
/**
|
||||||
var $db;
|
* @var int ID
|
||||||
|
*/
|
||||||
|
public $id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -31,8 +31,16 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class PaymentSalary extends CommonObject
|
class PaymentSalary extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='payment_salary'; //!< Id that identify managed objects
|
/**
|
||||||
public $table_element='payment_salary'; //!< Name of table without prefix where object is stored
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='payment_salary';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
|
public $table_element='payment_salary';
|
||||||
|
|
||||||
public $picto='payment';
|
public $picto='payment';
|
||||||
|
|
||||||
public $tms;
|
public $tms;
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ include_once DOL_DOCUMENT_ROOT . '/compta/salaries/class/paymentsalary.class.php
|
|||||||
*/
|
*/
|
||||||
class SalariesStats extends Stats
|
class SalariesStats extends Stats
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element;
|
public $table_element;
|
||||||
|
|
||||||
var $socid;
|
var $socid;
|
||||||
|
|||||||
@@ -38,14 +38,12 @@ class Cchargesociales
|
|||||||
* @var string Id to identify managed objects
|
* @var string Id to identify managed objects
|
||||||
*/
|
*/
|
||||||
public $element = 'cchargesociales';
|
public $element = 'cchargesociales';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
*/
|
*/
|
||||||
public $table_element = 'c_chargesociales';
|
public $table_element = 'c_chargesociales';
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
|
|
||||||
public $libelle;
|
public $libelle;
|
||||||
public $deductible;
|
public $deductible;
|
||||||
public $active;
|
public $active;
|
||||||
@@ -54,9 +52,6 @@ class Cchargesociales
|
|||||||
public $module;
|
public $module;
|
||||||
public $accountancy_code;
|
public $accountancy_code;
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
|||||||
@@ -32,9 +32,18 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class ChargeSociales extends CommonObject
|
class ChargeSociales extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='chargesociales';
|
public $element='chargesociales';
|
||||||
|
|
||||||
public $table='chargesociales';
|
public $table='chargesociales';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='chargesociales';
|
public $table_element='chargesociales';
|
||||||
|
|
||||||
public $picto = 'bill';
|
public $picto = 'bill';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -31,8 +31,16 @@ require_once DOL_DOCUMENT_ROOT.'/compta/sociales/class/chargesociales.class.php'
|
|||||||
*/
|
*/
|
||||||
class PaymentSocialContribution extends CommonObject
|
class PaymentSocialContribution extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='paiementcharge'; //!< Id that identify managed objects
|
/**
|
||||||
public $table_element='paiementcharge'; //!< Name of table without prefix where object is stored
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='paiementcharge';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
|
public $table_element='paiementcharge';
|
||||||
|
|
||||||
public $picto = 'payment';
|
public $picto = 'payment';
|
||||||
|
|
||||||
var $fk_charge;
|
var $fk_charge;
|
||||||
|
|||||||
@@ -33,8 +33,16 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class Tva extends CommonObject
|
class Tva extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='tva'; //!< Id that identify managed objects
|
/**
|
||||||
public $table_element='tva'; //!< Name of table without prefix where object is stored
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='tva';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
|
public $table_element='tva';
|
||||||
|
|
||||||
public $picto='payment';
|
public $picto='payment';
|
||||||
|
|
||||||
var $tms;
|
var $tms;
|
||||||
@@ -43,7 +51,12 @@ class Tva extends CommonObject
|
|||||||
var $amount;
|
var $amount;
|
||||||
var $type_payment;
|
var $type_payment;
|
||||||
var $num_payment;
|
var $num_payment;
|
||||||
var $label;
|
|
||||||
|
/**
|
||||||
|
* @var string proper name for given parameter
|
||||||
|
*/
|
||||||
|
public $label;
|
||||||
|
|
||||||
var $fk_bank;
|
var $fk_bank;
|
||||||
var $fk_user_creat;
|
var $fk_user_creat;
|
||||||
var $fk_user_modif;
|
var $fk_user_modif;
|
||||||
|
|||||||
@@ -27,7 +27,11 @@
|
|||||||
*/
|
*/
|
||||||
abstract class ActionsContactCardCommon
|
abstract class ActionsContactCardCommon
|
||||||
{
|
{
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $dirmodule;
|
var $dirmodule;
|
||||||
var $targetmodule;
|
var $targetmodule;
|
||||||
var $canvas;
|
var $canvas;
|
||||||
@@ -37,8 +41,11 @@ abstract class ActionsContactCardCommon
|
|||||||
var $tpl = array();
|
var $tpl = array();
|
||||||
//! Object container
|
//! Object container
|
||||||
var $object;
|
var $object;
|
||||||
//! Error string
|
|
||||||
var $error;
|
/**
|
||||||
|
* @var string Error code (or message)
|
||||||
|
*/
|
||||||
|
public $error='';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -37,8 +37,16 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class Contact extends CommonObject
|
class Contact extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='contact';
|
public $element='contact';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='socpeople';
|
public $table_element='socpeople';
|
||||||
|
|
||||||
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
public $picto = 'contact';
|
public $picto = 'contact';
|
||||||
|
|
||||||
@@ -681,6 +689,7 @@ class Contact extends CommonObject
|
|||||||
$sql.= " c.photo,";
|
$sql.= " c.photo,";
|
||||||
$sql.= " c.priv, c.note_private, c.note_public, c.default_lang, c.no_email, c.canvas,";
|
$sql.= " c.priv, c.note_private, c.note_public, c.default_lang, c.no_email, c.canvas,";
|
||||||
$sql.= " c.import_key,";
|
$sql.= " c.import_key,";
|
||||||
|
$sql.= " c.datec as date_creation, c.tms as date_modification,";
|
||||||
$sql.= " co.label as country, co.code as country_code,";
|
$sql.= " co.label as country, co.code as country_code,";
|
||||||
$sql.= " d.nom as state, d.code_departement as state_code,";
|
$sql.= " d.nom as state, d.code_departement as state_code,";
|
||||||
$sql.= " u.rowid as user_id, u.login as user_login,";
|
$sql.= " u.rowid as user_id, u.login as user_login,";
|
||||||
@@ -715,6 +724,9 @@ class Contact extends CommonObject
|
|||||||
$this->zip = $obj->zip;
|
$this->zip = $obj->zip;
|
||||||
$this->town = $obj->town;
|
$this->town = $obj->town;
|
||||||
|
|
||||||
|
$this->date_creation = $this->db->jdate($obj->date_creation);
|
||||||
|
$this->date_modification = $this->db->jdate($obj->date_modification);
|
||||||
|
|
||||||
$this->fk_departement = $obj->fk_departement; // deprecated
|
$this->fk_departement = $obj->fk_departement; // deprecated
|
||||||
$this->state_id = $obj->fk_departement;
|
$this->state_id = $obj->fk_departement;
|
||||||
$this->departement_code = $obj->state_code; // deprecated
|
$this->departement_code = $obj->state_code; // deprecated
|
||||||
|
|||||||
@@ -41,16 +41,26 @@ require_once DOL_DOCUMENT_ROOT . '/margin/lib/margins.lib.php';
|
|||||||
*/
|
*/
|
||||||
class Contrat extends CommonObject
|
class Contrat extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='contrat';
|
public $element='contrat';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='contrat';
|
public $table_element='contrat';
|
||||||
|
|
||||||
public $table_element_line='contratdet';
|
public $table_element_line='contratdet';
|
||||||
public $fk_element='fk_contrat';
|
public $fk_element='fk_contrat';
|
||||||
public $picto='contract';
|
public $picto='contract';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
public $ismultientitymanaged = 1;
|
public $ismultientitymanaged = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user
|
* 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user
|
||||||
* @var integer
|
* @var integer
|
||||||
@@ -1048,7 +1058,7 @@ class Contrat extends CommonObject
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->error="Failed to add contact";
|
$this->error="Failed to add contract";
|
||||||
dol_syslog(get_class($this)."::create - 20 - ".$this->error, LOG_ERR);
|
dol_syslog(get_class($this)."::create - 20 - ".$this->error, LOG_ERR);
|
||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
return -2;
|
return -2;
|
||||||
@@ -2459,10 +2469,21 @@ class Contrat extends CommonObject
|
|||||||
*/
|
*/
|
||||||
class ContratLigne extends CommonObjectLine
|
class ContratLigne extends CommonObjectLine
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='contratdet';
|
public $element='contratdet';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
public $table_element='contratdet';
|
public $table_element='contratdet';
|
||||||
|
|
||||||
var $id;
|
/**
|
||||||
|
* @var int ID
|
||||||
|
*/
|
||||||
|
public $id;
|
||||||
|
|
||||||
var $ref;
|
var $ref;
|
||||||
var $tms;
|
var $tms;
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,11 @@ class box_actions extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastActions";
|
var $boxlabel="BoxLastActions";
|
||||||
var $depends = array("agenda");
|
var $depends = array("agenda");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -35,7 +35,11 @@ class box_activity extends ModeleBoxes
|
|||||||
var $boxlabel='BoxGlobalActivity';
|
var $boxlabel='BoxGlobalActivity';
|
||||||
var $depends = array("facture");
|
var $depends = array("facture");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
var $enabled = 1;
|
var $enabled = 1;
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,11 @@ class box_bookmarks extends ModeleBoxes
|
|||||||
var $boxlabel="BoxMyLastBookmarks";
|
var $boxlabel="BoxMyLastBookmarks";
|
||||||
var $depends = array("bookmark");
|
var $depends = array("bookmark");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -37,7 +37,11 @@ class box_clients extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastCustomers";
|
var $boxlabel="BoxLastCustomers";
|
||||||
var $depends = array("societe");
|
var $depends = array("societe");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $enabled = 1;
|
var $enabled = 1;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -37,7 +37,11 @@ class box_commandes extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastCustomerOrders";
|
var $boxlabel="BoxLastCustomerOrders";
|
||||||
var $depends = array("commande");
|
var $depends = array("commande");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -38,7 +38,11 @@ class box_comptes extends ModeleBoxes
|
|||||||
var $boxlabel="BoxCurrentAccounts";
|
var $boxlabel="BoxCurrentAccounts";
|
||||||
var $depends = array("banque"); // Box active if module banque active
|
var $depends = array("banque"); // Box active if module banque active
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
var $enabled = 1;
|
var $enabled = 1;
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,11 @@ class box_contacts extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastContacts";
|
var $boxlabel="BoxLastContacts";
|
||||||
var $depends = array("societe");
|
var $depends = array("societe");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -36,7 +36,11 @@ class box_contracts extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastContracts";
|
var $boxlabel="BoxLastContracts";
|
||||||
var $depends = array("contrat"); // conf->contrat->enabled
|
var $depends = array("contrat"); // conf->contrat->enabled
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -39,7 +39,11 @@ class box_external_rss extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastRssInfos";
|
var $boxlabel="BoxLastRssInfos";
|
||||||
var $depends = array("externalrss");
|
var $depends = array("externalrss");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $paramdef; // Params of box definition (not user params)
|
var $paramdef; // Params of box definition (not user params)
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -35,7 +35,11 @@ class box_factures extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastCustomerBills";
|
var $boxlabel="BoxLastCustomerBills";
|
||||||
var $depends = array("facture");
|
var $depends = array("facture");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -36,7 +36,11 @@ class box_factures_fourn extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastSupplierBills";
|
var $boxlabel="BoxLastSupplierBills";
|
||||||
var $depends = array("facture","fournisseur");
|
var $depends = array("facture","fournisseur");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -35,7 +35,11 @@ class box_factures_fourn_imp extends ModeleBoxes
|
|||||||
var $boxlabel = "BoxOldestUnpaidSupplierBills";
|
var $boxlabel = "BoxOldestUnpaidSupplierBills";
|
||||||
var $depends = array("facture","fournisseur");
|
var $depends = array("facture","fournisseur");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -38,7 +38,11 @@ class box_factures_imp extends ModeleBoxes
|
|||||||
var $boxlabel="BoxOldestUnpaidCustomerBills";
|
var $boxlabel="BoxOldestUnpaidCustomerBills";
|
||||||
var $depends = array("facture");
|
var $depends = array("facture");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -36,7 +36,11 @@ class box_ficheinter extends ModeleBoxes
|
|||||||
var $boxlabel="BoxFicheInter";
|
var $boxlabel="BoxFicheInter";
|
||||||
var $depends = array("ficheinter"); // conf->contrat->enabled
|
var $depends = array("ficheinter"); // conf->contrat->enabled
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -36,7 +36,11 @@ class box_fournisseurs extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastSuppliers";
|
var $boxlabel="BoxLastSuppliers";
|
||||||
var $depends = array("fournisseur");
|
var $depends = array("fournisseur");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -38,7 +38,11 @@ class box_goodcustomers extends ModeleBoxes
|
|||||||
var $boxlabel="BoxGoodCustomers";
|
var $boxlabel="BoxGoodCustomers";
|
||||||
var $depends = array("societe");
|
var $depends = array("societe");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $enabled = 1;
|
var $enabled = 1;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -33,7 +33,10 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
|||||||
var $boxlabel="BoxCustomersInvoicesPerMonth";
|
var $boxlabel="BoxCustomersInvoicesPerMonth";
|
||||||
var $depends = array("facture");
|
var $depends = array("facture");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
var $info_box_contents = array();
|
var $info_box_contents = array();
|
||||||
|
|||||||
@@ -33,7 +33,10 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
|||||||
var $boxlabel="BoxSuppliersInvoicesPerMonth";
|
var $boxlabel="BoxSuppliersInvoicesPerMonth";
|
||||||
var $depends = array("fournisseur");
|
var $depends = array("fournisseur");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
var $info_box_contents = array();
|
var $info_box_contents = array();
|
||||||
|
|||||||
@@ -33,7 +33,10 @@ class box_graph_orders_permonth extends ModeleBoxes
|
|||||||
var $boxlabel="BoxCustomersOrdersPerMonth";
|
var $boxlabel="BoxCustomersOrdersPerMonth";
|
||||||
var $depends = array("commande");
|
var $depends = array("commande");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
var $info_box_contents = array();
|
var $info_box_contents = array();
|
||||||
|
|||||||
@@ -33,7 +33,10 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
|||||||
var $boxlabel="BoxSuppliersOrdersPerMonth";
|
var $boxlabel="BoxSuppliersOrdersPerMonth";
|
||||||
var $depends = array("fournisseur");
|
var $depends = array("fournisseur");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
var $info_box_contents = array();
|
var $info_box_contents = array();
|
||||||
|
|||||||
@@ -33,7 +33,11 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
var $boxlabel="BoxProductDistribution";
|
var $boxlabel="BoxProductDistribution";
|
||||||
var $depends = array("product|service","facture|propal|commande");
|
var $depends = array("product|service","facture|propal|commande");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -33,7 +33,10 @@ class box_graph_propales_permonth extends ModeleBoxes
|
|||||||
var $boxlabel="BoxProposalsPerMonth";
|
var $boxlabel="BoxProposalsPerMonth";
|
||||||
var $depends = array("propal");
|
var $depends = array("propal");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
var $info_box_contents = array();
|
var $info_box_contents = array();
|
||||||
@@ -71,6 +74,8 @@ class box_graph_propales_permonth extends ModeleBoxes
|
|||||||
//include_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
|
//include_once DOL_DOCUMENT_ROOT.'/comm/propal/class/propal.class.php';
|
||||||
//$propalstatic=new Propal($db);
|
//$propalstatic=new Propal($db);
|
||||||
|
|
||||||
|
$langs->load("propal");
|
||||||
|
|
||||||
$text = $langs->trans("BoxProposalsPerMonth",$max);
|
$text = $langs->trans("BoxProposalsPerMonth",$max);
|
||||||
$this->info_box_head = array(
|
$this->info_box_head = array(
|
||||||
'text' => $text,
|
'text' => $text,
|
||||||
|
|||||||
@@ -34,7 +34,12 @@ class box_last_modified_ticket extends ModeleBoxes
|
|||||||
public $boximg = "ticket";
|
public $boximg = "ticket";
|
||||||
public $boxlabel;
|
public $boxlabel;
|
||||||
public $depends = array("ticket");
|
public $depends = array("ticket");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
public $db;
|
public $db;
|
||||||
|
|
||||||
public $param;
|
public $param;
|
||||||
public $info_box_head = array();
|
public $info_box_head = array();
|
||||||
public $info_box_contents = array();
|
public $info_box_contents = array();
|
||||||
|
|||||||
@@ -34,7 +34,12 @@ class box_last_ticket extends ModeleBoxes
|
|||||||
public $boximg = "ticket";
|
public $boximg = "ticket";
|
||||||
public $boxlabel;
|
public $boxlabel;
|
||||||
public $depends = array("ticket");
|
public $depends = array("ticket");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
public $db;
|
public $db;
|
||||||
|
|
||||||
public $param;
|
public $param;
|
||||||
public $info_box_head = array();
|
public $info_box_head = array();
|
||||||
public $info_box_contents = array();
|
public $info_box_contents = array();
|
||||||
|
|||||||
@@ -35,7 +35,11 @@ class box_lastlogin extends ModeleBoxes
|
|||||||
var $boxlabel='BoxLoginInformation';
|
var $boxlabel='BoxLoginInformation';
|
||||||
var $depends = array("user");
|
var $depends = array("user");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
var $enabled = 1;
|
var $enabled = 1;
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,11 @@ class box_members extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastMembers";
|
var $boxlabel="BoxLastMembers";
|
||||||
var $depends = array("adherent");
|
var $depends = array("adherent");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
var $enabled = 1;
|
var $enabled = 1;
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,11 @@ class box_produits extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastProducts";
|
var $boxlabel="BoxLastProducts";
|
||||||
var $depends = array("produit");
|
var $depends = array("produit");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -40,7 +40,11 @@ class box_produits_alerte_stock extends ModeleBoxes
|
|||||||
var $boxlabel="BoxProductsAlertStock";
|
var $boxlabel="BoxProductsAlertStock";
|
||||||
var $depends = array("produit");
|
var $depends = array("produit");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -34,7 +34,12 @@ class box_project extends ModeleBoxes
|
|||||||
var $boximg="object_projectpub";
|
var $boximg="object_projectpub";
|
||||||
var $boxlabel;
|
var $boxlabel;
|
||||||
//var $depends = array("projet");
|
//var $depends = array("projet");
|
||||||
var $db;
|
|
||||||
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -37,7 +37,11 @@ class box_propales extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastProposals";
|
var $boxlabel="BoxLastProposals";
|
||||||
var $depends = array("propal"); // conf->propal->enabled
|
var $depends = array("propal"); // conf->propal->enabled
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -39,7 +39,11 @@ class box_prospect extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastProspects";
|
var $boxlabel="BoxLastProspects";
|
||||||
var $depends = array("societe");
|
var $depends = array("societe");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $enabled = 1;
|
var $enabled = 1;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -37,7 +37,11 @@ class box_services_contracts extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLastProductsInContract";
|
var $boxlabel="BoxLastProductsInContract";
|
||||||
var $depends = array("service","contrat");
|
var $depends = array("service","contrat");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -35,7 +35,11 @@ class box_services_expired extends ModeleBoxes
|
|||||||
var $boxlabel="BoxOldestExpiredServices";
|
var $boxlabel="BoxOldestExpiredServices";
|
||||||
var $depends = array("contrat"); // conf->propal->enabled
|
var $depends = array("contrat"); // conf->propal->enabled
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
|
|||||||
@@ -36,7 +36,11 @@ class box_supplier_orders extends ModeleBoxes
|
|||||||
var $boxlabel="BoxLatestSupplierOrders";
|
var $boxlabel="BoxLatestSupplierOrders";
|
||||||
var $depends = array("fournisseur");
|
var $depends = array("fournisseur");
|
||||||
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
var $info_box_contents = array();
|
var $info_box_contents = array();
|
||||||
|
|||||||
@@ -35,7 +35,12 @@ class box_task extends ModeleBoxes
|
|||||||
var $boximg="object_projecttask";
|
var $boximg="object_projecttask";
|
||||||
var $boxlabel;
|
var $boxlabel;
|
||||||
//var $depends = array("projet");
|
//var $depends = array("projet");
|
||||||
var $db;
|
|
||||||
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
var $param;
|
var $param;
|
||||||
var $enabled = 0; // Disabled because bugged.
|
var $enabled = 0; // Disabled because bugged.
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,10 @@
|
|||||||
*/
|
*/
|
||||||
class AntiVir
|
class AntiVir
|
||||||
{
|
{
|
||||||
var $error;
|
/**
|
||||||
|
* @var string Error code (or message)
|
||||||
|
*/
|
||||||
|
public $error='';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string[] Error codes (or messages)
|
* @var string[] Error codes (or messages)
|
||||||
@@ -38,7 +41,11 @@ class AntiVir
|
|||||||
public $errors = array();
|
public $errors = array();
|
||||||
|
|
||||||
var $output;
|
var $output;
|
||||||
var $db;
|
|
||||||
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -67,7 +74,7 @@ class AntiVir
|
|||||||
|
|
||||||
if (preg_match('/\.virus$/i', $file))
|
if (preg_match('/\.virus$/i', $file))
|
||||||
{
|
{
|
||||||
$this->errors='File has an extension saying file is a virus';
|
$this->errors[] = 'File has an extension saying file is a virus';
|
||||||
return -97;
|
return -97;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,8 +28,15 @@
|
|||||||
*/
|
*/
|
||||||
class Canvas
|
class Canvas
|
||||||
{
|
{
|
||||||
var $db;
|
/**
|
||||||
var $error;
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Error code (or message)
|
||||||
|
*/
|
||||||
|
public $error='';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string[] Error codes (or messages)
|
* @var string[] Error codes (or messages)
|
||||||
|
|||||||
@@ -32,8 +32,15 @@
|
|||||||
*/
|
*/
|
||||||
class Ccountry // extends CommonObject
|
class Ccountry // extends CommonObject
|
||||||
{
|
{
|
||||||
var $db; //!< To store db handler
|
/**
|
||||||
var $error; //!< To return error code (or message)
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Error code (or message)
|
||||||
|
*/
|
||||||
|
public $error='';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string[] Error codes (or messages)
|
* @var string[] Error codes (or messages)
|
||||||
@@ -43,10 +50,19 @@ class Ccountry // extends CommonObject
|
|||||||
//var $element='ccountry'; //!< Id that identify managed objects
|
//var $element='ccountry'; //!< Id that identify managed objects
|
||||||
//var $table_element='ccountry'; //!< Name of table without prefix where object is stored
|
//var $table_element='ccountry'; //!< Name of table without prefix where object is stored
|
||||||
|
|
||||||
var $id;
|
/**
|
||||||
|
* @var int ID
|
||||||
|
*/
|
||||||
|
public $id;
|
||||||
|
|
||||||
var $code;
|
var $code;
|
||||||
var $code_iso;
|
var $code_iso;
|
||||||
var $label;
|
|
||||||
|
/**
|
||||||
|
* @var string proper name for given parameter
|
||||||
|
*/
|
||||||
|
public $label;
|
||||||
|
|
||||||
var $active;
|
var $active;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,15 @@
|
|||||||
*/
|
*/
|
||||||
class Comment extends CommonObject
|
class Comment extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='comment'; //!< Id that identify managed objects
|
/**
|
||||||
public $table_element='comment'; //!< Name of table without prefix where object is stored
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='comment';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Name of table without prefix where object is stored
|
||||||
|
*/
|
||||||
|
public $table_element='comment';
|
||||||
|
|
||||||
public $fk_element;
|
public $fk_element;
|
||||||
public $element_type;
|
public $element_type;
|
||||||
|
|||||||
@@ -607,15 +607,16 @@ abstract class CommonDocGenerator
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve extrafields
|
// Retrieve extrafields
|
||||||
/*if(is_array($object->array_options) && count($object->array_options))
|
if (is_array($object->array_options) && count($object->array_options))
|
||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
||||||
$extrafields = new ExtraFields($this->db);
|
$extrafields = new ExtraFields($this->db);
|
||||||
$extralabels = $extrafields->fetch_name_optionals_label('shipment',true);
|
$extralabels = $extrafields->fetch_name_optionals_label('expedition',true);
|
||||||
$object->fetch_optionals();
|
$object->fetch_optionals();
|
||||||
|
|
||||||
$array_shipment = $this->fill_substitutionarray_with_extrafields($object,$array_shipment,$extrafields,$array_key,$outputlangs);
|
$array_shipment = $this->fill_substitutionarray_with_extrafields($object,$array_shipment,$extrafields,$array_key,$outputlangs);
|
||||||
}*/
|
}
|
||||||
|
|
||||||
return $array_shipment;
|
return $array_shipment;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -623,17 +624,17 @@ abstract class CommonDocGenerator
|
|||||||
/**
|
/**
|
||||||
* Define array with couple substitution key => substitution value
|
* Define array with couple substitution key => substitution value
|
||||||
*
|
*
|
||||||
* @param array $line Array of lines
|
* @param ExpeditionLigne $line Object line
|
||||||
* @param Translate $outputlangs Lang object to use for output
|
* @param Translate $outputlangs Lang object to use for output
|
||||||
* @return array Substitution array
|
* @return array Substitution array
|
||||||
*/
|
*/
|
||||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||||
function get_substitutionarray_shipment_lines($line,$outputlangs)
|
function get_substitutionarray_shipment_lines($line, $outputlangs)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
dol_include_once('/core/lib/product.lib.php');
|
dol_include_once('/core/lib/product.lib.php');
|
||||||
|
|
||||||
return array(
|
$resarray = array(
|
||||||
'line_fulldesc'=>doc_getlinedesc($line,$outputlangs),
|
'line_fulldesc'=>doc_getlinedesc($line,$outputlangs),
|
||||||
'line_product_ref'=>$line->product_ref,
|
'line_product_ref'=>$line->product_ref,
|
||||||
'line_product_label'=>$line->product_label,
|
'line_product_label'=>$line->product_label,
|
||||||
@@ -652,6 +653,18 @@ abstract class CommonDocGenerator
|
|||||||
'line_surface'=>empty($line->surface) ? '' : $line->surface*$line->qty_shipped.' '.measuring_units_string($line->surface_units, 'surface'),
|
'line_surface'=>empty($line->surface) ? '' : $line->surface*$line->qty_shipped.' '.measuring_units_string($line->surface_units, 'surface'),
|
||||||
'line_volume'=>empty($line->volume) ? '' : $line->volume*$line->qty_shipped.' '.measuring_units_string($line->volume_units, 'volume'),
|
'line_volume'=>empty($line->volume) ? '' : $line->volume*$line->qty_shipped.' '.measuring_units_string($line->volume_units, 'volume'),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Retrieve extrafields
|
||||||
|
$extrafieldkey = $line->element;
|
||||||
|
$array_key = "line";
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
||||||
|
$extrafields = new ExtraFields($this->db);
|
||||||
|
$extralabels = $extrafields->fetch_name_optionals_label($extrafieldkey, true);
|
||||||
|
$line->fetch_optionals();
|
||||||
|
|
||||||
|
$resarray = $this->fill_substitutionarray_with_extrafields($line, $resarray, $extrafields, $array_key, $outputlangs);
|
||||||
|
|
||||||
|
return $resarray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -46,47 +46,58 @@ abstract class CommonObject
|
|||||||
* @var DoliDb Database handler (result of a new DoliDB)
|
* @var DoliDb Database handler (result of a new DoliDB)
|
||||||
*/
|
*/
|
||||||
public $db;
|
public $db;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int The object identifier
|
* @var int The object identifier
|
||||||
*/
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Error string
|
* @var string Error string
|
||||||
* @see errors
|
* @see errors
|
||||||
*/
|
*/
|
||||||
public $error;
|
public $error;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string[] Array of error strings
|
* @var string[] Array of error strings
|
||||||
*/
|
*/
|
||||||
public $errors=array();
|
public $errors=array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element;
|
public $element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string Name of table without prefix where object is stored
|
||||||
*/
|
*/
|
||||||
public $table_element;
|
public $table_element;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var
|
* @var
|
||||||
*/
|
*/
|
||||||
public $table_element_line;
|
public $table_element_line;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Key value used to track if data is coming from import wizard
|
* @var string Key value used to track if data is coming from import wizard
|
||||||
*/
|
*/
|
||||||
public $import_key;
|
public $import_key;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var mixed Contains data to manage extrafields
|
* @var mixed Contains data to manage extrafields
|
||||||
*/
|
*/
|
||||||
public $array_options=array();
|
public $array_options=array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int[][] Array of linked objects ids. Loaded by ->fetchObjectLinked
|
* @var int[][] Array of linked objects ids. Loaded by ->fetchObjectLinked
|
||||||
*/
|
*/
|
||||||
public $linkedObjectsIds;
|
public $linkedObjectsIds;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var mixed Array of linked objects. Loaded by ->fetchObjectLinked
|
* @var mixed Array of linked objects. Loaded by ->fetchObjectLinked
|
||||||
*/
|
*/
|
||||||
public $linkedObjects;
|
public $linkedObjects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Object To store a cloned copy of object before to edit it and keep track of old properties
|
* @var Object To store a cloned copy of object before to edit it and keep track of old properties
|
||||||
*/
|
*/
|
||||||
@@ -116,11 +127,13 @@ abstract class CommonObject
|
|||||||
* @see fetch_projet()
|
* @see fetch_projet()
|
||||||
*/
|
*/
|
||||||
public $project;
|
public $project;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int The related project ID
|
* @var int The related project ID
|
||||||
* @see setProject(), project
|
* @see setProject(), project
|
||||||
*/
|
*/
|
||||||
public $fk_project;
|
public $fk_project;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see project
|
* @see project
|
||||||
@@ -132,6 +145,7 @@ abstract class CommonObject
|
|||||||
* @see fetch_contact()
|
* @see fetch_contact()
|
||||||
*/
|
*/
|
||||||
public $contact;
|
public $contact;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int The related contact ID
|
* @var int The related contact ID
|
||||||
* @see fetch_contact()
|
* @see fetch_contact()
|
||||||
@@ -165,14 +179,17 @@ abstract class CommonObject
|
|||||||
* @var string The object's reference
|
* @var string The object's reference
|
||||||
*/
|
*/
|
||||||
public $ref;
|
public $ref;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string The object's previous reference
|
* @var string The object's previous reference
|
||||||
*/
|
*/
|
||||||
public $ref_previous;
|
public $ref_previous;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string The object's next reference
|
* @var string The object's next reference
|
||||||
*/
|
*/
|
||||||
public $ref_next;
|
public $ref_next;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string An external reference for the object
|
* @var string An external reference for the object
|
||||||
*/
|
*/
|
||||||
@@ -189,36 +206,43 @@ abstract class CommonObject
|
|||||||
* @see getFullAddress()
|
* @see getFullAddress()
|
||||||
*/
|
*/
|
||||||
public $country;
|
public $country;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
* @see getFullAddress(), country
|
* @see getFullAddress(), country
|
||||||
*/
|
*/
|
||||||
public $country_id;
|
public $country_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @see getFullAddress(), isInEEC(), country
|
* @see getFullAddress(), isInEEC(), country
|
||||||
*/
|
*/
|
||||||
public $country_code;
|
public $country_code;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @see getFullAddress()
|
* @see getFullAddress()
|
||||||
*/
|
*/
|
||||||
public $state;
|
public $state;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
* @see getFullAddress(), state
|
* @see getFullAddress(), state
|
||||||
*/
|
*/
|
||||||
public $state_id;
|
public $state_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @see getFullAddress(), state
|
* @see getFullAddress(), state
|
||||||
*/
|
*/
|
||||||
public $state_code;
|
public $state_code;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @see getFullAddress(), region
|
* @see getFullAddress(), region
|
||||||
*/
|
*/
|
||||||
public $region;
|
public $region;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @see getFullAddress(), region
|
* @see getFullAddress(), region
|
||||||
@@ -230,16 +254,19 @@ abstract class CommonObject
|
|||||||
* @see fetch_barcode()
|
* @see fetch_barcode()
|
||||||
*/
|
*/
|
||||||
public $barcode_type;
|
public $barcode_type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @see fetch_barcode(), barcode_type
|
* @see fetch_barcode(), barcode_type
|
||||||
*/
|
*/
|
||||||
public $barcode_type_code;
|
public $barcode_type_code;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @see fetch_barcode(), barcode_type
|
* @see fetch_barcode(), barcode_type
|
||||||
*/
|
*/
|
||||||
public $barcode_type_label;
|
public $barcode_type_label;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @see fetch_barcode(), barcode_type
|
* @see fetch_barcode(), barcode_type
|
||||||
@@ -257,6 +284,7 @@ abstract class CommonObject
|
|||||||
* @see setPaymentTerms()
|
* @see setPaymentTerms()
|
||||||
*/
|
*/
|
||||||
public $cond_reglement_id;
|
public $cond_reglement_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int Payment terms ID
|
* @var int Payment terms ID
|
||||||
* @deprecated Kept for compatibility
|
* @deprecated Kept for compatibility
|
||||||
@@ -294,11 +322,13 @@ abstract class CommonObject
|
|||||||
* @see update_note()
|
* @see update_note()
|
||||||
*/
|
*/
|
||||||
public $note_public;
|
public $note_public;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Private note
|
* @var string Private note
|
||||||
* @see update_note()
|
* @see update_note()
|
||||||
*/
|
*/
|
||||||
public $note_private;
|
public $note_private;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see note_public
|
* @see note_public
|
||||||
@@ -310,21 +340,25 @@ abstract class CommonObject
|
|||||||
* @see update_price()
|
* @see update_price()
|
||||||
*/
|
*/
|
||||||
public $total_ht;
|
public $total_ht;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var float Total VAT amount
|
* @var float Total VAT amount
|
||||||
* @see update_price()
|
* @see update_price()
|
||||||
*/
|
*/
|
||||||
public $total_tva;
|
public $total_tva;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var float Total local tax 1 amount
|
* @var float Total local tax 1 amount
|
||||||
* @see update_price()
|
* @see update_price()
|
||||||
*/
|
*/
|
||||||
public $total_localtax1;
|
public $total_localtax1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var float Total local tax 2 amount
|
* @var float Total local tax 2 amount
|
||||||
* @see update_price()
|
* @see update_price()
|
||||||
*/
|
*/
|
||||||
public $total_localtax2;
|
public $total_localtax2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var float Total amount with taxes
|
* @var float Total amount with taxes
|
||||||
* @see update_price()
|
* @see update_price()
|
||||||
@@ -347,11 +381,13 @@ abstract class CommonObject
|
|||||||
* @see setIncoterms()
|
* @see setIncoterms()
|
||||||
*/
|
*/
|
||||||
public $fk_incoterms;
|
public $fk_incoterms;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @see SetIncoterms()
|
* @see SetIncoterms()
|
||||||
*/
|
*/
|
||||||
public $libelle_incoterms;
|
public $libelle_incoterms;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
* @see display_incoterms()
|
* @see display_incoterms()
|
||||||
|
|||||||
@@ -94,4 +94,3 @@ abstract class CommonObjectLine extends CommonObject
|
|||||||
|
|
||||||
// For the moment we use the extends on CommonObject until PHP min is 5.4 so use Traits.
|
// For the moment we use the extends on CommonObject until PHP min is 5.4 so use Traits.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,8 +35,12 @@ class Conf
|
|||||||
/** \public */
|
/** \public */
|
||||||
//! To store properties found in conf file
|
//! To store properties found in conf file
|
||||||
var $file;
|
var $file;
|
||||||
//! Object with database handler
|
|
||||||
var $db;
|
/**
|
||||||
|
* @var DoliDB Database handler.
|
||||||
|
*/
|
||||||
|
public $db;
|
||||||
|
|
||||||
//! To store properties found into database
|
//! To store properties found into database
|
||||||
var $global;
|
var $global;
|
||||||
//! To store browser info
|
//! To store browser info
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user