';
if ($permtoadd)
{
- print '
';
+ print '';
print '
';
print '';
}
diff --git a/htdocs/cron/class/cronjob.class.php b/htdocs/cron/class/cronjob.class.php
index 657653c9997..02fd4a95643 100644
--- a/htdocs/cron/class/cronjob.class.php
+++ b/htdocs/cron/class/cronjob.class.php
@@ -34,12 +34,12 @@ class Cronjob extends CommonObject
* @var string ID to identify managed object
*/
public $element='cronjob';
-
+
/**
* @var string Name of table without prefix where object is stored
*/
- public $table_element='cronjob';
-
+ public $table_element='cronjob';
+
public $picto = 'cron';
public $entity;
diff --git a/htdocs/don/class/paymentdonation.class.php b/htdocs/don/class/paymentdonation.class.php
index 092bc77fbb2..2db4c401818 100644
--- a/htdocs/don/class/paymentdonation.class.php
+++ b/htdocs/don/class/paymentdonation.class.php
@@ -32,13 +32,13 @@ class PaymentDonation extends CommonObject
/**
* @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
*/
public $table_element='payment_donation';
-
+
public $picto = 'payment';
public $rowid;
@@ -76,7 +76,7 @@ class PaymentDonation extends CommonObject
* Use this->amounts to have list of lines for the 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
*/
function create($user, $notrigger=false)
diff --git a/htdocs/expedition/class/expeditionbatch.class.php b/htdocs/expedition/class/expeditionbatch.class.php
index 540b584590b..18a5fdbec6b 100644
--- a/htdocs/expedition/class/expeditionbatch.class.php
+++ b/htdocs/expedition/class/expeditionbatch.class.php
@@ -31,8 +31,8 @@ class ExpeditionLineBatch extends CommonObject
/**
* @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
var $sellby;
@@ -63,15 +63,15 @@ class ExpeditionLineBatch extends CommonObject
function fetchFromStock($id_stockdluo)
{
$sql = "SELECT";
- $sql.= " pb.batch,";
- $sql.= " pl.sellby,";
- $sql.= " pl.eatby,";
- $sql.= " ps.fk_entrepot";
+ $sql.= " pb.batch,";
+ $sql.= " pl.sellby,";
+ $sql.= " pl.eatby,";
+ $sql.= " ps.fk_entrepot";
$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.= ' 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);
$resql=$this->db->query($sql);
diff --git a/htdocs/expensereport/class/expensereport.class.php b/htdocs/expensereport/class/expensereport.class.php
index aea15e13502..fb872ca2f5c 100644
--- a/htdocs/expensereport/class/expensereport.class.php
+++ b/htdocs/expensereport/class/expensereport.class.php
@@ -37,12 +37,12 @@ class ExpenseReport extends CommonObject
* @var string ID to identify managed object
*/
public $element='expensereport';
-
+
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='expensereport';
-
+
var $table_element_line = 'expensereport_det';
var $fk_element = 'fk_expensereport';
var $picto = 'trip';
@@ -2403,7 +2403,7 @@ class ExpenseReportLine
* @var DoliDB Database handler.
*/
public $db;
-
+
/**
* @var string Error code (or message)
*/
diff --git a/htdocs/expensereport/class/paymentexpensereport.class.php b/htdocs/expensereport/class/paymentexpensereport.class.php
index 52e866a80ec..732d55de298 100644
--- a/htdocs/expensereport/class/paymentexpensereport.class.php
+++ b/htdocs/expensereport/class/paymentexpensereport.class.php
@@ -34,12 +34,12 @@ class PaymentExpenseReport extends CommonObject
* @var string ID to identify managed object
*/
public $element='payment_expensereport';
-
+
/**
* @var string Name of table without prefix where object is stored
*/
- public $table_element='payment_expensereport';
-
+ public $table_element='payment_expensereport';
+
public $picto = 'payment';
var $rowid;
diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php
index 688f08e9666..5e4a18c32b3 100644
--- a/htdocs/fourn/class/fournisseur.commande.class.php
+++ b/htdocs/fourn/class/fournisseur.commande.class.php
@@ -44,22 +44,22 @@ class CommandeFournisseur extends CommonOrder
* @var string ID to identify managed object
*/
public $element='order_supplier';
-
+
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='commande_fournisseur';
-
+
public $table_element_line = 'commande_fournisseurdet';
public $fk_element = 'fk_commande';
public $picto='order';
-
+
/**
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
* @var int
*/
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
* @var integer
@@ -78,7 +78,7 @@ class CommandeFournisseur extends CommonOrder
* @var string
*/
public $ref;
-
+
public $ref_supplier;
public $brouillon;
public $statut; // 0=Draft -> 1=Validated -> 2=Approved -> 3=Ordered/Process runing -> 4=Received partially -> 5=Received totally -> (reopen) 4=Received partially
@@ -3109,7 +3109,7 @@ class CommandeFournisseurLigne extends CommonOrderLine
* @var string ID to identify managed object
*/
public $element='commande_fournisseurdet';
-
+
/**
* @var string Name of table without prefix where object is stored
*/
diff --git a/htdocs/fourn/class/fournisseur.commande.dispatch.class.php b/htdocs/fourn/class/fournisseur.commande.dispatch.class.php
index b2e5be57236..619ffd1d060 100644
--- a/htdocs/fourn/class/fournisseur.commande.dispatch.class.php
+++ b/htdocs/fourn/class/fournisseur.commande.dispatch.class.php
@@ -34,26 +34,26 @@ require_once DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php";
*/
class CommandeFournisseurDispatch extends CommonObject
{
- /**
+ /**
* @var DoliDB Database handler.
*/
- public $db;
-
+ public $db;
+
/**
* @var string Error code (or message)
*/
public $error;
-
+
/**
* @var string[] Error codes (or messages)
*/
public $errors = array();
-
+
/**
* @var string ID to identify managed object
*/
public $element='commandefournisseurdispatch';
-
+
/**
* @var string Name of table without prefix where object is stored
*/
diff --git a/htdocs/fourn/class/fournisseur.facture.class.php b/htdocs/fourn/class/fournisseur.facture.class.php
index 2db826d4f5f..f9f352c1f70 100644
--- a/htdocs/fourn/class/fournisseur.facture.class.php
+++ b/htdocs/fourn/class/fournisseur.facture.class.php
@@ -45,22 +45,22 @@ class FactureFournisseur extends CommonInvoice
* @var string ID to identify managed object
*/
public $element='invoice_supplier';
-
+
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='facture_fourn';
-
+
public $table_element_line='facture_fourn_det';
public $fk_element='fk_facture_fourn';
public $picto='bill';
-
+
/**
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
* @var int
*/
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
* @var integer
@@ -110,13 +110,13 @@ class FactureFournisseur extends CommonInvoice
public $total_localtax1=0;
public $total_localtax2=0;
public $total_ttc=0;
-
+
/**
* @deprecated
* @see note_private, note_public
*/
public $note;
-
+
public $note_private;
public $note_public;
public $propalid;
@@ -676,7 +676,9 @@ class FactureFournisseur extends CommonInvoice
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
function fetch_lines()
{
- $sql = 'SELECT f.rowid, f.ref as ref_supplier, f.description, f.pu_ht, f.pu_ttc, f.qty, f.remise_percent, f.vat_src_code, f.tva_tx';
+ $this->lines = array();
+
+ $sql = 'SELECT f.rowid, f.ref as ref_supplier, f.description, f.date_start, f.date_end, f.pu_ht, f.pu_ttc, f.qty, f.remise_percent, f.vat_src_code, f.tva_tx';
$sql.= ', f.localtax1_tx, f.localtax2_tx, f.localtax1_type, f.localtax2_type, f.total_localtax1, f.total_localtax2, f.fk_facture_fourn ';
$sql.= ', f.total_ht, f.tva as total_tva, f.total_ttc, f.fk_product, f.product_type, f.info_bits, f.rang, f.special_code, f.fk_parent_line, f.fk_unit';
$sql.= ', p.rowid as product_id, p.ref as product_ref, p.label as label, p.description as product_desc';
@@ -686,7 +688,6 @@ class FactureFournisseur extends CommonInvoice
$sql.= ' WHERE fk_facture_fourn='.$this->id;
$sql.= ' ORDER BY f.rang, f.rowid';
-
dol_syslog(get_class($this)."::fetch_lines", LOG_DEBUG);
$resql_rows = $this->db->query($sql);
if ($resql_rows)
@@ -704,6 +705,9 @@ class FactureFournisseur extends CommonInvoice
$line->id = $obj->rowid;
$line->rowid = $obj->rowid;
$line->description = $obj->description;
+ $line->date_start = $obj->date_start;
+ $line->date_end = $obj->date_end;
+
$line->product_ref = $obj->product_ref;
$line->ref = $obj->product_ref;
$line->ref_supplier = $obj->ref_supplier;
@@ -1741,7 +1745,7 @@ class FactureFournisseur extends CommonInvoice
public function updateline($id, $desc, $pu, $vatrate, $txlocaltax1=0, $txlocaltax2=0, $qty=1, $idproduct=0, $price_base_type='HT', $info_bits=0, $type=0, $remise_percent=0, $notrigger=false, $date_start='', $date_end='', $array_options=0, $fk_unit = null, $pu_ht_devise=0, $ref_supplier='')
{
global $mysoc;
- dol_syslog(get_class($this)."::updateline $id,$desc,$pu,$vatrate,$qty,$idproduct,$price_base_type,$info_bits,$type,$remise_percent,$fk_unit,$pu_ht_devise,$ref_supplier", LOG_DEBUG);
+ dol_syslog(get_class($this)."::updateline $id,$desc,$pu,$vatrate,$qty,$idproduct,$price_base_type,$info_bits,$type,$remise_percent,$notrigger,$date_start,$date_end,$fk_unit,$pu_ht_devise,$ref_supplier", LOG_DEBUG);
include_once DOL_DOCUMENT_ROOT.'/core/lib/price.lib.php';
$pu = price2num($pu);
@@ -1821,6 +1825,9 @@ class FactureFournisseur extends CommonInvoice
$line->remise_percent = $remise_percent;
$line->ref_supplier = $ref_supplier;
+ $line->date_start = $date_start;
+ $line->date_end = $date_end;
+
$line->vat_src_code=$vat_src_code;
$line->tva_tx = $vatrate;
$line->localtax1_tx = $txlocaltax1;
@@ -2581,7 +2588,7 @@ class SupplierInvoiceLine extends CommonObjectLine
* @var string ID to identify managed object
*/
public $element='facture_fourn_det';
-
+
/**
* @var string Name of table without prefix where object is stored
*/
@@ -2594,7 +2601,7 @@ class SupplierInvoiceLine extends CommonObjectLine
* @see product_ref
*/
public $ref;
-
+
/**
* Internal ref
* @var string
@@ -2613,7 +2620,7 @@ class SupplierInvoiceLine extends CommonObjectLine
* @see label
*/
public $libelle;
-
+
/**
* Product description
* @var string
@@ -2627,7 +2634,7 @@ class SupplierInvoiceLine extends CommonObjectLine
* @see subprice
*/
public $pu_ht;
-
+
public $subprice;
/**
@@ -2643,7 +2650,7 @@ class SupplierInvoiceLine extends CommonObjectLine
* @see total_tva
*/
public $tva;
-
+
public $total_tva;
/**
@@ -2665,6 +2672,9 @@ class SupplierInvoiceLine extends CommonObjectLine
*/
public $description;
+ public $date_start;
+ public $date_end;
+
public $skip_update_total; // Skip update price total for special lines
/**
@@ -2722,7 +2732,7 @@ class SupplierInvoiceLine extends CommonObjectLine
*/
public function fetch($rowid)
{
- $sql = 'SELECT f.rowid, f.ref as ref_supplier, f.description, f.pu_ht, f.pu_ttc, f.qty, f.remise_percent, f.tva_tx';
+ $sql = 'SELECT f.rowid, f.ref as ref_supplier, f.description, f.date_start, f.date_end, f.pu_ht, f.pu_ttc, f.qty, f.remise_percent, f.tva_tx';
$sql.= ', f.localtax1_type, f.localtax2_type, f.localtax1_tx, f.localtax2_tx, f.total_localtax1, f.total_localtax2 ';
$sql.= ', f.total_ht, f.tva as total_tva, f.total_ttc, f.fk_facture_fourn, f.fk_product, f.product_type, f.info_bits, f.rang, f.special_code, f.fk_parent_line, f.fk_unit';
$sql.= ', p.rowid as product_id, p.ref as product_ref, p.label as label, p.description as product_desc';
@@ -2749,6 +2759,8 @@ class SupplierInvoiceLine extends CommonObjectLine
$this->rowid = $obj->rowid;
$this->fk_facture_fourn = $obj->fk_facture_fourn;
$this->description = $obj->description;
+ $this->date_start = $obj->date_start;
+ $this->date_end = $obj->date_end;
$this->product_ref = $obj->product_ref;
$this->ref_supplier = $obj->ref_supplier;
$this->libelle = $obj->label;
@@ -2880,6 +2892,8 @@ class SupplierInvoiceLine extends CommonObjectLine
$sql = "UPDATE ".MAIN_DB_PREFIX."facture_fourn_det SET";
$sql.= " description ='".$this->db->escape($this->description)."'";
$sql.= ", ref ='".$this->db->escape($this->ref_supplier ? $this->ref_supplier : $this->ref)."'";
+ $sql.= ", date_start = ".($this->date_start != '' ? "'".$this->db->idate($this->date_start)."'" : "null");
+ $sql.= ", date_end = ".($this->date_end != '' ? "'".$this->db->idate($this->date_end)."'" : "null");
$sql.= ", pu_ht = ".price2num($this->pu_ht);
$sql.= ", pu_ttc = ".price2num($this->pu_ttc);
$sql.= ", qty = ".price2num($this->qty);
@@ -3054,12 +3068,11 @@ class SupplierInvoiceLine extends CommonObjectLine
$sql.= ", ".price2num($this->multicurrency_total_ttc);
$sql.= ')';
- dol_syslog(get_class($this)."::insert", LOG_DEBUG);
$resql=$this->db->query($sql);
if ($resql)
{
$this->id=$this->db->last_insert_id(MAIN_DB_PREFIX.$this->table_element);
- $this->rowid=$this->id;
+ $this->rowid=$this->id; // backward compatibility
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) // For avoid conflicts if trigger used
{
diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php
index e26f6faf8b3..2d2d203530a 100644
--- a/htdocs/fourn/facture/card.php
+++ b/htdocs/fourn/facture/card.php
@@ -1097,6 +1097,7 @@ if (empty($reshook))
$product_desc=(GETPOST('dp_desc')?GETPOST('dp_desc'):'');
$date_start=dol_mktime(GETPOST('date_start'.$predef.'hour'), GETPOST('date_start'.$predef.'min'), GETPOST('date_start' . $predef . 'sec'), GETPOST('date_start'.$predef.'month'), GETPOST('date_start'.$predef.'day'), GETPOST('date_start'.$predef.'year'));
$date_end=dol_mktime(GETPOST('date_end'.$predef.'hour'), GETPOST('date_end'.$predef.'min'), GETPOST('date_end' . $predef . 'sec'), GETPOST('date_end'.$predef.'month'), GETPOST('date_end'.$predef.'day'), GETPOST('date_end'.$predef.'year'));
+
$prod_entry_mode = GETPOST('prod_entry_mode');
if ($prod_entry_mode == 'free')
{
@@ -1211,7 +1212,7 @@ if (empty($reshook))
if(!empty($productsupplier->desc_supplier) && !empty($conf->global->PRODUIT_FOURN_TEXTS)) {
$desc = $productsupplier->desc_supplier;
} else $desc = $productsupplier->description;
-
+
if (trim($product_desc) != trim($desc)) $desc = dol_concatdesc($desc, $product_desc);
$type = $productsupplier->type;
diff --git a/htdocs/loan/class/loan.class.php b/htdocs/loan/class/loan.class.php
index 96898ae270e..e608cb3b8da 100644
--- a/htdocs/loan/class/loan.class.php
+++ b/htdocs/loan/class/loan.class.php
@@ -33,9 +33,9 @@ class Loan extends CommonObject
* @var string ID to identify managed object
*/
public $element='loan';
-
+
public $table='loan';
-
+
/**
* @var string Name of table without prefix where object is stored
*/
diff --git a/htdocs/loan/class/loanschedule.class.php b/htdocs/loan/class/loanschedule.class.php
index dff061be5ef..5ca9a288721 100644
--- a/htdocs/loan/class/loanschedule.class.php
+++ b/htdocs/loan/class/loanschedule.class.php
@@ -17,8 +17,8 @@
/**
* \file htdocs/loan/class/loanschedule.class.php
- * \ingroup facture
- * \brief File of class to manage schedule of loans
+ * \ingroup loan
+ * \brief File of class to manage schedule of loans
*/
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
*/
public $element='loan_schedule';
-
+
/**
* @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 $datec='';
diff --git a/htdocs/loan/class/paymentloan.class.php b/htdocs/loan/class/paymentloan.class.php
index 2190bf3265c..32b4080187f 100644
--- a/htdocs/loan/class/paymentloan.class.php
+++ b/htdocs/loan/class/paymentloan.class.php
@@ -34,11 +34,11 @@ class PaymentLoan extends CommonObject
* @var string ID to identify managed object
*/
public $element='payment_loan';
-
+
/**
* @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 $datec='';
diff --git a/htdocs/opensurvey/class/opensurveysondage.class.php b/htdocs/opensurvey/class/opensurveysondage.class.php
index c9e582d4aae..ae9578db9b7 100644
--- a/htdocs/opensurvey/class/opensurveysondage.class.php
+++ b/htdocs/opensurvey/class/opensurveysondage.class.php
@@ -38,12 +38,12 @@ class Opensurveysondage extends CommonObject
* @var string ID to identify managed object
*/
public $element='opensurvey_sondage';
-
+
/**
* @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 $id_sondage;
diff --git a/htdocs/product/class/productbatch.class.php b/htdocs/product/class/productbatch.class.php
index 264ac58616d..0fc3c50efbd 100644
--- a/htdocs/product/class/productbatch.class.php
+++ b/htdocs/product/class/productbatch.class.php
@@ -33,8 +33,8 @@ class Productbatch extends CommonObject
/**
* @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
var $tms='';
diff --git a/htdocs/product/class/productcustomerprice.class.php b/htdocs/product/class/productcustomerprice.class.php
index 64b4f8a00a8..bb3782be0bb 100644
--- a/htdocs/product/class/productcustomerprice.class.php
+++ b/htdocs/product/class/productcustomerprice.class.php
@@ -31,13 +31,13 @@ class Productcustomerprice extends CommonObject
/**
* @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
*/
- public $table_element = 'product_customer_price';
-
+ public $table_element = 'product_customer_price';
+
var $entity;
var $datec = '';
var $tms = '';
@@ -964,7 +964,7 @@ class PriceByCustomerLine
* @var int ID
*/
public $id;
-
+
var $entity;
var $datec = '';
var $tms = '';
diff --git a/htdocs/product/class/propalmergepdfproduct.class.php b/htdocs/product/class/propalmergepdfproduct.class.php
index bc5621e6eb3..3b9365d0850 100644
--- a/htdocs/product/class/propalmergepdfproduct.class.php
+++ b/htdocs/product/class/propalmergepdfproduct.class.php
@@ -34,12 +34,12 @@ class Propalmergepdfproduct extends CommonObject
/**
* @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
*/
- public $table_element='propal_merge_pdf_product';
+ public $table_element='propal_merge_pdf_product';
var $fk_product;
var $file_name;
diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php
index 50d45c54e2a..81be3d3d893 100644
--- a/htdocs/projet/class/project.class.php
+++ b/htdocs/projet/class/project.class.php
@@ -36,13 +36,13 @@ class Project extends CommonObject
/**
* @var string ID to identify managed object
*/
- public $element = 'project';
-
+ public $element = 'project';
+
/**
* @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 $fk_element = 'fk_projet';
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
@@ -734,10 +734,10 @@ class Project extends CommonObject
return -1;
}
}
-
+
/**
* Delete tasks with no children first, then task with children recursively
- *
+ *
* @param User $user User
* @return int <0 if KO, 1 if OK
*/
@@ -765,7 +765,7 @@ class Project extends CommonObject
{
if (count($this->lines)) $this->deleteTasks($this->lines);
}
-
+
return 1;
}
diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php
index 63b56a2d0b2..9404bbc5aaa 100644
--- a/htdocs/projet/class/task.class.php
+++ b/htdocs/projet/class/task.class.php
@@ -34,24 +34,24 @@ class Task extends CommonObject
/**
* @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
*/
- public $table_element='projet_task';
-
+ public $table_element='projet_task';
+
public $fk_element='fk_task';
public $picto = 'task';
protected $childtables=array('projet_task_time'); // To test if we can delete object
- var $fk_task_parent;
-
- /**
- * @var string proper name for given parameter
+ public $fk_task_parent;
+
+ /**
+ * @var string Label of task
*/
public $label;
-
+
var $description;
var $duration_effective; // total of time spent on this task
var $planned_workload;
diff --git a/htdocs/resource/class/dolresource.class.php b/htdocs/resource/class/dolresource.class.php
index b855a544cfa..de6666701d0 100644
--- a/htdocs/resource/class/dolresource.class.php
+++ b/htdocs/resource/class/dolresource.class.php
@@ -19,7 +19,6 @@
* \file resource/class/resource.class.php
* \ingroup resource
* \brief Class file for resource object
-
*/
require_once DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php";
@@ -33,13 +32,13 @@ class Dolresource extends CommonObject
/**
* @var string ID to identify managed object
*/
- public $element='dolresource';
-
+ public $element='dolresource';
+
/**
* @var string Name of table without prefix where object is stored
*/
- public $table_element='resource';
-
+ public $table_element='resource';
+
public $picto = 'resource';
public $resource_id;
diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php
index 8b211a66f64..3743ec6c0d0 100644
--- a/htdocs/ticket/class/ticket.class.php
+++ b/htdocs/ticket/class/ticket.class.php
@@ -52,7 +52,7 @@ class Ticket extends CommonObject
/**
* @var int Does ticketcore support multicompany module ? 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
*/
- public $ismultientitymanaged = 0;
+ public $ismultientitymanaged = 1;
/**
* @var int Does ticketcore support extrafields ? 0=No, 1=Yes
diff --git a/htdocs/ticket/class/ticketlogs.class.php b/htdocs/ticket/class/ticketlogs.class.php
index cf5f8dc122b..e006759ed51 100644
--- a/htdocs/ticket/class/ticketlogs.class.php
+++ b/htdocs/ticket/class/ticketlogs.class.php
@@ -36,26 +36,26 @@ class Ticketlogs// extends CommonObject
* @var DoliDB Database handler.
*/
public $db;
-
+
/**
- * @var string Error code (or message)
- */
- public $error;
-
+ * @var string Error code (or message)
+ */
+ public $error;
+
/**
- * @var string[] Error codes (or messages)
- */
- public $errors = array();
-
+ * @var string[] Error codes (or messages)
+ */
+ public $errors = array();
+
/**
- * @var string ID to identify managed object
- */
- public $element = 'ticketlogs';
-
+ * @var string ID to identify managed object
+ */
+ public $element = 'ticketlogs';
+
/**
- * @var string Name of table without prefix where object is stored
- */
- public $table_element = 'ticketlogs'; //!< 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 $id;