Standardize and Update code
This commit is contained in:
parent
5cd9557318
commit
db32d8903e
@ -76,7 +76,10 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
*/
|
*/
|
||||||
protected $table_ref_field = 'ref';
|
protected $table_ref_field = 'ref';
|
||||||
|
|
||||||
public $id;
|
/**
|
||||||
|
* @var int ID
|
||||||
|
*/
|
||||||
|
public $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Supplier order reference
|
* Supplier order reference
|
||||||
|
|||||||
@ -60,7 +60,10 @@ class CommandeFournisseurDispatch extends CommonObject
|
|||||||
public $table_element='commande_fournisseur_dispatch'; //!< Name of table without prefix where object is stored
|
public $table_element='commande_fournisseur_dispatch'; //!< Name of table without prefix where object is stored
|
||||||
public $lines=array();
|
public $lines=array();
|
||||||
|
|
||||||
public $id;
|
/**
|
||||||
|
* @var int ID
|
||||||
|
*/
|
||||||
|
public $id;
|
||||||
|
|
||||||
public $fk_commande;
|
public $fk_commande;
|
||||||
public $fk_product;
|
public $fk_product;
|
||||||
|
|||||||
@ -41,52 +41,52 @@ class ProductFournisseur extends Product
|
|||||||
* @var DoliDB Database handler.
|
* @var DoliDB Database handler.
|
||||||
*/
|
*/
|
||||||
public $db;
|
public $db;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Error code (or message)
|
* @var string Error code (or message)
|
||||||
*/
|
*/
|
||||||
public $error='';
|
public $error='';
|
||||||
|
|
||||||
var $product_fourn_price_id; // id of ligne product-supplier
|
public $product_fourn_price_id; // id of ligne product-supplier
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int ID
|
* @var int ID
|
||||||
*/
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated
|
||||||
* @see ref_supplier
|
* @see ref_supplier
|
||||||
*/
|
*/
|
||||||
var $fourn_ref;
|
public $fourn_ref;
|
||||||
var $delivery_time_days;
|
public $delivery_time_days;
|
||||||
var $ref_supplier; // ref supplier (can be set by get_buyprice)
|
public $ref_supplier; // ref supplier (can be set by get_buyprice)
|
||||||
var $desc_supplier;
|
public $desc_supplier;
|
||||||
var $vatrate_supplier; // default vat rate for this supplier/qty/product (can be set by get_buyprice)
|
public $vatrate_supplier; // default vat rate for this supplier/qty/product (can be set by get_buyprice)
|
||||||
|
|
||||||
var $fourn_id; //supplier id
|
public $fourn_id; //supplier id
|
||||||
var $fourn_qty; // quantity for price (can be set by get_buyprice)
|
public $fourn_qty; // quantity for price (can be set by get_buyprice)
|
||||||
var $fourn_pu; // unit price for quantity (can be set by get_buyprice)
|
public $fourn_pu; // unit price for quantity (can be set by get_buyprice)
|
||||||
|
|
||||||
var $fourn_price; // price for quantity
|
public $fourn_price; // price for quantity
|
||||||
var $fourn_remise_percent; // discount for quantity (percent)
|
public $fourn_remise_percent; // discount for quantity (percent)
|
||||||
var $fourn_remise; // discount for quantity (amount)
|
public $fourn_remise; // discount for quantity (amount)
|
||||||
var $product_fourn_id; // supplier id
|
public $product_fourn_id; // supplier id
|
||||||
var $fk_availability; // availability delay - visible/used if option FOURN_PRODUCT_AVAILABILITY is on (duplicate information compared to delivery delay)
|
public $fk_availability; // availability delay - visible/used if option FOURN_PRODUCT_AVAILABILITY is on (duplicate information compared to delivery delay)
|
||||||
var $fourn_unitprice;
|
public $fourn_unitprice;
|
||||||
var $fourn_tva_tx;
|
public $fourn_tva_tx;
|
||||||
var $fourn_tva_npr;
|
public $fourn_tva_npr;
|
||||||
|
|
||||||
var $fk_supplier_price_expression;
|
public $fk_supplier_price_expression;
|
||||||
var $supplier_reputation; // reputation of supplier
|
public $supplier_reputation; // reputation of supplier
|
||||||
var $reputations=array(); // list of available supplier reputations
|
public $reputations=array(); // list of available supplier reputations
|
||||||
|
|
||||||
// Multicurreny
|
// Multicurreny
|
||||||
var $fourn_multicurrency_id;
|
public $fourn_multicurrency_id;
|
||||||
var $fourn_multicurrency_code;
|
public $fourn_multicurrency_code;
|
||||||
var $fourn_multicurrency_tx;
|
public $fourn_multicurrency_tx;
|
||||||
var $fourn_multicurrency_price;
|
public $fourn_multicurrency_price;
|
||||||
var $fourn_multicurrency_unitprice;
|
public $fourn_multicurrency_unitprice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
|||||||
@ -970,28 +970,28 @@ class PriceByCustomerLine
|
|||||||
*/
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
var $entity;
|
public $entity;
|
||||||
var $datec = '';
|
public $datec = '';
|
||||||
var $tms = '';
|
public $tms = '';
|
||||||
var $fk_product;
|
public $fk_product;
|
||||||
var $fk_soc;
|
public $fk_soc;
|
||||||
var $price;
|
public $price;
|
||||||
var $price_ttc;
|
public $price_ttc;
|
||||||
var $price_min;
|
public $price_min;
|
||||||
var $price_min_ttc;
|
public $price_min_ttc;
|
||||||
var $price_base_type;
|
public $price_base_type;
|
||||||
var $default_vat_code;
|
public $default_vat_code;
|
||||||
var $tva_tx;
|
public $tva_tx;
|
||||||
var $recuperableonly;
|
public $recuperableonly;
|
||||||
var $localtax1_tx;
|
public $localtax1_tx;
|
||||||
var $localtax2_tx;
|
public $localtax2_tx;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int User ID
|
* @var int User ID
|
||||||
*/
|
*/
|
||||||
public $fk_user;
|
public $fk_user;
|
||||||
|
|
||||||
var $import_key;
|
public $import_key;
|
||||||
var $socname;
|
public $socname;
|
||||||
var $prodref;
|
public $prodref;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -645,14 +645,14 @@ class PropalmergepdfproductLine
|
|||||||
*/
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
var $fk_product;
|
public $fk_product;
|
||||||
var $file_name;
|
public $file_name;
|
||||||
var $lang;
|
public $lang;
|
||||||
var $fk_user_author;
|
public $fk_user_author;
|
||||||
var $fk_user_mod;
|
public $fk_user_mod;
|
||||||
var $datec='';
|
public $datec='';
|
||||||
var $tms='';
|
public $tms='';
|
||||||
var $import_key;
|
public $import_key;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
|||||||
@ -33,7 +33,7 @@ class PriceExpression
|
|||||||
* @var DoliDB Database handler.
|
* @var DoliDB Database handler.
|
||||||
*/
|
*/
|
||||||
public $db;
|
public $db;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Error code (or message)
|
* @var string Error code (or message)
|
||||||
*/
|
*/
|
||||||
@ -43,15 +43,15 @@ class PriceExpression
|
|||||||
* @var string[] Error codes (or messages)
|
* @var string[] Error codes (or messages)
|
||||||
*/
|
*/
|
||||||
public $errors = array();
|
public $errors = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int ID
|
* @var int ID
|
||||||
*/
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
var $title;
|
public $title;
|
||||||
var $expression;
|
public $expression;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -49,14 +49,14 @@ class PriceGlobalVariable
|
|||||||
*/
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
var $code;
|
public $code;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string description
|
* @var string description
|
||||||
*/
|
*/
|
||||||
public $description;
|
public $description;
|
||||||
|
|
||||||
var $value;
|
public $value;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
|
|||||||
@ -44,26 +44,26 @@ class PriceGlobalVariableUpdater
|
|||||||
*/
|
*/
|
||||||
public $errors = array();
|
public $errors = array();
|
||||||
|
|
||||||
var $types=array(0, 1); //!< Updater types
|
public $types=array(0, 1); //!< Updater types
|
||||||
var $update_min = 5; //!< Minimal update rate
|
public $update_min = 5; //!< Minimal update rate
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int ID
|
* @var int ID
|
||||||
*/
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
var $type;
|
public $type;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string description
|
* @var string description
|
||||||
*/
|
*/
|
||||||
public $description;
|
public $description;
|
||||||
|
|
||||||
var $parameters;
|
public $parameters;
|
||||||
var $fk_variable;
|
public $fk_variable;
|
||||||
var $update_interval; //!< Interval in mins
|
public $update_interval; //!< Interval in mins
|
||||||
var $next_update; //!< Next update timestamp
|
public $next_update; //!< Next update timestamp
|
||||||
var $last_status;
|
public $last_status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Name of table without prefix where object is stored
|
* @var string Name of table without prefix where object is stored
|
||||||
|
|||||||
@ -483,10 +483,12 @@ class InventoryObjectLine
|
|||||||
* @var int ID
|
* @var int ID
|
||||||
*/
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var mixed Sample line property 1
|
* @var mixed Sample line property 1
|
||||||
*/
|
*/
|
||||||
public $prop1;
|
public $prop1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var mixed Sample line property 2
|
* @var mixed Sample line property 2
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -33,7 +33,11 @@ class Address
|
|||||||
{
|
{
|
||||||
protected $db;
|
protected $db;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int ID
|
||||||
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
public $type;
|
public $type;
|
||||||
public $label;
|
public $label;
|
||||||
public $socid;
|
public $socid;
|
||||||
@ -496,7 +500,12 @@ class Address
|
|||||||
class AddressLine
|
class AddressLine
|
||||||
{
|
{
|
||||||
protected $db;
|
protected $db;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int ID
|
||||||
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
public $date_creation;
|
public $date_creation;
|
||||||
public $date_modification;
|
public $date_modification;
|
||||||
public $label;
|
public $label;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user