Merge pull request #9414 from grandoc/new_branch_03_09_2018

Standardize and update code
This commit is contained in:
Laurent Destailleur 2018-09-07 19:40:14 +02:00 committed by GitHub
commit f0dafb7ae2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
31 changed files with 209 additions and 98 deletions

View File

@ -64,6 +64,9 @@ class Commande extends CommonOrder
*/ */
public $fk_element = 'fk_commande'; public $fk_element = 'fk_commande';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'order'; public $picto = 'order';
/** /**

View File

@ -46,6 +46,9 @@ class Account extends CommonObject
*/ */
public $table_element = 'bank_account'; public $table_element = 'bank_account';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'account'; public $picto = 'account';
/** /**
@ -1664,6 +1667,9 @@ class AccountLine extends CommonObject
*/ */
public $table_element='bank'; public $table_element='bank';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'generic'; public $picto = 'generic';
/** /**

View File

@ -30,7 +30,10 @@ class BankCateg // extends CommonObject
{ {
//public $element='bank_categ'; //!< Id that identify managed objects //public $element='bank_categ'; //!< Id that identify managed objects
//public $table_element='bank_categ'; //!< Name of table without prefix where object is stored //public $table_element='bank_categ'; //!< Name of table without prefix where object is stored
public $picto='generic'; /**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto='generic';
/** /**
* @var int ID * @var int ID

View File

@ -40,6 +40,9 @@ class PaymentVarious extends CommonObject
*/ */
public $table_element='payment_various'; public $table_element='payment_various';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'bill'; public $picto = 'bill';
/** /**

View File

@ -59,6 +59,9 @@ class FactureRec extends CommonInvoice
*/ */
public $fk_element='fk_facture'; public $fk_element='fk_facture';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto='bill'; public $picto='bill';
public $entity; public $entity;

View File

@ -73,6 +73,9 @@ class Facture extends CommonInvoice
*/ */
public $fk_element = 'fk_facture'; public $fk_element = 'fk_facture';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto='bill'; public $picto='bill';
/** /**

View File

@ -39,22 +39,25 @@ class Localtax extends CommonObject
*/ */
public $table_element='localtax'; public $table_element='localtax';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto='payment'; public $picto='payment';
var $ltt; public $ltt;
var $tms; public $tms;
var $datep; public $datep;
var $datev; public $datev;
var $amount; public $amount;
/** /**
* @var string local tax * @var string local tax
*/ */
public $label; public $label;
var $fk_bank; public $fk_bank;
var $fk_user_creat; public $fk_user_creat;
var $fk_user_modif; public $fk_user_modif;
/** /**
* Constructor * Constructor

View File

@ -43,12 +43,15 @@ class RemiseCheque extends CommonObject
*/ */
public $table_element='bordereau_cheque'; public $table_element='bordereau_cheque';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'payment'; public $picto = 'payment';
var $num; public $num;
var $intitule; public $intitule;
//! Numero d'erreur Plage 1024-1279 //! Numero d'erreur Plage 1024-1279
var $errno; public $errno;
public $amount; public $amount;
public $date_bordereau; public $date_bordereau;

View File

@ -46,34 +46,40 @@ class Paiement extends CommonObject
*/ */
public $table_element='paiement'; public $table_element='paiement';
public $picto = 'payment'; /**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'payment';
public $facid;
public $datepaye;
var $facid;
var $datepaye;
/** /**
* @deprecated * @deprecated
* @see amount, amounts * @see amount, amounts
*/ */
var $total; public $total;
/** /**
* @deprecated * @deprecated
* @see amount, amounts * @see amount, amounts
*/ */
var $montant; public $montant;
var $amount; // Total amount of payment
var $amounts=array(); // Array of amounts public $amount; // Total amount of payment
var $multicurrency_amounts=array(); // Array of amounts public $amounts=array(); // Array of amounts
var $author; public $multicurrency_amounts=array(); // Array of amounts
var $paiementid; // Type de paiement. Stocke dans fk_paiement public $author;
public $paiementid; // Type de paiement. Stocke dans fk_paiement
// de llx_paiement qui est lie aux types de // de llx_paiement qui est lie aux types de
//paiement de llx_c_paiement //paiement de llx_c_paiement
var $num_paiement; // Numero du CHQ, VIR, etc... public $num_paiement; // Numero du CHQ, VIR, etc...
var $num_payment; // Numero du CHQ, VIR, etc... public $num_payment; // Numero du CHQ, VIR, etc...
var $bank_account; // Id compte bancaire du paiement public $bank_account; // Id compte bancaire du paiement
var $bank_line; // Id de la ligne d'ecriture bancaire public $bank_line; // Id de la ligne d'ecriture bancaire
// fk_paiement dans llx_paiement est l'id du type de paiement (7 pour CHQ, ...) // fk_paiement dans llx_paiement est l'id du type de paiement (7 pour CHQ, ...)
// fk_paiement dans llx_paiement_facture est le rowid du paiement // fk_paiement dans llx_paiement_facture est le rowid du paiement
var $fk_paiement; // Type of paiment public $fk_paiement; // Type of paiment
/** /**

View File

@ -49,27 +49,30 @@ class BonPrelevement extends CommonObject
*/ */
public $table_element='prelevement_bons'; public $table_element='prelevement_bons';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'payment'; public $picto = 'payment';
var $date_echeance; public $date_echeance;
var $raison_sociale; public $raison_sociale;
var $reference_remise; public $reference_remise;
var $emetteur_code_guichet; public $emetteur_code_guichet;
var $emetteur_numero_compte; public $emetteur_numero_compte;
var $emetteur_code_banque; public $emetteur_code_banque;
var $emetteur_number_key; public $emetteur_number_key;
var $emetteur_iban; public $emetteur_iban;
var $emetteur_bic; public $emetteur_bic;
var $emetteur_ics; public $emetteur_ics;
var $total; public $total;
var $_fetched; public $fetched;
var $statut; // 0-Wait, 1-Trans, 2-Done public $statut; // 0-Wait, 1-Trans, 2-Done
var $labelstatut=array(); public $labelstatut=array();
var $invoice_in_error=array(); public $invoice_in_error=array();
var $thirdparty_in_error=array(); public $thirdparty_in_error=array();
/** /**
@ -106,7 +109,7 @@ class BonPrelevement extends CommonObject
$this->methodes_trans[0] = "Internet"; $this->methodes_trans[0] = "Internet";
$this->_fetched = 0; $this->fetched = 0;
} }
/** /**
@ -312,7 +315,7 @@ class BonPrelevement extends CommonObject
$this->statut = $obj->statut; $this->statut = $obj->statut;
$this->_fetched = 1; $this->fetched = 1;
return 1; return 1;
} }
@ -420,7 +423,7 @@ class BonPrelevement extends CommonObject
$error = 0; $error = 0;
if ($this->_fetched == 1) if ($this->fetched == 1)
{ {
if ($date >= $this->date_trans) if ($date >= $this->date_trans)
{ {

View File

@ -41,6 +41,9 @@ class PaymentSalary extends CommonObject
*/ */
public $table_element='payment_salary'; public $table_element='payment_salary';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto='payment'; public $picto='payment';
public $tms; public $tms;

View File

@ -44,25 +44,28 @@ class ChargeSociales extends CommonObject
*/ */
public $table_element='chargesociales'; public $table_element='chargesociales';
public $picto = 'bill'; /**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'bill';
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected $table_ref_field = 'ref'; protected $table_ref_field = 'ref';
var $date_ech; public $date_ech;
var $lib; public $lib;
var $type; public $type;
var $type_libelle; public $type_libelle;
var $amount; public $amount;
var $paye; public $paye;
var $periode; public $periode;
var $date_creation; public $date_creation;
var $date_modification; public $date_modification;
var $date_validation; public $date_validation;
var $fk_account; public $fk_account;
var $fk_project; public $fk_project;
/** /**

View File

@ -41,17 +41,22 @@ class PaymentSocialContribution extends CommonObject
*/ */
public $table_element='paiementcharge'; public $table_element='paiementcharge';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'payment'; public $picto = 'payment';
public $fk_charge; public $fk_charge;
public $datec=''; public $datec='';
public $tms=''; public $tms='';
public $datep=''; public $datep='';
/** /**
* @deprecated * @deprecated
* @see amount * @see amount
*/ */
public $total; public $total;
public $amount; // Total amount of payment public $amount; // Total amount of payment
public $amounts=array(); // Array of amounts public $amounts=array(); // Array of amounts
public $fk_typepaiement; public $fk_typepaiement;

View File

@ -43,23 +43,26 @@ class Tva extends CommonObject
*/ */
public $table_element='tva'; public $table_element='tva';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto='payment'; public $picto='payment';
var $tms; public $tms;
var $datep; public $datep;
var $datev; public $datev;
var $amount; public $amount;
var $type_payment; public $type_payment;
var $num_payment; public $num_payment;
/** /**
* @var string label * @var string label
*/ */
public $label; public $label;
var $fk_bank; public $fk_bank;
var $fk_user_creat; public $fk_user_creat;
var $fk_user_modif; public $fk_user_modif;
/** /**
* Constructor * Constructor

View File

@ -48,6 +48,10 @@ class Contact extends CommonObject
public $table_element='socpeople'; public $table_element='socpeople';
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'contact'; public $picto = 'contact';

View File

@ -61,7 +61,10 @@ class Contrat extends CommonObject
*/ */
public $fk_element='fk_contrat'; public $fk_element='fk_contrat';
public $picto='contract'; /**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto='contract';
/** /**
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe * 0=No test on entity, 1=Test with field entity, 2=Test with link by societe

View File

@ -31,7 +31,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php';
*/ */
class InterfaceLogevents extends DolibarrTriggers class InterfaceLogevents extends DolibarrTriggers
{ {
/**
* @var string Image of the trigger
*/
public $picto = 'technic'; public $picto = 'technic';
public $family = 'core'; public $family = 'core';
public $description = "Triggers of this module allows to add security event records inside Dolibarr."; public $description = "Triggers of this module allows to add security event records inside Dolibarr.";
public $version = self::VERSION_DOLIBARR; public $version = self::VERSION_DOLIBARR;

View File

@ -32,7 +32,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/triggers/dolibarrtriggers.class.php';
class InterfaceWorkflowManager extends DolibarrTriggers class InterfaceWorkflowManager extends DolibarrTriggers
{ {
/**
* @var string Image of the trigger
*/
public $picto = 'technic'; public $picto = 'technic';
public $family = 'core'; public $family = 'core';
public $description = "Triggers of this module allows to manage workflows"; public $description = "Triggers of this module allows to manage workflows";
public $version = self::VERSION_DOLIBARR; public $version = self::VERSION_DOLIBARR;

View File

@ -37,6 +37,10 @@ class InterfaceActionsAuto extends DolibarrTriggers
public $family = 'agenda'; public $family = 'agenda';
public $description = "Triggers of this module add actions in agenda according to setup made in agenda setup."; public $description = "Triggers of this module add actions in agenda according to setup made in agenda setup.";
public $version = self::VERSION_DOLIBARR; public $version = self::VERSION_DOLIBARR;
/**
* @var string Image of the trigger
*/
public $picto = 'action'; public $picto = 'action';
/** /**

View File

@ -33,6 +33,10 @@ class InterfaceActionsBlockedLog extends DolibarrTriggers
public $family = 'system'; public $family = 'system';
public $description = "Triggers of this module add action for BlockedLog module."; public $description = "Triggers of this module add action for BlockedLog module.";
public $version = self::VERSION_DOLIBARR; public $version = self::VERSION_DOLIBARR;
/**
* @var string Image of the trigger
*/
public $picto = 'technic'; public $picto = 'technic';
/** /**

View File

@ -34,6 +34,10 @@ class InterfaceLdapsynchro extends DolibarrTriggers
public $family = 'ldap'; public $family = 'ldap';
public $description = "Triggers of this module allows to synchronize Dolibarr toward a LDAP database."; public $description = "Triggers of this module allows to synchronize Dolibarr toward a LDAP database.";
public $version = self::VERSION_DOLIBARR; public $version = self::VERSION_DOLIBARR;
/**
* @var string Image of the trigger
*/
public $picto = 'technic'; public $picto = 'technic';
/** /**

View File

@ -32,6 +32,10 @@ class InterfaceMailmanSpipsynchro extends DolibarrTriggers
public $family = 'mailmanspip'; public $family = 'mailmanspip';
public $description = "Triggers of this module allows to synchronize Mailman an Spip."; public $description = "Triggers of this module allows to synchronize Mailman an Spip.";
public $version = self::VERSION_DOLIBARR; public $version = self::VERSION_DOLIBARR;
/**
* @var string Image of the trigger
*/
public $picto = 'technic'; public $picto = 'technic';
/** /**

View File

@ -33,9 +33,13 @@ class InterfaceNotification extends DolibarrTriggers
public $family = 'notification'; public $family = 'notification';
public $description = "Triggers of this module send email notifications according to Notification module setup."; public $description = "Triggers of this module send email notifications according to Notification module setup.";
public $version = self::VERSION_DOLIBARR; public $version = self::VERSION_DOLIBARR;
/**
* @var string Image of the trigger
*/
public $picto = 'email'; public $picto = 'email';
var $listofmanagedevents=array( public $listofmanagedevents=array(
'BILL_VALIDATE', 'BILL_VALIDATE',
'BILL_PAYED', 'BILL_PAYED',
'ORDER_VALIDATE', 'ORDER_VALIDATE',

View File

@ -40,7 +40,10 @@ class Cronjob extends CommonObject
*/ */
public $table_element='cronjob'; public $table_element='cronjob';
public $picto = 'cron'; /**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'cron';
/** /**
* @var int Entity * @var int Entity

View File

@ -50,7 +50,11 @@ class Don extends CommonObject
public $fk_element = 'fk_donation'; public $fk_element = 'fk_donation';
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
public $picto = 'generic';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'generic';
public $date; public $date;
public $amount; public $amount;

View File

@ -39,7 +39,10 @@ class PaymentDonation extends CommonObject
*/ */
public $table_element='payment_donation'; public $table_element='payment_donation';
public $picto = 'payment'; /**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'payment';
/** /**
* @var int ID * @var int ID

View File

@ -37,6 +37,9 @@ class EcmDirectory // extends CommonObject
*/ */
//public $table_element='ecm_directories'; //public $table_element='ecm_directories';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'dir'; public $picto = 'dir';
/** /**

View File

@ -46,6 +46,9 @@ class EcmFiles extends CommonObject
*/ */
public $table_element = 'ecm_files'; public $table_element = 'ecm_files';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'generic'; public $picto = 'generic';
/** /**

View File

@ -62,6 +62,10 @@ class Expedition extends CommonObject
public $table_element_line="expeditiondet"; public $table_element_line="expeditiondet";
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 string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'sending'; public $picto = 'sending';
public $socid; public $socid;

View File

@ -40,24 +40,27 @@ class PaymentExpenseReport extends CommonObject
*/ */
public $table_element='payment_expensereport'; public $table_element='payment_expensereport';
public $picto = 'payment'; /**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'payment';
var $rowid; public $rowid;
var $fk_expensereport; public $fk_expensereport;
var $datec=''; public $datec='';
var $tms=''; public $tms='';
var $datep=''; public $datep='';
var $amount; // Total amount of payment public $amount; // Total amount of payment
var $amounts=array(); // Array of amounts public $amounts=array(); // Array of amounts
var $fk_typepayment; public $fk_typepayment;
var $num_payment; public $num_payment;
var $fk_bank; public $fk_bank;
var $fk_user_creat; public $fk_user_creat;
var $fk_user_modif; public $fk_user_modif;
//Unknow field //Unknow field
var $chid; public $chid;
var $total; public $total;
/** /**
* Constructor * Constructor

View File

@ -55,6 +55,9 @@ class Fichinter extends CommonObject
*/ */
public $table_element_line='fichinterdet'; public $table_element_line='fichinterdet';
/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
*/
public $picto = 'intervention'; public $picto = 'intervention';
/** /**