Merge remote-tracking branch 'upstream/develop' into camelCaps
This commit is contained in:
commit
57fb3dc2f4
@ -38,6 +38,12 @@ source_file = htdocs/langs/en_US/bills.lang
|
||||
source_lang = en_US
|
||||
type = MOZILLAPROPERTIES
|
||||
|
||||
[dolibarr.blockedlog]
|
||||
file_filter = htdocs/langs/<lang>/blockedlog.lang
|
||||
source_file = htdocs/langs/en_US/blockedlog.lang
|
||||
source_lang = en_US
|
||||
type = MOZILLAPROPERTIES
|
||||
|
||||
[dolibarr.bookmarks]
|
||||
file_filter = htdocs/langs/<lang>/bookmarks.lang
|
||||
source_file = htdocs/langs/en_US/bookmarks.lang
|
||||
|
||||
@ -13,6 +13,10 @@ NEW: Dolibarr can provide information in page title when multicompany is enabled
|
||||
Android application like DoliDroid able to provide native features for multicompany module
|
||||
|
||||
|
||||
For developers:
|
||||
Code changes to be more compatible with PSR2
|
||||
|
||||
|
||||
|
||||
***** ChangeLog for 8.0.0 compared to 7.0.0 *****
|
||||
|
||||
|
||||
@ -374,6 +374,9 @@
|
||||
</rule>
|
||||
<rule ref="PEAR.NamingConventions.ValidVariableName" />
|
||||
|
||||
<rule ref="PSR2.Classes.ClassDeclaration" />
|
||||
<rule ref="PSR2.Methods.FunctionClosingBrace" />
|
||||
|
||||
<!-- This is not in PSR2 -->
|
||||
<rule ref="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore">
|
||||
<severity>0</severity>
|
||||
|
||||
@ -65,7 +65,6 @@ class autoTranslator
|
||||
//ini_set('default_charset','UTF-8');
|
||||
ini_set('default_charset',$this->_outputpagecode);
|
||||
$this->parse_refLangTranslationFiles();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -347,5 +346,4 @@ class autoTranslator
|
||||
|
||||
return $rep;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -28,7 +28,7 @@ require_once DOL_DOCUMENT_ROOT . '/core/lib/accounting.lib.php';
|
||||
/**
|
||||
* Class to manage categories of an accounting account
|
||||
*/
|
||||
class AccountancyCategory // extends CommonObject
|
||||
class AccountancyCategory // extends CommonObject
|
||||
{
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
@ -58,7 +58,12 @@ class AccountancyCategory // extends CommonObject
|
||||
|
||||
public $id;
|
||||
public $code;
|
||||
public $label;
|
||||
|
||||
/**
|
||||
* @var string proper name for given parameter
|
||||
*/
|
||||
public $label;
|
||||
|
||||
public $range_account;
|
||||
public $sens;
|
||||
public $category_type;
|
||||
@ -824,5 +829,4 @@ class AccountancyCategory // extends CommonObject
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -30,20 +30,25 @@ class AccountingJournal extends CommonObject
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='accounting_journal';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='accounting_journal';
|
||||
|
||||
|
||||
public $fk_element = '';
|
||||
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $picto = 'generic';
|
||||
|
||||
var $rowid;
|
||||
public $rowid;
|
||||
|
||||
public $code;
|
||||
public $label;
|
||||
|
||||
/**
|
||||
* @var string proper name for given parameter
|
||||
*/
|
||||
public $label;
|
||||
|
||||
public $nature; // 1:various operations, 2:sale, 3:purchase, 4:bank, 5:expense-report, 8:inventory, 9: has-new
|
||||
public $active;
|
||||
|
||||
|
||||
@ -279,5 +279,4 @@ abstract class ActionsAdherentCardCommon
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -118,7 +118,6 @@ class ActionsAdherentCardDefault extends ActionsAdherentCardCommon
|
||||
{
|
||||
$this->LoadListDatas($limit, $offset, $sortfield, $sortorder);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -692,7 +692,6 @@ class Adherent extends CommonObject
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2116,7 +2115,6 @@ class Adherent extends CommonObject
|
||||
$this->error=$this->db->error();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2683,5 +2681,4 @@ class Adherent extends CommonObject
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -558,5 +558,4 @@ class AdherentType extends CommonObject
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -181,5 +181,4 @@ class AdherentStats extends Stats
|
||||
|
||||
return $this->_getAllByYear($sql);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -409,5 +409,4 @@ class Members extends DolibarrApi
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -320,5 +320,4 @@ class MembersTypes extends DolibarrApi
|
||||
|
||||
return $object;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -181,7 +181,6 @@ function create_script_table($list)
|
||||
print '</tr>';
|
||||
}
|
||||
print '</table>';
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -195,6 +195,5 @@ class DolibarrApiAccess implements iAuthenticate
|
||||
return $requires
|
||||
? static::$role == 'admin' || in_array(static::$role, (array) $requires)
|
||||
: true;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -918,5 +918,4 @@ class Setup extends DolibarrApi
|
||||
|
||||
return array('resultcode'=>$resultcode, 'resultcomment'=>$resultcomment, 'expectedchecksum'=> $outexpectedchecksum, 'currentchecksum'=> $outcurrentchecksum, 'out'=>$out);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -35,22 +35,22 @@ class Asset extends CommonObject
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element = 'asset';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
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
|
||||
*/
|
||||
public $ismultientitymanaged = 0;
|
||||
|
||||
|
||||
/**
|
||||
* @var int Does asset support extrafields ? 0=No, 1=Yes
|
||||
*/
|
||||
public $isextrafieldmanaged = 1;
|
||||
|
||||
|
||||
/**
|
||||
* @var string String with name of icon for asset. Must be the part after the 'object_' into object_asset.png
|
||||
*/
|
||||
@ -98,7 +98,12 @@ class Asset extends CommonObject
|
||||
public $rowid;
|
||||
public $ref;
|
||||
public $entity;
|
||||
public $label;
|
||||
|
||||
/**
|
||||
* @var string proper name for given parameter
|
||||
*/
|
||||
public $label;
|
||||
|
||||
public $amount;
|
||||
public $fk_soc;
|
||||
public $description;
|
||||
|
||||
@ -438,5 +438,4 @@ class AssetType extends CommonObject
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -54,7 +54,6 @@ class BlockedLogAuthority
|
||||
{
|
||||
|
||||
$this->db = $db;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -90,7 +89,6 @@ class BlockedLogAuthority
|
||||
{
|
||||
|
||||
return md5($this->signature.$this->blockchain);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -103,7 +101,6 @@ class BlockedLogAuthority
|
||||
{
|
||||
|
||||
return ($hash === $this->getBlockchainHash() );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -116,7 +113,6 @@ class BlockedLogAuthority
|
||||
{
|
||||
|
||||
$this->blockchain.=$block;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -197,7 +193,6 @@ class BlockedLogAuthority
|
||||
$this->error=$this->db->error();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -252,7 +247,6 @@ class BlockedLogAuthority
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -291,7 +285,6 @@ class BlockedLogAuthority
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -340,5 +333,4 @@ class BlockedLogAuthority
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -283,7 +283,6 @@ class BlockedLog
|
||||
}
|
||||
|
||||
return '<i class="opacitymedium">'.$langs->trans('ImpossibleToReloadObject', $this->element, $this->fk_object).'</i>';
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -676,7 +675,6 @@ class BlockedLog
|
||||
$this->error=$this->db->error();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -716,8 +714,6 @@ class BlockedLog
|
||||
if($res===false) return false;
|
||||
|
||||
return true;
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1060,5 +1056,4 @@ class BlockedLog
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -226,7 +226,6 @@ class Bookmark extends CommonObject
|
||||
$this->error=$this->db->lasterror();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -256,5 +255,4 @@ class Bookmark extends CommonObject
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -138,6 +138,5 @@ class Auth
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -167,7 +167,6 @@ class Facturation
|
||||
$_SESSION['poscart']=$newcartarray;
|
||||
|
||||
$this->raz();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -269,7 +268,6 @@ class Facturation
|
||||
$this->prixTotalHt('RESET');
|
||||
$this->montantTva('RESET');
|
||||
$this->prixTotalTtc('RESET');
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -324,7 +322,6 @@ class Facturation
|
||||
{
|
||||
$this->ref = $aRef;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -348,7 +345,6 @@ class Facturation
|
||||
{
|
||||
$this->qte = $aQte;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -372,7 +368,6 @@ class Facturation
|
||||
{
|
||||
$this->stock = $aStock;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -396,7 +391,6 @@ class Facturation
|
||||
{
|
||||
$this->remise_percent = $aRemisePercent;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -421,7 +415,6 @@ class Facturation
|
||||
$this->montant_remise = $aMontantRemise;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -446,7 +439,6 @@ class Facturation
|
||||
$this->prix = $aPrix;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -470,7 +462,6 @@ class Facturation
|
||||
$this->tva = $aTva;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -518,7 +509,6 @@ class Facturation
|
||||
$this->mode_reglement = $aModeReglement;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -543,7 +533,6 @@ class Facturation
|
||||
$this->montant_encaisse = $aMontantEncaisse;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -567,7 +556,6 @@ class Facturation
|
||||
$this->montant_rendu = $aMontantRendu;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -637,7 +625,6 @@ class Facturation
|
||||
$this->montant_tva = $aMontantTva;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -661,5 +648,4 @@ class Facturation
|
||||
$this->prix_total_ttc = $aTotalTtc;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
* Copyright (C) 2006-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
|
||||
* Copyright (C) 2013-2016 Juanjo Menent <jmenent@2byte.es>
|
||||
* Copyright (C) 2013-2016 Philippe Grand <philippe.grand@atoo-net.com>
|
||||
* Copyright (C) 2013-2018 Philippe Grand <philippe.grand@atoo-net.com>
|
||||
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
|
||||
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
||||
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
|
||||
@ -51,7 +51,7 @@ class Categorie extends CommonObject
|
||||
const TYPE_USER = 'user';
|
||||
const TYPE_PROJECT = 'project';
|
||||
const TYPE_ACCOUNT = 'bank_account';
|
||||
const TYPE_BANK_LINE = 'bank_line';
|
||||
const TYPE_BANK_LINE = 'bank_line';
|
||||
|
||||
public $picto = 'category';
|
||||
|
||||
@ -152,14 +152,19 @@ class Categorie extends CommonObject
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='category';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='categorie';
|
||||
|
||||
public $fk_parent;
|
||||
public $label;
|
||||
|
||||
/**
|
||||
* @var string proper name for given parameter
|
||||
*/
|
||||
public $label;
|
||||
|
||||
public $description;
|
||||
/**
|
||||
* @var string Color
|
||||
|
||||
@ -437,7 +437,6 @@ class ActionComm extends CommonObject
|
||||
$this->error=$this->db->lasterror();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -648,7 +647,6 @@ class ActionComm extends CommonObject
|
||||
}
|
||||
|
||||
return $num;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1692,5 +1690,4 @@ class ActionComm extends CommonObject
|
||||
|
||||
return $error;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -228,5 +228,4 @@ class ActionCommReminder extends CommonObject
|
||||
{
|
||||
$this->initAsSpecimenCommon();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -293,7 +293,6 @@ class AgendaEvents extends DolibarrApi
|
||||
'message' => 'Agenda Event deleted'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -226,5 +226,4 @@ class CActionComm
|
||||
$transcode=$langs->trans("Action".$this->code);
|
||||
if ($transcode != "Action".$this->code) return $transcode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -44,7 +44,6 @@ class ICal
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -66,7 +66,6 @@ $modulesdir = dolGetModulesDirs('/mailings');
|
||||
$object = new Mailing($db);
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Actions
|
||||
*/
|
||||
@ -330,16 +329,14 @@ if ($object->fetch($id) >= 0)
|
||||
// Si le module mailing est qualifie
|
||||
if ($qualified)
|
||||
{
|
||||
$var = ! $var;
|
||||
|
||||
if ($allowaddtarget)
|
||||
{
|
||||
print '<form '.$bctag[$var].' 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">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<div '.$bctag[$var].'>';
|
||||
print '<div class="oddeven tagtr">';
|
||||
}
|
||||
|
||||
print '<div class="tagtd">';
|
||||
|
||||
@ -974,5 +974,4 @@ class AdvanceTargetingMailing extends CommonObject
|
||||
|
||||
return $return_sql_criteria;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -93,7 +93,6 @@ class Mailing extends CommonObject
|
||||
$this->statut_dest[1] = 'MailingStatusSent';
|
||||
$this->statut_dest[2] = 'MailingStatusRead';
|
||||
$this->statut_dest[3] = 'MailingStatusReadAndUnsubscribe'; // Read but ask to not be contacted anymore
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -647,5 +646,4 @@ class Mailing extends CommonObject
|
||||
if ($statut==3) return $langs->trans("MailingStatusNotContact").' '.img_picto($langs->trans("MailingStatusNotContact"),'statut3');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -491,7 +491,6 @@ class Proposals extends DolibarrApi
|
||||
'message' => 'Commercial Proposal deleted'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -49,22 +49,22 @@ class Propal extends CommonObject
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='propal';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='propal';
|
||||
|
||||
|
||||
public $table_element_line='propaldet';
|
||||
public $fk_element='fk_propal';
|
||||
public $picto='propal';
|
||||
|
||||
|
||||
/**
|
||||
* 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
|
||||
@ -1578,10 +1578,10 @@ class Propal extends CommonObject
|
||||
$sql = 'SELECT d.rowid, d.fk_propal, d.fk_parent_line, d.label as custom_label, d.description, d.price, d.vat_src_code, d.tva_tx, d.localtax1_tx, d.localtax2_tx, d.localtax1_type, d.localtax2_type, d.qty, d.fk_remise_except, d.remise_percent, d.subprice, d.fk_product,';
|
||||
$sql.= ' d.info_bits, d.total_ht, d.total_tva, d.total_localtax1, d.total_localtax2, d.total_ttc, d.fk_product_fournisseur_price as fk_fournprice, d.buy_price_ht as pa_ht, d.special_code, d.rang, d.product_type,';
|
||||
$sql.= ' d.fk_unit,';
|
||||
$sql.= ' p.ref as product_ref, p.description as product_desc, p.fk_product_type, p.label as product_label,';
|
||||
$sql.= ' p.ref as product_ref, p.description as product_desc, p.fk_product_type, p.label as product_label, p.tobach as product_batch,';
|
||||
$sql.= ' p.weight, p.weight_units, p.volume, p.volume_units,';
|
||||
$sql.= ' d.date_start, d.date_end';
|
||||
$sql.= ' ,d.fk_multicurrency, d.multicurrency_code, d.multicurrency_subprice, d.multicurrency_total_ht, d.multicurrency_total_tva, d.multicurrency_total_ttc';
|
||||
$sql.= ' d.date_start, d.date_end,';
|
||||
$sql.= ' d.fk_multicurrency, d.multicurrency_code, d.multicurrency_subprice, d.multicurrency_total_ht, d.multicurrency_total_tva, d.multicurrency_total_ttc';
|
||||
$sql.= ' FROM '.MAIN_DB_PREFIX.'propaldet as d';
|
||||
$sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'product as p ON (d.fk_product = p.rowid)';
|
||||
$sql.= ' WHERE d.fk_propal = '.$this->id;
|
||||
@ -1643,7 +1643,8 @@ class Propal extends CommonObject
|
||||
$line->libelle = $objp->product_label; // TODO deprecated
|
||||
$line->product_label = $objp->product_label;
|
||||
$line->product_desc = $objp->product_desc; // Description produit
|
||||
$line->fk_product_type = $objp->fk_product_type;
|
||||
$line->product_tobatch = $objp->product_tobatch;
|
||||
$line->fk_product_type = $objp->fk_product_type; // TODO deprecated
|
||||
$line->fk_unit = $objp->fk_unit;
|
||||
$line->weight = $objp->weight;
|
||||
$line->weight_units = $objp->weight_units;
|
||||
@ -3219,7 +3220,7 @@ class Propal extends CommonObject
|
||||
{
|
||||
$response->nbtodo++;
|
||||
$response->total+=$obj->total_ht;
|
||||
|
||||
|
||||
if ($mode == 'opened')
|
||||
{
|
||||
$datelimit = $this->db->jdate($obj->datefin);
|
||||
@ -3530,8 +3531,8 @@ class Propal extends CommonObject
|
||||
*/
|
||||
function getLinesArray()
|
||||
{
|
||||
// TODO Duplicate with fetch_lines ? Wich one to keep ?
|
||||
|
||||
return $this->fetch_lines();
|
||||
/*
|
||||
$this->lines = array();
|
||||
|
||||
$sql = 'SELECT pt.rowid, pt.label as custom_label, pt.description, pt.fk_product, pt.fk_remise_except,';
|
||||
@ -3620,7 +3621,7 @@ class Propal extends CommonObject
|
||||
{
|
||||
$this->error=$this->db->error();
|
||||
return -1;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
/**
|
||||
@ -3684,7 +3685,7 @@ class PropaleLigne extends CommonObjectLine
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='propaldet';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
@ -4255,5 +4256,4 @@ class PropaleLigne extends CommonObjectLine
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -473,7 +473,6 @@ class Orders extends DolibarrApi
|
||||
'message' => 'Order deleted'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -3428,7 +3428,6 @@ class Commande extends CommonOrder
|
||||
if ($statut==self::STATUS_CLOSED && ($billed && empty($conf->global->WORKFLOW_BILL_ON_SHIPMENT))) return '<span class="hideonsmartphone">'.$langs->trans('StatusOrderProcessed').$billedtext.' </span>'.img_picto($langs->trans('StatusOrderProcessed').$billedtext,'statut6');
|
||||
if ($statut==self::STATUS_CLOSED && (! empty($conf->global->WORKFLOW_BILL_ON_SHIPMENT))) return '<span class="hideonsmartphone">'.$langs->trans('StatusOrderDelivered').' </span>'.img_picto($langs->trans('StatusOrderDelivered'),'statut6');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -222,6 +222,5 @@ class CommandeStats extends Stats
|
||||
|
||||
return $this->_getAllByProduct($sql);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1175,7 +1175,6 @@ class Account extends CommonObject
|
||||
}
|
||||
|
||||
return $solde;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1520,7 +1519,6 @@ class Account extends CommonObject
|
||||
*/
|
||||
function info($id)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1565,7 +1563,6 @@ class Account extends CommonObject
|
||||
|
||||
//Get the order the properties are shown
|
||||
return $fieldarray;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1639,7 +1636,6 @@ class Account extends CommonObject
|
||||
$this->owner_address = 'Owner address';
|
||||
$this->country_id = 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -2331,5 +2327,4 @@ class AccountLine extends CommonObject
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -33,7 +33,11 @@ class BankCateg // extends CommonObject
|
||||
public $picto='generic';
|
||||
|
||||
public $id;
|
||||
public $label;
|
||||
|
||||
/**
|
||||
* @var string proper name for given parameter
|
||||
*/
|
||||
public $label;
|
||||
|
||||
|
||||
/**
|
||||
@ -339,5 +343,4 @@ class BankCateg // extends CommonObject
|
||||
$this->id = 0;
|
||||
$this->label = '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -601,5 +601,4 @@ class PaymentVarious extends CommonObject
|
||||
dol_print_error($this->db);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -154,7 +154,6 @@ class Deplacement extends CommonObject
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -454,5 +453,4 @@ class Deplacement extends CommonObject
|
||||
dol_print_error($this->db);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1259,5 +1259,4 @@ class Invoices extends DolibarrApi
|
||||
}
|
||||
return $invoice;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1860,7 +1860,5 @@ class FactureLigneRec extends CommonInvoiceLine
|
||||
$this->db->rollback();
|
||||
return -2;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1552,7 +1552,6 @@ class Facture extends CommonInvoice
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -224,7 +224,5 @@ class FactureStats extends Stats
|
||||
|
||||
return $this->_getAllByProduct($sql);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -482,5 +482,4 @@ class PaymentTerm // extends CommonObject
|
||||
$this->nbjour='';
|
||||
$this->decalage='';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -644,14 +644,13 @@ class Localtax extends CommonObject
|
||||
*
|
||||
* @param int $status Statut
|
||||
* @param int $mode 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
|
||||
* @return string Libelle du statut
|
||||
* @return string Libelle du statut
|
||||
*/
|
||||
// phpcs:ignore PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
|
||||
function LibStatut($status,$mode=0)
|
||||
function LibStatut($status, $mode=0)
|
||||
{
|
||||
global $langs; // TODO Renvoyer le libelle anglais et faire traduction a affichage
|
||||
global $langs; // TODO Renvoyer le libelle anglais et faire traduction a affichage
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1106,5 +1106,4 @@ class RemiseCheque extends CommonObject
|
||||
}
|
||||
return $langs->trans('Unknown');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -369,8 +369,5 @@ class Cpaiement
|
||||
$this->active = '';
|
||||
$this->accountancy_code = '';
|
||||
$this->module = '';
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -165,7 +165,6 @@ class BonPrelevement extends CommonObject
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1467,7 +1466,6 @@ class BonPrelevement extends CommonObject
|
||||
if (! empty($conf->global->MAIN_UMASK))
|
||||
@chmod($this->file, octdec($conf->global->MAIN_UMASK));
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1700,7 +1698,6 @@ class BonPrelevement extends CommonObject
|
||||
fputs($this->file, substr(" ",0,5));
|
||||
|
||||
fputs($this->file, "\n");
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1956,5 +1953,4 @@ class BonPrelevement extends CommonObject
|
||||
if ($statut==2) return $this->labelstatut[$statut].' '.img_picto($this->labelstatut[$statut],'statut6');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -69,7 +69,6 @@ class RejetPrelevement
|
||||
|
||||
$this->facturer[0]=$langs->trans("NoInvoiceRefused");
|
||||
$this->facturer[1]=$langs->trans("InvoiceRefused");
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -198,7 +197,6 @@ class RejetPrelevement
|
||||
dol_syslog("RejetPrelevement::Create Rollback");
|
||||
$this->db->rollback();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -328,7 +326,6 @@ class RejetPrelevement
|
||||
}
|
||||
|
||||
return $arr;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -372,5 +369,4 @@ class RejetPrelevement
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -51,7 +51,12 @@ class PaymentSalary extends CommonObject
|
||||
public $fk_project;
|
||||
public $type_payment;
|
||||
public $num_payment;
|
||||
public $label;
|
||||
|
||||
/**
|
||||
* @var string proper name for given parameter
|
||||
*/
|
||||
public $label;
|
||||
|
||||
public $datesp;
|
||||
public $dateep;
|
||||
public $fk_bank;
|
||||
@ -629,5 +634,4 @@ class PaymentSalary extends CommonObject
|
||||
}*/
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -524,8 +524,5 @@ class Cchargesociales
|
||||
$this->fk_pays = '';
|
||||
$this->module = '';
|
||||
$this->accountancy_code = '';
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -289,7 +289,6 @@ class ChargeSociales extends CommonObject
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -43,22 +43,22 @@ class PaymentSocialContribution extends CommonObject
|
||||
|
||||
public $picto = 'payment';
|
||||
|
||||
var $fk_charge;
|
||||
var $datec='';
|
||||
var $tms='';
|
||||
var $datep='';
|
||||
public $fk_charge;
|
||||
public $datec='';
|
||||
public $tms='';
|
||||
public $datep='';
|
||||
/**
|
||||
* @deprecated
|
||||
* @see amount
|
||||
*/
|
||||
var $total;
|
||||
var $amount; // Total amount of payment
|
||||
var $amounts=array(); // Array of amounts
|
||||
var $fk_typepaiement;
|
||||
var $num_paiement;
|
||||
var $fk_bank;
|
||||
var $fk_user_creat;
|
||||
var $fk_user_modif;
|
||||
public $total;
|
||||
public $amount; // Total amount of payment
|
||||
public $amounts=array(); // Array of amounts
|
||||
public $fk_typepaiement;
|
||||
public $num_paiement;
|
||||
public $fk_bank;
|
||||
public $fk_user_creat;
|
||||
public $fk_user_modif;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@ -501,8 +501,6 @@ class PaymentSocialContribution extends CommonObject
|
||||
$this->fk_bank='';
|
||||
$this->fk_user_creat='';
|
||||
$this->fk_user_modif='';
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -318,5 +318,4 @@ abstract class ActionsContactCardCommon
|
||||
$this->object->country = $langs->trans("Country".$obj->code)?$langs->trans("Country".$obj->code):$obj->label;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -117,7 +117,6 @@ class ActionsContactCardDefault extends ActionsContactCardCommon
|
||||
{
|
||||
$this->LoadListDatas($limit, $offset, $sortfield, $sortorder);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -55,13 +55,13 @@ class Contracts extends DolibarrApi
|
||||
}
|
||||
|
||||
/**
|
||||
* Get properties of a contrat object
|
||||
* Get properties of a contract object
|
||||
*
|
||||
* Return an array with contrat informations
|
||||
* Return an array with contract informations
|
||||
*
|
||||
* @param int $id ID of contract
|
||||
* @return array|mixed data without useless information
|
||||
*
|
||||
*
|
||||
* @throws RestException
|
||||
*/
|
||||
function get($id)
|
||||
@ -457,7 +457,7 @@ class Contracts extends DolibarrApi
|
||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||
}
|
||||
|
||||
// TODO Check the lineid $lineid is a line of ojbect
|
||||
// TODO Check the lineid $lineid is a line of object
|
||||
|
||||
$updateRes = $this->contract->deleteline($lineid, DolibarrApiAccess::$user);
|
||||
if ($updateRes > 0) {
|
||||
@ -472,7 +472,7 @@ class Contracts extends DolibarrApi
|
||||
/**
|
||||
* Update contract general fields (won't touch lines of contract)
|
||||
*
|
||||
* @param int $id Id of contrat to update
|
||||
* @param int $id Id of contract to update
|
||||
* @param array $request_data Datas
|
||||
*
|
||||
* @return int
|
||||
@ -537,11 +537,10 @@ class Contracts extends DolibarrApi
|
||||
'message' => 'Contract deleted'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate an contract
|
||||
* Validate a contract
|
||||
*
|
||||
* @param int $id Contract ID
|
||||
* @param int $notrigger 1=Does not execute triggers, 0= execute triggers
|
||||
|
||||
@ -45,22 +45,22 @@ class Contrat extends CommonObject
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='contrat';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='contrat';
|
||||
|
||||
|
||||
public $table_element_line='contratdet';
|
||||
public $fk_element='fk_contrat';
|
||||
public $picto='contract';
|
||||
|
||||
|
||||
/**
|
||||
* 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
|
||||
@ -241,8 +241,8 @@ class Contrat extends CommonObject
|
||||
*
|
||||
* @param User $user Objet User who activate contract
|
||||
* @param int $line_id Id of line to activate
|
||||
* @param int $date Date d'ouverture
|
||||
* @param int|string $date_end Date fin prevue
|
||||
* @param int $date Opening date
|
||||
* @param int|string $date_end Expected end date
|
||||
* @param string $comment A comment typed by user
|
||||
* @return int <0 if KO, >0 if OK
|
||||
*/
|
||||
@ -264,7 +264,7 @@ class Contrat extends CommonObject
|
||||
*
|
||||
* @param User $user Objet User who close contract
|
||||
* @param int $line_id Id of line to close
|
||||
* @param int $date_end Date end
|
||||
* @param int $date_end End date
|
||||
* @param string $comment A comment typed by user
|
||||
* @return int <0 if KO, >0 if OK
|
||||
*/
|
||||
@ -522,13 +522,12 @@ class Contrat extends CommonObject
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Unvalidate a contract
|
||||
*
|
||||
* @param User $user Objet User
|
||||
* @param User $user Object User
|
||||
* @param int $notrigger 1=Does not execute triggers, 0=execute triggers
|
||||
* @return int <0 if KO, >0 if OK
|
||||
*/
|
||||
@ -570,7 +569,7 @@ class Contrat extends CommonObject
|
||||
// End call triggers
|
||||
}
|
||||
|
||||
// Set new ref and define current statut
|
||||
// Set new ref and define current status
|
||||
if (! $error)
|
||||
{
|
||||
$this->statut=0;
|
||||
@ -668,7 +667,7 @@ class Contrat extends CommonObject
|
||||
$this->db->free($resql);
|
||||
|
||||
|
||||
// Retreive all extrafield
|
||||
// Retreive all extrafields
|
||||
// fetch optionals attributes and labels
|
||||
$this->fetch_optionals();
|
||||
|
||||
@ -701,7 +700,6 @@ class Contrat extends CommonObject
|
||||
$this->error=$this->db->error();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -732,7 +730,7 @@ class Contrat extends CommonObject
|
||||
$this->lines=array();
|
||||
$pos = 0;
|
||||
|
||||
// Selectionne les lignes contrats liees a un produit
|
||||
// Selects contract lines related to a product
|
||||
$sql = "SELECT p.label as product_label, p.description as product_desc, p.ref as product_ref,";
|
||||
$sql.= " d.rowid, d.fk_contrat, d.statut, d.description, d.price_ht, d.vat_src_code, d.tva_tx, d.localtax1_tx, d.localtax2_tx, d.localtax1_type, d.localtax2_type, d.qty, d.remise_percent, d.subprice, d.fk_product_fournisseur_price as fk_fournprice, d.buy_price_ht as pa_ht,";
|
||||
$sql.= " d.total_ht,";
|
||||
@ -766,7 +764,7 @@ class Contrat extends CommonObject
|
||||
$line->id = $objp->rowid;
|
||||
$line->ref = $objp->rowid;
|
||||
$line->fk_contrat = $objp->fk_contrat;
|
||||
$line->desc = $objp->description; // Description ligne
|
||||
$line->desc = $objp->description; // Description line
|
||||
$line->qty = $objp->qty;
|
||||
$line->vat_src_code = $objp->vat_src_code ;
|
||||
$line->tva_tx = $objp->tva_tx;
|
||||
@ -797,9 +795,9 @@ class Contrat extends CommonObject
|
||||
$line->fk_unit = $objp->fk_unit;
|
||||
|
||||
$line->ref = $objp->product_ref; // deprecated
|
||||
$line->product_ref = $objp->product_ref; // Ref product
|
||||
$line->product_desc = $objp->product_desc; // Description product
|
||||
$line->product_label = $objp->product_label; // Label product
|
||||
$line->product_ref = $objp->product_ref; // Product Ref
|
||||
$line->product_desc = $objp->product_desc; // Product Description
|
||||
$line->product_label = $objp->product_label; // Product Label
|
||||
|
||||
$line->description = $objp->description;
|
||||
|
||||
@ -817,7 +815,7 @@ class Contrat extends CommonObject
|
||||
$line->date_fin_prevue = $this->db->jdate($objp->date_fin_validite);
|
||||
$line->date_fin_reel = $this->db->jdate($objp->date_cloture);
|
||||
|
||||
// Retreive all extrafield for contract
|
||||
// Retreive all extrafields for contract
|
||||
// fetch optionals attributes and labels
|
||||
$line->fetch_optionals();
|
||||
|
||||
@ -923,7 +921,7 @@ class Contrat extends CommonObject
|
||||
$modCodeContract = new $module();
|
||||
|
||||
if (!empty($modCodeContract->code_auto)) {
|
||||
// Mise a jour ref
|
||||
// Update ref
|
||||
$sql = 'UPDATE '.MAIN_DB_PREFIX."contrat SET ref='(PROV".$this->id.")' WHERE rowid=".$this->id;
|
||||
if ($this->db->query($sql))
|
||||
{
|
||||
@ -947,14 +945,14 @@ class Contrat extends CommonObject
|
||||
}
|
||||
}
|
||||
|
||||
// Insert contacts commerciaux ('SALESREPSIGN','contrat')
|
||||
// Insert business contacts ('SALESREPSIGN','contrat')
|
||||
if (! $error)
|
||||
{
|
||||
$result=$this->add_contact($this->commercial_signature_id,'SALESREPSIGN','internal');
|
||||
if ($result < 0) $error++;
|
||||
}
|
||||
|
||||
// Insert contacts commerciaux ('SALESREPFOLL','contrat')
|
||||
// Insert business contacts ('SALESREPFOLL','contrat')
|
||||
if (! $error)
|
||||
{
|
||||
$result=$this->add_contact($this->commercial_suivi_id,'SALESREPFOLL','internal');
|
||||
@ -2473,7 +2471,7 @@ class ContratLigne extends CommonObjectLine
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='contratdet';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
@ -2483,7 +2481,7 @@ class ContratLigne extends CommonObjectLine
|
||||
* @var int ID
|
||||
*/
|
||||
public $id;
|
||||
|
||||
|
||||
var $ref;
|
||||
var $tms;
|
||||
|
||||
|
||||
@ -260,6 +260,5 @@ class box_actions extends ModeleBoxes
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -161,6 +161,5 @@ class box_bookmarks extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -163,7 +163,6 @@ class box_clients extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -178,6 +177,5 @@ class box_clients extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -202,6 +202,5 @@ class box_commandes extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -174,7 +174,6 @@ class box_comptes extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -189,6 +188,5 @@ class box_comptes extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -189,6 +189,5 @@ class box_contacts extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -185,6 +185,5 @@ class box_contracts extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -198,6 +198,5 @@ class box_external_rss extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -206,5 +206,4 @@ class box_factures extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -218,6 +218,5 @@ class box_factures_fourn extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -191,7 +191,6 @@ class box_factures_fourn_imp extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -206,6 +205,5 @@ class box_factures_fourn_imp extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -209,5 +209,4 @@ class box_factures_imp extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -170,6 +170,5 @@ class box_ficheinter extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -150,7 +150,6 @@ class box_fournisseurs extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -165,6 +164,5 @@ class box_fournisseurs extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -159,7 +159,6 @@ class box_goodcustomers extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -280,6 +280,5 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -279,6 +279,5 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -278,6 +278,5 @@ class box_graph_orders_permonth extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -277,6 +277,5 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -401,7 +401,6 @@ class box_graph_product_distribution extends ModeleBoxes
|
||||
'text' => $mesg
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -416,6 +415,5 @@ class box_graph_product_distribution extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -281,6 +281,5 @@ class box_graph_propales_permonth extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -98,7 +98,6 @@ class box_lastlogin extends ModeleBoxes
|
||||
'td' => '',
|
||||
'text' => $tmp,
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -168,7 +168,6 @@ class box_members extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -183,6 +182,5 @@ class box_members extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -230,6 +230,5 @@ class box_produits extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -242,6 +242,5 @@ class box_produits_alerte_stock extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -184,7 +184,6 @@ class box_project extends ModeleBoxes
|
||||
'td' => '',
|
||||
'text' => " ",
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -192,6 +192,5 @@ class box_propales extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -180,6 +180,5 @@ class box_prospect extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -222,7 +222,6 @@ class box_services_contracts extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -237,6 +236,5 @@ class box_services_contracts extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -184,6 +184,5 @@ class box_services_expired extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -188,6 +188,5 @@ class box_supplier_orders extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -137,7 +137,6 @@ class box_task extends ModeleBoxes
|
||||
$this->info_box_contents[$i][] = array('td' => 'align="right" ', 'text' => ConvertSecondToTime($totalplannedtot,'all',25200,5));
|
||||
$this->info_box_contents[$i][] = array('td' => 'align="right" ', 'text' => ConvertSecondToTime($totaldurationtot,'all',25200,5));
|
||||
$this->info_box_contents[$i][] = array('td' => '', 'text' => "");
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
*
|
||||
* Boxes parent class
|
||||
*/
|
||||
class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" boxes
|
||||
class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" boxes
|
||||
{
|
||||
/**
|
||||
* @var DoliDB Database handler
|
||||
@ -503,8 +503,6 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty"
|
||||
}
|
||||
return $widget;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -471,7 +471,6 @@ class CMailFile
|
||||
// --------------------------------------
|
||||
$this->error = 'Bad value for sendmode';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -246,5 +246,4 @@ class CSMSFile
|
||||
@chmod($outputfile, octdec($conf->global->MAIN_UMASK));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -180,5 +180,4 @@ class AntiVir
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -210,5 +210,4 @@ class Canvas
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -333,5 +333,4 @@ class Ccountry // extends CommonObject
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -778,7 +778,6 @@ abstract class CommonDocGenerator
|
||||
}
|
||||
|
||||
return $array_to_fill;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1069,7 +1069,6 @@ abstract class CommonObject
|
||||
dol_print_error($this->db);
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2041,7 +2040,6 @@ abstract class CommonObject
|
||||
$this->db->commit();
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -4650,7 +4648,6 @@ abstract class CommonObject
|
||||
if (isset($conf->global->$keyforfieldname)) return $conf->global->$keyforfieldname;
|
||||
|
||||
// TODO Ad here a scan into table llx_overwrite_default with a filter on $this->element and $fieldname
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -7274,5 +7271,4 @@ abstract class CommonObject
|
||||
{
|
||||
return count($this->comments);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -144,6 +144,5 @@ abstract class CommonOrderLine extends CommonObjectLine
|
||||
public $info_bits = 0;
|
||||
|
||||
public $special_code = 0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user