Merge pull request #9873 from frederic34/expeditioncomment

code comment expedition class
This commit is contained in:
Laurent Destailleur 2018-10-26 15:15:08 +02:00 committed by GitHub
commit 84bff545b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,14 +77,39 @@ class Expedition extends CommonObject
public $picto = 'sending'; public $picto = 'sending';
public $socid; public $socid;
/**
* @var string Customer ref
*/
public $ref_customer; public $ref_customer;
/**
* @var string internal ref
*/
public $ref_int; public $ref_int;
public $brouillon; public $brouillon;
/**
* @var int warehouse id
*/
public $entrepot_id; public $entrepot_id;
public $lines=array(); public $lines=array();
/**
* @var string Tracking number
*/
public $tracking_number; public $tracking_number;
/**
* @var string Tracking url
*/
public $tracking_url; public $tracking_url;
public $billed; public $billed;
/**
* @var string name of pdf model
*/
public $model_pdf; public $model_pdf;
public $trueWeight; public $trueWeight;
@ -2343,14 +2368,19 @@ class ExpeditionLigne extends CommonObjectLine
*/ */
public $table_element='expeditiondet'; public $table_element='expeditiondet';
/**
* @deprecated
* @see fk_origin_line
*/
public $origin_line_id;
/** /**
* @var int ID * @var int ID
*/ */
public $fk_origin_line; public $fk_origin_line;
/** /**
* Id of shipment * @var int Id of shipment
* @var int
*/ */
public $fk_expedition; public $fk_expedition;
@ -2359,51 +2389,120 @@ class ExpeditionLigne extends CommonObjectLine
*/ */
public $db; public $db;
// From llx_expeditiondet /**
var $qty; * @var float qty asked From llx_expeditiondet
var $qty_shipped; */
var $fk_product; public $qty;
var $detail_batch;
/** /**
* Id of warehouse * @var float qty shipped
* @var int */
*/ public $qty_shipped;
/**
* @var int Id of product
*/
public $fk_product;
public $detail_batch;
/**
* @var int Id of warehouse
*/
public $entrepot_id; public $entrepot_id;
// From llx_commandedet or llx_propaldet /**
var $qty_asked; * @var float qty asked From llx_commandedet or llx_propaldet
*/
public $qty_asked;
/**
* @deprecated
* @see product_ref
*/
public $ref;
/**
* @var string product ref
*/
public $product_ref; public $product_ref;
public $product_label;
public $product_desc;
// Invoicing
var $remise_percent;
var $total_ht; // Total net of tax
var $total_ttc; // Total with tax
var $total_tva; // Total VAT
var $total_localtax1; // Total Local tax 1
var $total_localtax2; // Total Local tax 2
// Deprecated
/**
* @deprecated
* @see fk_origin_line
*/
var $origin_line_id;
/**
* @deprecated
* @see product_ref
*/
var $ref;
/** /**
* @deprecated * @deprecated
* @see product_label * @see product_label
*/ */
var $libelle; public $libelle;
/**
* @var string product label
*/
public $product_label;
/**
* @var string product description
* @deprecated
* @see product_desc
*/
public $desc;
/**
* @var string product description
*/
public $product_desc;
/**
* @var float weight
*/
public $weight;
public $weight_units;
/**
* @var float weight
*/
public $length;
public $length_units;
/**
* @var float weight
*/
public $surface;
public $surface_units;
/**
* @var float weight
*/
public $volume;
public $volume_units;
// Invoicing
public $remise_percent;
public $tva_tx;
/**
* @var float total without tax
*/
public $total_ht;
/**
* @var float total with tax
*/
public $total_ttc;
/**
* @var float total vat
*/
public $total_tva;
/**
* @var float total localtax 1
*/
public $total_localtax1;
/**
* @var float total localtax 2
*/
public $total_localtax2;
/** /**
* Constructor * Constructor
@ -2454,7 +2553,7 @@ class ExpeditionLigne extends CommonObjectLine
* *
* @param User $user User that modify * @param User $user User that modify
* @param int $notrigger 1 = disable triggers * @param int $notrigger 1 = disable triggers
* @return int <0 if KO, line id >0 if OK * @return int <0 if KO, line id >0 if OK
*/ */
function insert($user=null, $notrigger=0) function insert($user=null, $notrigger=0)
{ {