Standardize and Update code

This commit is contained in:
Philippe GRAND 2018-09-01 23:24:59 +02:00
parent db32d8903e
commit bb18982f78
3 changed files with 61 additions and 49 deletions

View File

@ -49,12 +49,12 @@ class SupplierProposal extends CommonObject
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element='supplier_proposal'; public $element='supplier_proposal';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored
*/ */
public $table_element='supplier_proposal'; public $table_element='supplier_proposal';
public $table_element_line='supplier_proposaldet'; public $table_element_line='supplier_proposaldet';
public $fk_element='fk_supplier_proposal'; public $fk_element='fk_supplier_proposal';
public $picto='propal'; public $picto='propal';
@ -2658,7 +2658,7 @@ class SupplierProposalLine extends CommonObjectLine
* @var DoliDB Database handler. * @var DoliDB Database handler.
*/ */
public $db; public $db;
/** /**
* @var string Error code (or message) * @var string Error code (or message)
*/ */
@ -2668,31 +2668,32 @@ class SupplierProposalLine extends CommonObjectLine
* @var string ID to identify managed object * @var string ID to identify managed object
*/ */
public $element='supplier_proposaldet'; public $element='supplier_proposaldet';
/** /**
* @var string Name of table without prefix where object is stored * @var string Name of table without prefix where object is stored
*/ */
public $table_element='supplier_proposaldet'; public $table_element='supplier_proposaldet';
var $oldline; public $oldline;
// From llx_supplier_proposaldet // From llx_supplier_proposaldet
var $rowid; // deprecated public $rowid; // deprecated
/** /**
* @var int ID * @var int ID
*/ */
public $id; public $id;
var $fk_supplier_proposal; public $fk_supplier_proposal;
var $fk_parent_line; public $fk_parent_line;
var $desc; // Description ligne public $desc; // Description ligne
var $fk_product; // Id produit predefini public $fk_product; // Id produit predefini
/** /**
* @deprecated * @deprecated
* @see product_type * @see product_type
*/ */
var $fk_product_type; public $fk_product_type;
/** /**
* Product type * Product type
* @var int * @var int
@ -2700,89 +2701,94 @@ class SupplierProposalLine extends CommonObjectLine
*/ */
public $product_type = Product::TYPE_PRODUCT; public $product_type = Product::TYPE_PRODUCT;
var $qty; public $qty;
var $tva_tx; public $tva_tx;
var $subprice; public $subprice;
var $remise_percent; public $remise_percent;
var $fk_remise_except; public $fk_remise_except;
var $rang = 0; public $rang = 0;
var $fk_fournprice; public $fk_fournprice;
var $pa_ht; public $pa_ht;
var $marge_tx; public $marge_tx;
var $marque_tx; public $marque_tx;
var $special_code; // Tag for special lines (exlusive tags) public $special_code; // Tag for special lines (exlusive tags)
// 1: frais de port // 1: frais de port
// 2: ecotaxe // 2: ecotaxe
// 3: option line (when qty = 0) // 3: option line (when qty = 0)
var $info_bits = 0; // Liste d'options cumulables: public $info_bits = 0; // Liste d'options cumulables:
// Bit 0: 0 si TVA normal - 1 si TVA NPR // Bit 0: 0 si TVA normal - 1 si TVA NPR
// Bit 1: 0 ligne normale - 1 si ligne de remise fixe // Bit 1: 0 ligne normale - 1 si ligne de remise fixe
var $total_ht; // Total HT de la ligne toute quantite et incluant la remise ligne public $total_ht; // Total HT de la ligne toute quantite et incluant la remise ligne
var $total_tva; // Total TVA de la ligne toute quantite et incluant la remise ligne public $total_tva; // Total TVA de la ligne toute quantite et incluant la remise ligne
var $total_ttc; // Total TTC de la ligne toute quantite et incluant la remise ligne public $total_ttc; // Total TTC de la ligne toute quantite et incluant la remise ligne
/** /**
* @deprecated * @deprecated
* @see remise_percent, fk_remise_except * @see remise_percent, fk_remise_except
*/ */
var $remise; public $remise;
/** /**
* @deprecated * @deprecated
* @see subprice * @see subprice
*/ */
var $price; public $price;
// From llx_product // From llx_product
/** /**
* @deprecated * @deprecated
* @see product_ref * @see product_ref
*/ */
var $ref; public $ref;
/** /**
* Product reference * Product reference
* @var string * @var string
*/ */
public $product_ref; public $product_ref;
/** /**
* @deprecated * @deprecated
* @see product_label * @see product_label
*/ */
var $libelle; public $libelle;
/** /**
* Product label * Product label
* @var string * @var string
*/ */
public $product_label; public $product_label;
/** /**
* Product description * Product description
* @var string * @var string
*/ */
public $product_desc; public $product_desc;
var $localtax1_tx; // Local tax 1 public $localtax1_tx; // Local tax 1
var $localtax2_tx; // Local tax 2 public $localtax2_tx; // Local tax 2
var $localtax1_type; // Local tax 1 type public $localtax1_type; // Local tax 1 type
var $localtax2_type; // Local tax 2 type public $localtax2_type; // Local tax 2 type
var $total_localtax1; // Line total local tax 1 public $total_localtax1; // Line total local tax 1
var $total_localtax2; // Line total local tax 2 public $total_localtax2; // Line total local tax 2
var $skip_update_total; // Skip update price total for special lines public $skip_update_total; // Skip update price total for special lines
var $ref_fourn; public $ref_fourn;
var $ref_supplier; public $ref_supplier;
// Multicurrency // Multicurrency
var $fk_multicurrency; public $fk_multicurrency;
var $multicurrency_code; public $multicurrency_code;
var $multicurrency_subprice; public $multicurrency_subprice;
var $multicurrency_total_ht; public $multicurrency_total_ht;
var $multicurrency_total_tva; public $multicurrency_total_tva;
var $multicurrency_total_ttc; public $multicurrency_total_ttc;
/** /**
* Class line Contructor * Class line Contructor

View File

@ -2488,7 +2488,10 @@ class Ticket extends CommonObject
*/ */
class TicketsLine class TicketsLine
{ {
public $id; /**
* @var int ID
*/
public $id;
/** /**
* @var string $ref Ticket reference * @var string $ref Ticket reference

View File

@ -57,7 +57,10 @@ class Ticketlogs// extends CommonObject
*/ */
public $table_element = 'ticketlogs'; //!< Name of table without prefix where object is stored public $table_element = 'ticketlogs'; //!< Name of table without prefix where object is stored
public $id; /**
* @var int ID
*/
public $id;
public $fk_track_id; public $fk_track_id;
public $fk_user_create; public $fk_user_create;