Skip to content

Commit

Permalink
Standardize and update code
Browse files Browse the repository at this point in the history
  • Loading branch information
grandoc committed Sep 28, 2018
1 parent 15ff9f8 commit 574cfad
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
5 changes: 5 additions & 0 deletions htdocs/fourn/class/fournisseur.commande.class.php
Expand Up @@ -3159,7 +3159,12 @@ class CommandeFournisseurLigne extends CommonOrderLine
// From llx_commande_fournisseurdet
public $fk_parent_line;
public $fk_facture;

/**
* @var string supplier order line label
*/
public $label;

public $rang = 0;
public $special_code = 0;

Expand Down
13 changes: 9 additions & 4 deletions htdocs/loan/class/loan.class.php
Expand Up @@ -50,7 +50,12 @@ class Loan extends CommonObject

public $datestart;
public $dateend;
public $label;

/**
* @var string Loan label
*/
public $label;

public $capital;
public $nbterm;
public $rate;
Expand Down Expand Up @@ -454,7 +459,7 @@ function getNomUrl($withpicto=0,$maxlen=0)

return $result;
}

/**
* Initialise an instance with random values.
* Used to build previews or test instances.
Expand All @@ -465,9 +470,9 @@ function getNomUrl($withpicto=0,$maxlen=0)
function initAsSpecimen()
{
global $user, $langs, $conf;

$now=dol_now();

// Initialise parameters
$this->id = 0;
$this->fk_bank = 1;
Expand Down
6 changes: 5 additions & 1 deletion htdocs/modulebuilder/template/class/myobject.class.php
Expand Up @@ -116,7 +116,11 @@ class MyObject extends CommonObject
*/
public $entity;

public $label;
/**
* @var string label
*/
public $label;

public $amount;
public $status;
public $date_creation;
Expand Down
7 changes: 6 additions & 1 deletion htdocs/product/stock/class/mouvementstock.class.php
Expand Up @@ -50,7 +50,12 @@ class MouvementStock extends CommonObject
public $datem = '';
public $price;
public $fk_user_author;
public $label;

/**
* @var string stock movements label
*/
public $label;

public $fk_origin;
public $origintype;
public $inventorycode;
Expand Down

0 comments on commit 574cfad

Please sign in to comment.