Skip to content

Commit

Permalink
doxygen societe class
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Dec 8, 2019
1 parent 3f0fd9b commit 48564ea
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 27 deletions.
18 changes: 9 additions & 9 deletions htdocs/install/mysql/tables/llx_societe.sql
Expand Up @@ -52,15 +52,15 @@ create table llx_societe
email varchar(128), --

socialnetworks text DEFAULT NULL, -- json with socialnetworks
skype varchar(255), --
twitter varchar(255), --
facebook varchar(255), --
linkedin varchar(255), --
instagram varchar(255), --
snapchat varchar(255), --
googleplus varchar(255), --
youtube varchar(255), --
whatsapp varchar(255), --
skype varchar(255), -- deprecated
twitter varchar(255), -- deprecated
facebook varchar(255), -- deprecated
linkedin varchar(255), -- deprecated
instagram varchar(255), -- deprecated
snapchat varchar(255), -- deprecated
googleplus varchar(255), -- deprecated
youtube varchar(255), -- deprecated
whatsapp varchar(255), -- deprecated

fk_effectif integer DEFAULT 0, --
fk_typent integer DEFAULT 0, --
Expand Down
157 changes: 139 additions & 18 deletions htdocs/societe/class/societe.class.php
Expand Up @@ -59,16 +59,51 @@ class Societe extends CommonObject
*/
public $fk_element = 'fk_soc';

/**
* @var string Fields for combobox
*/
public $fieldsforcombobox = 'nom,name_alias';

/**
* @var array List of child tables. To test if we can delete object.
*/
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');
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',
);

/**
* @var array List of child tables. To know object to delete on cascade.
*/
protected $childtablesoncascade = array("societe_prices", "societe_log", "societe_address", "product_fournisseur_price", "product_customer_price_log", "product_customer_price", "socpeople", "adherent", "societe_account", "societe_rib", "societe_remise", "societe_remise_except", "societe_commerciaux", "categorie", "notify", "notify_def", "actioncomm");
protected $childtablesoncascade = array(
"societe_prices",
"societe_log",
"societe_address",
"product_fournisseur_price",
"product_customer_price_log",
"product_customer_price",
"socpeople",
"adherent",
"societe_account",
"societe_rib",
"societe_remise",
"societe_remise_except",
"societe_commerciaux",
"categorie",
"notify",
"notify_def",
"actioncomm",
);

/**
* @var string String with name of icon for myobject. Must be the part after the 'object_' into object_myobject.png
Expand All @@ -87,8 +122,6 @@ class Societe extends CommonObject
*/
public $restrictiononfksoc = 1;


// BEGIN MODULEBUILDER PROPERTIES
/**
* @var array Array with all fields and their property. Do not use it as a static var. It may be modified by constructor.
*/
Expand Down Expand Up @@ -123,7 +156,7 @@ class Societe extends CommonObject
public $nom;

/**
* @var string name
* @var string Thirdparty name
*/
public $name;

Expand All @@ -133,14 +166,24 @@ class Societe extends CommonObject
*/
public $name_alias;

/**
* @var int Physical thirdparty not a company
*/
public $particulier;

/**
* @var string Address
*/
public $address;

/**
* @var string Zip code of thirdparty
*/
public $zip;

/**
* @var string Town of thirdparty
*/
public $town;

/**
Expand All @@ -154,19 +197,30 @@ class Societe extends CommonObject
* @var int
*/
public $state_id;

/**
* @var string State code
*/
public $state_code;

/**
* @var string State name
*/
public $state;

/**
* Id of region
* @var int
*/
public $region_code;

/**
* @var string Region name
*/
public $region;

/**
* State code
* @var string
* @var string State code
* @deprecated Use state_code instead
* @see $state_code
*/
Expand Down Expand Up @@ -220,25 +274,27 @@ class Societe extends CommonObject
* @deprecated
*/
public $twitter;

/**
* Facebook username
* @var string
* @deprecated
*/
public $facebook;

/**
* LinkedIn username
* @var string
* @deprecated
*/
public $linkedin;
public $linkedin;

/**
* Webpage
* @var string
*/
public $url;

//! barcode
/**
* Barcode value
* @var string
Expand Down Expand Up @@ -283,9 +339,16 @@ class Societe extends CommonObject
*/
public $idprof6;

/**
* @var string Prefix comm
*/
public $prefix_comm;

/**
* @var int Vat concerned
*/
public $tva_assuj = 1;

/**
* Intracommunitary VAT ID
* @var string
Expand All @@ -298,8 +361,19 @@ class Societe extends CommonObject
public $localtax2_assuj;
public $localtax2_value;

/**
* @var string Manager
*/
public $managers;

/**
* @var float Capital
*/
public $capital;

/**
* @var int Type thirdparty
*/
public $typent_id = 0;
public $typent_code;
public $effectif;
Expand All @@ -317,6 +391,9 @@ class Societe extends CommonObject
*/
public $fk_prospectlevel;

/**
* @var string second name
*/
public $name_bis;

//Log data
Expand All @@ -326,6 +403,7 @@ class Societe extends CommonObject
* @var string
*/
public $date_modification;

/**
* User that made last update
* @var string
Expand All @@ -351,11 +429,13 @@ class Societe extends CommonObject
* @var int
*/
public $client = 0;

/**
* 0=no prospect, 1=prospect
* @var int
*/
public $prospect = 0;

/**
* 0=no supplier, 1=supplier
* @var int
Expand Down Expand Up @@ -416,6 +496,7 @@ class Societe extends CommonObject
* @var int
*/
public $stcomm_id;

/**
* Status prospect label
* @var int
Expand All @@ -427,24 +508,34 @@ class Societe extends CommonObject
* @var int
*/
public $price_level;

/**
* @var string outstanding limit
*/
public $outstanding_limit;

/**
* Min order amounts
* @var string Min order amount
*/
public $order_min_amount;

/**
* @var string Supplier min order amount
*/
public $supplier_order_min_amount;

/**
* Id of sales representative to link (used for thirdparty creation). Not filled by a fetch, because we can have several sales representatives.
* @var int
*/
public $commercial_id;

/**
* Id of parent thirdparty (if one)
* @var int
*/
public $parent;

/**
* Default language code of thirdparty (en_US, ...)
* @var string
Expand All @@ -456,7 +547,11 @@ class Societe extends CommonObject
*/
public $ref;

/**
* @var string Internal ref
*/
public $ref_int;

/**
* External user reference.
* This is to allow external systems to store their id and make self-developed synchronizing functions easier to
Expand Down Expand Up @@ -485,22 +580,49 @@ class Societe extends CommonObject
*/
public $webservices_key;

/**
* @var string Logo
*/
public $logo;

/**
* @var string logo small
*/
public $logo_small;

/**
* @var string Logo mini
*/
public $logo_mini;

/**
* @var string Logo squarred
*/
public $logo_squarred;

/**
* @var string Logo squarred small
*/
public $logo_squarred_small;
public $logo_squarred_mini;

public $array_options;
/**
* @var string Logo squarred mini
*/
public $logo_squarred_mini;

// Incoterms
/**
* @var int ID
* @var int ID Incoterms
*/
public $fk_incoterms;

/**
* @var string Incoterms Location
*/
public $location_incoterms;

/**
* @var string Incoterm label
*/
public $label_incoterms; //Used into tooltip

// Multicurrency
Expand All @@ -509,12 +631,11 @@ class Societe extends CommonObject
*/
public $fk_multicurrency;

/**
* @var string Multicurrency code
*/
public $multicurrency_code;


// END MODULEBUILDER PROPERTIES


/**
* Constructor
*
Expand Down

0 comments on commit 48564ea

Please sign in to comment.