Standardize and update code
This commit is contained in:
parent
74ce0bfea6
commit
2fa82edd39
@ -46,7 +46,10 @@ class AccountancyCategory // extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public $errors = array();
|
public $errors = array();
|
||||||
|
|
||||||
public $element='c_accounting_category'; //!< Id that identify managed objects
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
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
|
||||||
|
|||||||
@ -26,6 +26,9 @@
|
|||||||
*/
|
*/
|
||||||
class AccountingJournal extends CommonObject
|
class AccountingJournal extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='accounting_journal';
|
public $element='accounting_journal';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -41,6 +41,9 @@ require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
|||||||
*/
|
*/
|
||||||
class Adherent extends CommonObject
|
class Adherent extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='member';
|
public $element='member';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -37,7 +37,11 @@ class AdherentType extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public $table_element = 'adherent_type';
|
public $table_element = 'adherent_type';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element = 'adherent_type';
|
public $element = 'adherent_type';
|
||||||
|
|
||||||
public $picto = 'group';
|
public $picto = 'group';
|
||||||
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
|
|
||||||
|
|||||||
@ -32,6 +32,9 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class Subscription extends CommonObject
|
class Subscription extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='subscription';
|
public $element='subscription';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -34,7 +34,11 @@ class AssetType extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public $table_element = 'asset_type';
|
public $table_element = 'asset_type';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element = 'asset_type';
|
public $element = 'asset_type';
|
||||||
|
|
||||||
public $picto = 'group';
|
public $picto = 'group';
|
||||||
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,10 @@
|
|||||||
*/
|
*/
|
||||||
class Bookmark extends CommonObject
|
class Bookmark extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='bookmark';
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='bookmark';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
|
|||||||
@ -148,6 +148,9 @@ class Categorie extends CommonObject
|
|||||||
'project' => 'projet',
|
'project' => 'projet',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='category';
|
public $element='category';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -34,7 +34,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class ActionComm extends CommonObject
|
class ActionComm extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='action';
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='action';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
|
|||||||
@ -31,6 +31,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class Mailing extends CommonObject
|
class Mailing extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='mailing';
|
public $element='mailing';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -45,6 +45,9 @@ require_once DOL_DOCUMENT_ROOT .'/multicurrency/class/multicurrency.class.php';
|
|||||||
*/
|
*/
|
||||||
class Propal extends CommonObject
|
class Propal extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='propal';
|
public $element='propal';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3656,6 +3659,9 @@ class Propal extends CommonObject
|
|||||||
*/
|
*/
|
||||||
class PropaleLigne extends CommonObjectLine
|
class PropaleLigne extends CommonObjectLine
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='propaldet';
|
public $element='propaldet';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -42,7 +42,10 @@ require_once DOL_DOCUMENT_ROOT .'/multicurrency/class/multicurrency.class.php';
|
|||||||
*/
|
*/
|
||||||
class Commande extends CommonOrder
|
class Commande extends CommonOrder
|
||||||
{
|
{
|
||||||
public $element='commande';
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='commande';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
@ -3784,7 +3787,11 @@ class Commande extends CommonOrder
|
|||||||
*/
|
*/
|
||||||
class OrderLine extends CommonOrderLine
|
class OrderLine extends CommonOrderLine
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='commandedet';
|
public $element='commandedet';
|
||||||
|
|
||||||
public $table_element='commandedet';
|
public $table_element='commandedet';
|
||||||
|
|
||||||
var $oldline;
|
var $oldline;
|
||||||
|
|||||||
@ -36,6 +36,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class Account extends CommonObject
|
class Account extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element = 'bank_account';
|
public $element = 'bank_account';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -30,7 +30,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class PaymentVarious extends CommonObject
|
class PaymentVarious extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='variouspayment'; //!< Id that identify managed objects
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='variouspayment';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
|
|||||||
@ -31,6 +31,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class Deplacement extends CommonObject
|
class Deplacement extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='deplacement';
|
public $element='deplacement';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -39,6 +39,9 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
|||||||
*/
|
*/
|
||||||
class FactureRec extends CommonInvoice
|
class FactureRec extends CommonInvoice
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='facturerec';
|
public $element='facturerec';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1644,6 +1647,9 @@ class FactureRec extends CommonInvoice
|
|||||||
*/
|
*/
|
||||||
class FactureLigneRec extends CommonInvoiceLine
|
class FactureLigneRec extends CommonInvoiceLine
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='facturedetrec';
|
public $element='facturedetrec';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -53,6 +53,9 @@ if (! empty($conf->accounting->enabled)) require_once DOL_DOCUMENT_ROOT.'/accoun
|
|||||||
*/
|
*/
|
||||||
class Facture extends CommonInvoice
|
class Facture extends CommonInvoice
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='facture';
|
public $element='facture';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -4236,7 +4239,10 @@ class Facture extends CommonInvoice
|
|||||||
*/
|
*/
|
||||||
class FactureLigne extends CommonInvoiceLine
|
class FactureLigne extends CommonInvoiceLine
|
||||||
{
|
{
|
||||||
public $element='facturedet';
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='facturedet';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
|
|||||||
@ -29,7 +29,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class Localtax extends CommonObject
|
class Localtax extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='localtax'; //!< Id that identify managed objects
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
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
|
||||||
|
|||||||
@ -33,6 +33,9 @@ require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
|||||||
*/
|
*/
|
||||||
class RemiseCheque extends CommonObject
|
class RemiseCheque extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='chequereceipt';
|
public $element='chequereceipt';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -36,7 +36,10 @@ require_once DOL_DOCUMENT_ROOT .'/multicurrency/class/multicurrency.class.php';
|
|||||||
*/
|
*/
|
||||||
class Paiement extends CommonObject
|
class Paiement extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='payment';
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='payment';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
|
|||||||
@ -39,6 +39,9 @@ require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
|
|||||||
*/
|
*/
|
||||||
class BonPrelevement extends CommonObject
|
class BonPrelevement extends CommonObject
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
public $element='widthdraw';
|
public $element='widthdraw';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -31,7 +31,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class PaymentSalary extends CommonObject
|
class PaymentSalary extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='payment_salary'; //!< Id that identify managed objects
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
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
|
||||||
|
|||||||
@ -32,7 +32,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class ChargeSociales extends CommonObject
|
class ChargeSociales extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='chargesociales';
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='chargesociales';
|
||||||
|
|
||||||
public $table='chargesociales';
|
public $table='chargesociales';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -31,7 +31,10 @@ require_once DOL_DOCUMENT_ROOT.'/compta/sociales/class/chargesociales.class.php'
|
|||||||
*/
|
*/
|
||||||
class PaymentSocialContribution extends CommonObject
|
class PaymentSocialContribution extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='paiementcharge'; //!< Id that identify managed objects
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
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
|
||||||
|
|||||||
@ -33,7 +33,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
|||||||
*/
|
*/
|
||||||
class Tva extends CommonObject
|
class Tva extends CommonObject
|
||||||
{
|
{
|
||||||
public $element='tva'; //!< Id that identify managed objects
|
/**
|
||||||
|
* @var string ID to identify managed object
|
||||||
|
*/
|
||||||
|
public $element='tva';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user