Standardize and update code
This commit is contained in:
parent
f77dd2ebc7
commit
45cbc36a15
@ -45,7 +45,11 @@ class Fichinter extends CommonObject
|
||||
*/
|
||||
public $table_element='fichinter';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element='fk_fichinter';
|
||||
|
||||
public $table_element_line='fichinterdet';
|
||||
public $picto = 'intervention';
|
||||
|
||||
@ -54,28 +58,28 @@ class Fichinter extends CommonObject
|
||||
*/
|
||||
protected $table_ref_field = 'ref';
|
||||
|
||||
var $socid; // Id client
|
||||
public $socid; // Id client
|
||||
|
||||
var $author;
|
||||
var $datec;
|
||||
var $datev;
|
||||
var $dateo;
|
||||
var $datee;
|
||||
var $datet;
|
||||
var $datem;
|
||||
var $duration;
|
||||
var $statut = 0; // 0=draft, 1=validated, 2=invoiced, 3=Terminate
|
||||
public $author;
|
||||
public $datec;
|
||||
public $datev;
|
||||
public $dateo;
|
||||
public $datee;
|
||||
public $datet;
|
||||
public $datem;
|
||||
public $duration;
|
||||
public $statut = 0; // 0=draft, 1=validated, 2=invoiced, 3=Terminate
|
||||
|
||||
/**
|
||||
* @var string description
|
||||
*/
|
||||
public $description;
|
||||
|
||||
var $fk_contrat = 0;
|
||||
var $fk_project = 0;
|
||||
var $extraparams=array();
|
||||
public $fk_contrat = 0;
|
||||
public $fk_project = 0;
|
||||
public $extraparams=array();
|
||||
|
||||
var $lines = array();
|
||||
public $lines = array();
|
||||
|
||||
/**
|
||||
* Draft status
|
||||
@ -1332,11 +1336,11 @@ class FichinterLigne extends CommonObjectLine
|
||||
public $error='';
|
||||
|
||||
// From llx_fichinterdet
|
||||
var $fk_fichinter;
|
||||
var $desc; // Description ligne
|
||||
var $datei; // Date intervention
|
||||
var $duration; // Duree de l'intervention
|
||||
var $rang = 0;
|
||||
public $fk_fichinter;
|
||||
public $desc; // Description ligne
|
||||
public $datei; // Date intervention
|
||||
public $duration; // Duree de l'intervention
|
||||
public $rang = 0;
|
||||
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
@ -1348,6 +1352,9 @@ class FichinterLigne extends CommonObjectLine
|
||||
*/
|
||||
public $table_element='fichinterdet';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element='fk_fichinter';
|
||||
|
||||
/**
|
||||
|
||||
@ -51,7 +51,12 @@ class CommandeFournisseur extends CommonOrder
|
||||
public $table_element='commande_fournisseur';
|
||||
|
||||
public $table_element_line = 'commande_fournisseurdet';
|
||||
public $fk_element = 'fk_commande';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_commande';
|
||||
|
||||
public $picto='order';
|
||||
|
||||
/**
|
||||
|
||||
@ -52,7 +52,12 @@ class FactureFournisseur extends CommonInvoice
|
||||
public $table_element='facture_fourn';
|
||||
|
||||
public $table_element_line='facture_fourn_det';
|
||||
public $fk_element='fk_facture_fourn';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element='fk_facture_fourn';
|
||||
|
||||
public $picto='bill';
|
||||
|
||||
/**
|
||||
|
||||
@ -39,7 +39,12 @@ class Establishment extends CommonObject
|
||||
public $table_element='establishment';
|
||||
|
||||
public $table_element_line = '';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_establishment';
|
||||
|
||||
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $picto='building';
|
||||
|
||||
|
||||
@ -44,6 +44,9 @@ class Livraison extends CommonObject
|
||||
*/
|
||||
public $element="delivery";
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element="fk_livraison";
|
||||
|
||||
/**
|
||||
@ -53,14 +56,14 @@ class Livraison extends CommonObject
|
||||
|
||||
public $table_element_line="livraisondet";
|
||||
|
||||
var $brouillon;
|
||||
var $socid;
|
||||
var $ref_customer;
|
||||
public $brouillon;
|
||||
public $socid;
|
||||
public $ref_customer;
|
||||
|
||||
var $date_delivery; // Date really received
|
||||
var $date_creation;
|
||||
var $date_valid;
|
||||
var $model_pdf;
|
||||
public $date_delivery; // Date really received
|
||||
public $date_creation;
|
||||
public $date_valid;
|
||||
public $model_pdf;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
||||
@ -53,7 +53,11 @@ class Product extends CommonObject
|
||||
*/
|
||||
public $table_element='product';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element='fk_product';
|
||||
|
||||
protected $childtables=array('supplier_proposaldet', 'propaldet','commandedet','facturedet','contratdet','facture_fourn_det','commande_fournisseurdet'); // To test if we can delete object
|
||||
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
|
||||
|
||||
@ -44,7 +44,12 @@ class Project extends CommonObject
|
||||
public $table_element = 'projet';
|
||||
|
||||
public $table_element_line = 'projet_task';
|
||||
public $fk_element = 'fk_projet';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element = 'fk_projet';
|
||||
|
||||
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
public $picto = 'projectpub';
|
||||
|
||||
|
||||
@ -41,7 +41,11 @@ class Task extends CommonObject
|
||||
*/
|
||||
public $table_element='projet_task';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element='fk_task';
|
||||
|
||||
public $picto = 'task';
|
||||
protected $childtables=array('projet_task_time'); // To test if we can delete object
|
||||
|
||||
|
||||
@ -51,7 +51,11 @@ class Societe extends CommonObject
|
||||
*/
|
||||
public $table_element = 'societe';
|
||||
|
||||
/**
|
||||
* @var int Field with ID of parent key if this field has a parent
|
||||
*/
|
||||
public $fk_element='fk_soc';
|
||||
|
||||
public $fieldsforcombobox='nom,name_alias';
|
||||
protected $childtables=array("supplier_proposal"=>'SupplierProposal',"propal"=>'Proposal',"commande"=>'Order',"facture"=>'Invoice',"facture_rec"=>'RecurringInvoiceTemplate',"contrat"=>'Contract',"fichinter"=>'Fichinter',"facture_fourn"=>'SupplierInvoice',"commande_fournisseur"=>'SupplierOrder',"projet"=>'Project',"expedition"=>'Shipment',"prelevement_lignes"=>'DirectDebitRecord'); // To test if we can delete object
|
||||
protected $childtablesoncascade=array("societe_prices", "societe_log", "societe_address", "product_fournisseur_price", "product_customer_price_log", "product_customer_price", "socpeople", "adherent", "societe_rib", "societe_remise", "societe_remise_except", "societe_commerciaux", "categorie", "notify", "notify_def", "actioncomm");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user