Standardize and update code

This commit is contained in:
Philippe GRAND 2018-09-02 10:42:31 +02:00
parent bb18982f78
commit c4f05aff28
3 changed files with 87 additions and 83 deletions

View File

@ -1664,7 +1664,7 @@ class AccountLine extends CommonObject
*/ */
public $table_element='bank'; public $table_element='bank';
var $picto = 'generic'; public $picto = 'generic';
/** /**
* @var int ID * @var int ID
@ -1676,32 +1676,32 @@ class AccountLine extends CommonObject
*/ */
public $ref; public $ref;
var $datec; public $datec;
var $dateo; public $dateo;
/** /**
* Value date * Value date
*/ */
var $datev; public $datev;
var $amount; public $amount;
/** /**
* @var string bank transaction lines label * @var string bank transaction lines label
*/ */
public $label; public $label;
var $note; public $note;
var $fk_user_author; public $fk_user_author;
var $fk_user_rappro; public $fk_user_rappro;
var $fk_type; public $fk_type;
var $rappro; // Is it conciliated public $rappro; // Is it conciliated
var $num_releve; // If conciliated, what is bank statement public $num_releve; // If conciliated, what is bank statement
var $num_chq; // Num of cheque public $num_chq; // Num of cheque
var $bank_chq; // Bank of cheque public $bank_chq; // Bank of cheque
var $fk_bordereau; // Id of cheque receipt public $fk_bordereau; // Id of cheque receipt
var $fk_account; // Id of bank account public $fk_account; // Id of bank account
var $bank_account_label; // Label of bank account public $bank_account_label; // Label of bank account
public $emetteur; public $emetteur;

View File

@ -52,24 +52,24 @@ class PaymentVarious extends CommonObject
*/ */
public $ref; public $ref;
var $tms; public $tms;
var $datep; public $datep;
var $datev; public $datev;
var $sens; public $sens;
var $amount; public $amount;
var $type_payment; public $type_payment;
var $num_payment; public $num_payment;
/** /**
* @var string various payments label * @var string various payments label
*/ */
public $label; public $label;
var $accountancy_code; public $accountancy_code;
var $fk_project; public $fk_project;
var $fk_bank; public $fk_bank;
var $fk_user_author; public $fk_user_author;
var $fk_user_modif; public $fk_user_modif;
/** /**

View File

@ -81,27 +81,29 @@ class Contrat extends CommonObject
* Customer reference of the contract * Customer reference of the contract
* @var string * @var string
*/ */
var $ref_customer; public $ref_customer;
/** /**
* Supplier reference of the contract * Supplier reference of the contract
* @var string * @var string
*/ */
var $ref_supplier; public $ref_supplier;
/** /**
* Client id linked to the contract * Client id linked to the contract
* @var int * @var int
*/ */
var $socid; public $socid;
var $societe; // Objet societe
public $societe; // Objet societe
/** /**
* Status of the contract * Status of the contract
* @var int * @var int
*/ */
var $statut=0; // 0=Draft, public $statut=0; // 0=Draft,
var $product;
public $product;
/** /**
* @var int Id of user author of the contract * @var int Id of user author of the contract
@ -128,7 +130,7 @@ class Contrat extends CommonObject
/** /**
* @var int Date of creation * @var int Date of creation
*/ */
var $date_creation; public $date_creation;
/** /**
* @var int Date of last modification. Not filled until you call ->info() * @var int Date of last modification. Not filled until you call ->info()
@ -138,34 +140,34 @@ class Contrat extends CommonObject
/** /**
* @var int Date of validation * @var int Date of validation
*/ */
var $date_validation; public $date_validation;
/** /**
* @var int Date when contract was signed * @var int Date when contract was signed
*/ */
var $date_contrat; public $date_contrat;
/** /**
* @var int Date of contract closure * @var int Date of contract closure
* @deprecated we close contract lines, not a contract * @deprecated we close contract lines, not a contract
*/ */
var $date_cloture; public $date_cloture;
var $commercial_signature_id; public $commercial_signature_id;
var $commercial_suivi_id; public $commercial_suivi_id;
/** /**
* @deprecated Use fk_project instead * @deprecated Use fk_project instead
* @see fk_project * @see fk_project
*/ */
var $fk_projet; public $fk_projet;
var $extraparams=array(); public $extraparams=array();
/** /**
* @var ContratLigne[] Contract lines * @var ContratLigne[] Contract lines
*/ */
var $lines=array(); public $lines=array();
/** /**
* Maps ContratLigne IDs to $this->lines indexes * Maps ContratLigne IDs to $this->lines indexes
@ -2492,17 +2494,19 @@ class ContratLigne extends CommonObjectLine
*/ */
public $ref; public $ref;
var $tms; public $tms;
public $fk_contrat;
public $fk_product;
public $statut; // 0 inactive, 4 active, 5 closed
public $type; // 0 for product, 1 for service
var $fk_contrat;
var $fk_product;
var $statut; // 0 inactive, 4 active, 5 closed
var $type; // 0 for product, 1 for service
/** /**
* @var string * @var string
* @deprecated * @deprecated
*/ */
var $label; public $label;
/** /**
* @var string * @var string
* @deprecated * @deprecated
@ -2514,31 +2518,31 @@ class ContratLigne extends CommonObjectLine
*/ */
public $description; public $description;
var $product_ref; public $product_ref;
var $product_label; public $product_label;
var $date_commande; public $date_commande;
var $date_start; // date start planned public $date_start; // date start planned
var $date_start_real; // date start real public $date_start_real; // date start real
var $date_end; // date end planned public $date_end; // date end planned
var $date_end_real; // date end real public $date_end_real; // date end real
// For backward compatibility // For backward compatibility
var $date_ouverture_prevue; // date start planned public $date_ouverture_prevue; // date start planned
var $date_ouverture; // date start real public $date_ouverture; // date start real
var $date_fin_validite; // date end planned public $date_fin_validite; // date end planned
var $date_cloture; // date end real public $date_cloture; // date end real
var $tva_tx; public $tva_tx;
var $localtax1_tx; public $localtax1_tx;
var $localtax2_tx; public $localtax2_tx;
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 $qty; public $qty;
var $remise_percent; public $remise_percent;
var $remise; public $remise;
var $fk_remise_except; public $fk_remise_except;
var $subprice; // Unit price HT public $subprice; // Unit price HT
/** /**
* @var float * @var float
@ -2547,22 +2551,22 @@ class ContratLigne extends CommonObjectLine
*/ */
public $price; public $price;
var $price_ht; public $price_ht;
var $total_ht; public $total_ht;
var $total_tva; public $total_tva;
var $total_localtax1; public $total_localtax1;
var $total_localtax2; public $total_localtax2;
var $total_ttc; public $total_ttc;
var $fk_fournprice; public $fk_fournprice;
var $pa_ht; public $pa_ht;
var $info_bits; public $info_bits;
var $fk_user_author; public $fk_user_author;
var $fk_user_ouverture; public $fk_user_ouverture;
var $fk_user_cloture; public $fk_user_cloture;
var $commentaire; public $commentaire;
const STATUS_INITIAL = 0; const STATUS_INITIAL = 0;
const STATUS_OPEN = 4; const STATUS_OPEN = 4;