trimtrailing
This commit is contained in:
parent
50d50c2e10
commit
1182f29864
@ -30,31 +30,31 @@ require_once DOL_DOCUMENT_ROOT . '/core/lib/accounting.lib.php';
|
|||||||
*/
|
*/
|
||||||
class AccountancyCategory // extends CommonObject
|
class AccountancyCategory // extends CommonObject
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var DoliDB Database handler.
|
* @var DoliDB Database handler.
|
||||||
*/
|
*/
|
||||||
public $db;
|
public $db;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Error string
|
* @var string Error string
|
||||||
* @see errors
|
* @see errors
|
||||||
*/
|
*/
|
||||||
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 object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='c_accounting_category';
|
public $element='c_accounting_category';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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_accounting_category';
|
public $table_element='c_accounting_category';
|
||||||
|
|
||||||
public $id;
|
public $id;
|
||||||
public $code;
|
public $code;
|
||||||
|
|||||||
@ -31,12 +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
|
* @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';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -44,7 +44,7 @@ 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
|
||||||
@ -55,22 +55,22 @@ class AccountingAccount extends CommonObject
|
|||||||
* @var DoliDB Database handler.
|
* @var DoliDB Database handler.
|
||||||
*/
|
*/
|
||||||
public $db;
|
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 int ID
|
* @var int ID
|
||||||
*/
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
var $rowid;
|
var $rowid;
|
||||||
var $datec; // Creation date
|
var $datec; // Creation date
|
||||||
var $fk_pcg_version;
|
var $fk_pcg_version;
|
||||||
@ -79,12 +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 string proper name for given parameter
|
* @var string proper name for given parameter
|
||||||
*/
|
*/
|
||||||
public $label;
|
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
|
||||||
|
|||||||
@ -31,7 +31,7 @@ abstract class ActionsAdherentCardCommon
|
|||||||
* @var DoliDB Database handler.
|
* @var DoliDB Database handler.
|
||||||
*/
|
*/
|
||||||
public $db;
|
public $db;
|
||||||
|
|
||||||
var $dirmodule;
|
var $dirmodule;
|
||||||
var $targetmodule;
|
var $targetmodule;
|
||||||
var $canvas;
|
var $canvas;
|
||||||
@ -41,11 +41,11 @@ 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)
|
||||||
|
|||||||
@ -45,12 +45,12 @@ class Adherent extends CommonObject
|
|||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='member';
|
public $element='member';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='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;
|
||||||
@ -542,10 +542,10 @@ class Adherent extends CommonObject
|
|||||||
$luser->birth=$this->birth;
|
$luser->birth=$this->birth;
|
||||||
$luser->address=$this->address;
|
$luser->address=$this->address;
|
||||||
$luser->zip=$this->zip;
|
$luser->zip=$this->zip;
|
||||||
$luser->town=$this->town;
|
$luser->town=$this->town;
|
||||||
$luser->country_id=$this->country_id;
|
$luser->country_id=$this->country_id;
|
||||||
$luser->state_id=$this->state_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;
|
||||||
|
|||||||
@ -28,30 +28,30 @@
|
|||||||
*/
|
*/
|
||||||
class AdvanceTargetingMailing extends CommonObject
|
class AdvanceTargetingMailing extends CommonObject
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var DoliDB Database handler.
|
* @var DoliDB Database handler.
|
||||||
*/
|
*/
|
||||||
public $db;
|
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 string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='advtargetemailing';
|
public $element='advtargetemailing';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='advtargetemailing';
|
public $table_element='advtargetemailing';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int ID
|
* @var int ID
|
||||||
|
|||||||
@ -32,13 +32,13 @@ class Localtax extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='localtax';
|
public $element='localtax';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='localtax';
|
public $table_element='localtax';
|
||||||
|
|
||||||
public $picto='payment';
|
public $picto='payment';
|
||||||
|
|
||||||
var $ltt;
|
var $ltt;
|
||||||
@ -46,12 +46,12 @@ class Localtax extends CommonObject
|
|||||||
var $datep;
|
var $datep;
|
||||||
var $datev;
|
var $datev;
|
||||||
var $amount;
|
var $amount;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string proper name for given parameter
|
* @var string proper name for given parameter
|
||||||
*/
|
*/
|
||||||
public $label;
|
public $label;
|
||||||
|
|
||||||
var $fk_bank;
|
var $fk_bank;
|
||||||
var $fk_user_creat;
|
var $fk_user_creat;
|
||||||
var $fk_user_modif;
|
var $fk_user_modif;
|
||||||
|
|||||||
@ -35,12 +35,12 @@ class PaymentSalary extends CommonObject
|
|||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='payment_salary';
|
public $element='payment_salary';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='payment_salary';
|
public $table_element='payment_salary';
|
||||||
|
|
||||||
public $picto='payment';
|
public $picto='payment';
|
||||||
|
|
||||||
public $tms;
|
public $tms;
|
||||||
|
|||||||
@ -35,12 +35,12 @@ class PaymentSocialContribution extends CommonObject
|
|||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='paiementcharge';
|
public $element='paiementcharge';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='paiementcharge';
|
public $table_element='paiementcharge';
|
||||||
|
|
||||||
public $picto = 'payment';
|
public $picto = 'payment';
|
||||||
|
|
||||||
var $fk_charge;
|
var $fk_charge;
|
||||||
@ -716,5 +716,3 @@ class PaymentSocialContribution extends CommonObject
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,21 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* or see http://www.gnu.org/
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class to manage comment
|
* Class to manage comment
|
||||||
*/
|
*/
|
||||||
@ -8,11 +25,11 @@ class Comment extends CommonObject
|
|||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='comment';
|
public $element='comment';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='comment';
|
public $table_element='comment';
|
||||||
|
|
||||||
public $fk_element;
|
public $fk_element;
|
||||||
public $element_type;
|
public $element_type;
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Events class
|
* Events class
|
||||||
*/
|
*/
|
||||||
class Events // extends CommonObject
|
class Events // extends CommonObject
|
||||||
{
|
{
|
||||||
@ -38,18 +38,18 @@ class Events // extends CommonObject
|
|||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='events';
|
public $element='events';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='events';
|
public $table_element='events';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int ID
|
* @var int ID
|
||||||
*/
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var DoliDB Database handler.
|
* @var DoliDB Database handler.
|
||||||
*/
|
*/
|
||||||
public $db;
|
public $db;
|
||||||
|
|||||||
@ -31,13 +31,13 @@ class Menubase
|
|||||||
/**
|
/**
|
||||||
* @var DoliDB Database handler.
|
* @var DoliDB Database handler.
|
||||||
*/
|
*/
|
||||||
public $db;
|
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)
|
||||||
*/
|
*/
|
||||||
@ -696,4 +696,3 @@ class Menubase
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -34,12 +34,12 @@ class Cronjob extends CommonObject
|
|||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='cronjob';
|
public $element='cronjob';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='cronjob';
|
public $table_element='cronjob';
|
||||||
|
|
||||||
public $picto = 'cron';
|
public $picto = 'cron';
|
||||||
|
|
||||||
public $entity;
|
public $entity;
|
||||||
|
|||||||
@ -32,13 +32,13 @@ class PaymentDonation extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='payment_donation';
|
public $element='payment_donation';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='payment_donation';
|
public $table_element='payment_donation';
|
||||||
|
|
||||||
public $picto = 'payment';
|
public $picto = 'payment';
|
||||||
|
|
||||||
public $rowid;
|
public $rowid;
|
||||||
@ -76,7 +76,7 @@ class PaymentDonation extends CommonObject
|
|||||||
* Use this->amounts to have list of lines for the payment
|
* Use this->amounts to have list of lines for the payment
|
||||||
*
|
*
|
||||||
* @param User $user User making payment
|
* @param User $user User making payment
|
||||||
* @param bool $notrigger false=launch triggers after, true=disable triggers
|
* @param bool $notrigger false=launch triggers after, true=disable triggers
|
||||||
* @return int <0 if KO, id of payment if OK
|
* @return int <0 if KO, id of payment if OK
|
||||||
*/
|
*/
|
||||||
function create($user, $notrigger=false)
|
function create($user, $notrigger=false)
|
||||||
|
|||||||
@ -31,8 +31,8 @@ class ExpeditionLineBatch extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='expeditionlignebatch';
|
public $element='expeditionlignebatch';
|
||||||
|
|
||||||
private static $_table_element='expeditiondet_batch'; //!< Name of table without prefix where object is stored
|
private static $_table_element='expeditiondet_batch'; //!< Name of table without prefix where object is stored
|
||||||
|
|
||||||
var $sellby;
|
var $sellby;
|
||||||
@ -63,15 +63,15 @@ class ExpeditionLineBatch extends CommonObject
|
|||||||
function fetchFromStock($id_stockdluo)
|
function fetchFromStock($id_stockdluo)
|
||||||
{
|
{
|
||||||
$sql = "SELECT";
|
$sql = "SELECT";
|
||||||
$sql.= " pb.batch,";
|
$sql.= " pb.batch,";
|
||||||
$sql.= " pl.sellby,";
|
$sql.= " pl.sellby,";
|
||||||
$sql.= " pl.eatby,";
|
$sql.= " pl.eatby,";
|
||||||
$sql.= " ps.fk_entrepot";
|
$sql.= " ps.fk_entrepot";
|
||||||
|
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."product_batch as pb";
|
$sql.= " FROM ".MAIN_DB_PREFIX."product_batch as pb";
|
||||||
$sql.= " JOIN ".MAIN_DB_PREFIX."product_stock as ps on pb.fk_product_stock=ps.rowid";
|
$sql.= " JOIN ".MAIN_DB_PREFIX."product_stock as ps on pb.fk_product_stock=ps.rowid";
|
||||||
$sql.= ' LEFT JOIN '.MAIN_DB_PREFIX."product_lot as pl on pl.batch = pb.batch AND pl.fk_product = ps.fk_product";
|
$sql.= ' LEFT JOIN '.MAIN_DB_PREFIX."product_lot as pl on pl.batch = pb.batch AND pl.fk_product = ps.fk_product";
|
||||||
$sql.= " WHERE pb.rowid = ".(int) $id_stockdluo;
|
$sql.= " WHERE pb.rowid = ".(int) $id_stockdluo;
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
|
dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
|
||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
|
|||||||
@ -34,12 +34,12 @@ class PaymentExpenseReport extends CommonObject
|
|||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='payment_expensereport';
|
public $element='payment_expensereport';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='payment_expensereport';
|
public $table_element='payment_expensereport';
|
||||||
|
|
||||||
public $picto = 'payment';
|
public $picto = 'payment';
|
||||||
|
|
||||||
var $rowid;
|
var $rowid;
|
||||||
|
|||||||
@ -34,26 +34,26 @@ require_once DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php";
|
|||||||
*/
|
*/
|
||||||
class CommandeFournisseurDispatch extends CommonObject
|
class CommandeFournisseurDispatch extends CommonObject
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var DoliDB Database handler.
|
* @var DoliDB Database handler.
|
||||||
*/
|
*/
|
||||||
public $db;
|
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 string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='commandefournisseurdispatch';
|
public $element='commandefournisseurdispatch';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -17,8 +17,8 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/loan/class/loanschedule.class.php
|
* \file htdocs/loan/class/loanschedule.class.php
|
||||||
* \ingroup facture
|
* \ingroup loan
|
||||||
* \brief File of class to manage schedule of loans
|
* \brief File of class to manage schedule of loans
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
||||||
@ -33,11 +33,11 @@ class LoanSchedule extends CommonObject
|
|||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='loan_schedule';
|
public $element='loan_schedule';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='loan_schedule';
|
public $table_element='loan_schedule';
|
||||||
|
|
||||||
var $fk_loan;
|
var $fk_loan;
|
||||||
var $datec='';
|
var $datec='';
|
||||||
@ -547,4 +547,3 @@ class LoanSchedule extends CommonObject
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -34,11 +34,11 @@ class PaymentLoan extends CommonObject
|
|||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='payment_loan';
|
public $element='payment_loan';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='payment_loan';
|
public $table_element='payment_loan';
|
||||||
|
|
||||||
var $fk_loan;
|
var $fk_loan;
|
||||||
var $datec='';
|
var $datec='';
|
||||||
|
|||||||
@ -38,12 +38,12 @@ class Opensurveysondage extends CommonObject
|
|||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='opensurvey_sondage';
|
public $element='opensurvey_sondage';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='opensurvey_sondage';
|
public $table_element='opensurvey_sondage';
|
||||||
|
|
||||||
public $picto = 'opensurvey';
|
public $picto = 'opensurvey';
|
||||||
|
|
||||||
public $id_sondage;
|
public $id_sondage;
|
||||||
|
|||||||
@ -33,8 +33,8 @@ class Productbatch extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='productbatch';
|
public $element='productbatch';
|
||||||
|
|
||||||
private static $_table_element='product_batch'; //!< Name of table without prefix where object is stored
|
private static $_table_element='product_batch'; //!< Name of table without prefix where object is stored
|
||||||
|
|
||||||
var $tms='';
|
var $tms='';
|
||||||
|
|||||||
@ -31,13 +31,13 @@ class Productcustomerprice extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element = 'product_customer_price';
|
public $element = 'product_customer_price';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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 = 'product_customer_price';
|
public $table_element = 'product_customer_price';
|
||||||
|
|
||||||
var $entity;
|
var $entity;
|
||||||
var $datec = '';
|
var $datec = '';
|
||||||
var $tms = '';
|
var $tms = '';
|
||||||
@ -962,7 +962,7 @@ class PriceByCustomerLine
|
|||||||
* @var int ID
|
* @var int ID
|
||||||
*/
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
var $entity;
|
var $entity;
|
||||||
var $datec = '';
|
var $datec = '';
|
||||||
var $tms = '';
|
var $tms = '';
|
||||||
|
|||||||
@ -34,12 +34,12 @@ class Propalmergepdfproduct extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='propal_merge_pdf_product';
|
public $element='propal_merge_pdf_product';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='propal_merge_pdf_product';
|
public $table_element='propal_merge_pdf_product';
|
||||||
|
|
||||||
var $fk_product;
|
var $fk_product;
|
||||||
var $file_name;
|
var $file_name;
|
||||||
|
|||||||
@ -36,13 +36,13 @@ class Project extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element = 'project';
|
public $element = 'project';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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 = 'projet';
|
public $table_element = 'projet';
|
||||||
|
|
||||||
public $table_element_line = 'projet_task';
|
public $table_element_line = 'projet_task';
|
||||||
public $fk_element = 'fk_projet';
|
public $fk_element = 'fk_projet';
|
||||||
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
|
||||||
@ -732,10 +732,10 @@ class Project extends CommonObject
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete tasks with no children first, then task with children recursively
|
* Delete tasks with no children first, then task with children recursively
|
||||||
*
|
*
|
||||||
* @param User $user User
|
* @param User $user User
|
||||||
* @return int <0 if KO, 1 if OK
|
* @return int <0 if KO, 1 if OK
|
||||||
*/
|
*/
|
||||||
@ -763,7 +763,7 @@ class Project extends CommonObject
|
|||||||
{
|
{
|
||||||
if (count($this->lines)) $this->deleteTasks($this->lines);
|
if (count($this->lines)) $this->deleteTasks($this->lines);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -34,24 +34,24 @@ class Task extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='project_task';
|
public $element='project_task';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='projet_task';
|
public $table_element='projet_task';
|
||||||
|
|
||||||
public $fk_element='fk_task';
|
public $fk_element='fk_task';
|
||||||
public $picto = 'task';
|
public $picto = 'task';
|
||||||
protected $childtables=array('projet_task_time'); // To test if we can delete object
|
protected $childtables=array('projet_task_time'); // To test if we can delete object
|
||||||
|
|
||||||
var $fk_task_parent;
|
var $fk_task_parent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string proper name for given parameter
|
* @var string proper name for given parameter
|
||||||
*/
|
*/
|
||||||
public $label;
|
public $label;
|
||||||
|
|
||||||
var $description;
|
var $description;
|
||||||
var $duration_effective; // total of time spent on this task
|
var $duration_effective; // total of time spent on this task
|
||||||
var $planned_workload;
|
var $planned_workload;
|
||||||
|
|||||||
@ -33,13 +33,13 @@ class Dolresource extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* @var string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element='dolresource';
|
public $element='dolresource';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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='resource';
|
public $table_element='resource';
|
||||||
|
|
||||||
public $picto = 'resource';
|
public $picto = 'resource';
|
||||||
|
|
||||||
public $resource_id;
|
public $resource_id;
|
||||||
|
|||||||
@ -36,26 +36,26 @@ class Ticketlogs// extends CommonObject
|
|||||||
* @var DoliDB Database handler.
|
* @var DoliDB Database handler.
|
||||||
*/
|
*/
|
||||||
public $db;
|
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 string ID to identify managed object
|
* @var string ID to identify managed object
|
||||||
*/
|
*/
|
||||||
public $element = 'ticketlogs';
|
public $element = 'ticketlogs';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @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 = 'ticketlogs'; //!< Name of table without prefix where object is stored
|
public $table_element = 'ticketlogs'; //!< Name of table without prefix where object is stored
|
||||||
|
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user