Standardize and Update code

This commit is contained in:
Philippe GRAND 2018-09-01 22:55:10 +02:00
parent d86d7323fb
commit 7b0d3c32ab
13 changed files with 55 additions and 6 deletions

View File

@ -71,7 +71,11 @@ class AccountingAccount extends CommonObject
*/ */
public $id; public $id;
/**
* @var int ID
*/
public $rowid; public $rowid;
public $datec; // Creation date public $datec; // Creation date
public $fk_pcg_version; public $fk_pcg_version;
public $pcg_type; public $pcg_type;

View File

@ -44,6 +44,9 @@ class AccountingJournal extends CommonObject
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
public $picto = 'generic'; public $picto = 'generic';
/**
* @var int ID
*/
public $rowid; public $rowid;
public $code; public $code;

View File

@ -95,6 +95,10 @@ class Asset extends CommonObject
'import_key' => array('type'=>'varchar(14)', 'label'=>'ImportId', 'visible'=>-2, 'enabled'=>1, 'position'=>1000, 'notnull'=>-1,), 'import_key' => array('type'=>'varchar(14)', 'label'=>'ImportId', 'visible'=>-2, 'enabled'=>1, 'position'=>1000, 'notnull'=>-1,),
'status' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>1000, 'notnull'=>1, 'index'=>1, 'arrayofkeyval'=>array('0'=>'Draft', '1'=>'Active', '-1'=>'Cancel')), 'status' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>1000, 'notnull'=>1, 'index'=>1, 'arrayofkeyval'=>array('0'=>'Draft', '1'=>'Active', '-1'=>'Cancel')),
); );
/**
* @var int ID
*/
public $rowid; public $rowid;
/** /**

View File

@ -88,6 +88,10 @@ class EmailSenderProfile extends CommonObject
'tms' => array('type'=>'timestamp', 'label'=>'DateModification', 'visible'=>-1, 'enabled'=>1, 'position'=>500, 'notnull'=>1,), 'tms' => array('type'=>'timestamp', 'label'=>'DateModification', 'visible'=>-1, 'enabled'=>1, 'position'=>500, 'notnull'=>1,),
'active' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>1000, 'notnull'=>-1, 'index'=>1), 'active' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>1000, 'notnull'=>-1, 'index'=>1),
); );
/**
* @var int ID
*/
public $rowid; public $rowid;
/** /**

View File

@ -47,6 +47,9 @@ class Fiscalyear extends CommonObject
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
/**
* @var int ID
*/
public $rowid; public $rowid;
/** /**

View File

@ -41,6 +41,9 @@ class PaymentDonation extends CommonObject
public $picto = 'payment'; public $picto = 'payment';
/**
* @var int ID
*/
public $rowid; public $rowid;
public $fk_donation; public $fk_donation;

View File

@ -77,7 +77,10 @@ class FactureFournisseur extends CommonInvoice
*/ */
protected $table_ref_field = 'ref'; protected $table_ref_field = 'ref';
public $rowid; /**
* @var int ID
*/
public $rowid;
/** /**
* @var string Ref * @var string Ref

View File

@ -48,13 +48,19 @@ class Establishment extends CommonObject
public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe public $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
public $picto='building'; public $picto='building';
public $id; /**
* @var int ID
*/
public $id;
/** /**
* @var string Ref * @var string Ref
*/ */
public $ref; public $ref;
/**
* @var int ID
*/
public $rowid; public $rowid;
public $name; public $name;

View File

@ -43,7 +43,11 @@ class Loan extends CommonObject
public $picto = 'bill'; public $picto = 'bill';
/**
* @var int ID
*/
public $rowid; public $rowid;
public $datestart; public $datestart;
public $dateend; public $dateend;
public $label; public $label;

View File

@ -101,6 +101,9 @@ class MyObject extends CommonObject
'status' =>array('type'=>'integer', 'label'=>'Status', 'enabled'=>1, 'visible'=>1, 'notnull'=>1, 'default'=>0, 'index'=>1, 'position'=>1000, 'arrayofkeyval'=>array(0=>'Draft', 1=>'Active', -1=>'Cancel')), 'status' =>array('type'=>'integer', 'label'=>'Status', 'enabled'=>1, 'visible'=>1, 'notnull'=>1, 'default'=>0, 'index'=>1, 'position'=>1000, 'arrayofkeyval'=>array(0=>'Draft', 1=>'Active', -1=>'Cancel')),
); );
/**
* @var int ID
*/
public $rowid; public $rowid;
/** /**

View File

@ -99,6 +99,9 @@ class Inventory extends CommonObject
'status' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>1000, 'default'=>0, 'arrayofkeyval'=>array(0=>'Todo', 1=>'Done', -1=>'Cancel')), 'status' => array('type'=>'integer', 'label'=>'Status', 'visible'=>1, 'enabled'=>1, 'position'=>1000, 'default'=>0, 'arrayofkeyval'=>array(0=>'Todo', 1=>'Done', -1=>'Cancel')),
); );
/**
* @var int ID
*/
public $rowid; public $rowid;
/** /**

View File

@ -118,7 +118,12 @@ class CompanyPaymentMode extends CommonObject
'import_key' =>array('type'=>'varchar(14)', 'label'=>'Import key', 'enabled'=>1, 'visible'=>-2, 'position'=>105), 'import_key' =>array('type'=>'varchar(14)', 'label'=>'Import key', 'enabled'=>1, 'visible'=>-2, 'position'=>105),
//'aaa' =>array('type'=>'date', 'label'=>'Ending date', 'enabled'=>0, 'visible'=>-2, 'position'=>185), //'aaa' =>array('type'=>'date', 'label'=>'Ending date', 'enabled'=>0, 'visible'=>-2, 'position'=>185),
); );
/**
* @var int ID
*/
public $rowid; public $rowid;
public $fk_soc; public $fk_soc;
public $label; public $label;
public $bank; public $bank;

View File

@ -28,7 +28,11 @@ require_once DOL_DOCUMENT_ROOT.'/stripe/config.php'; // This set stripe glo
*/ */
class Stripe extends CommonObject class Stripe extends CommonObject
{ {
/**
* @var int ID
*/
public $rowid; public $rowid;
public $fk_soc; public $fk_soc;
public $fk_key; public $fk_key;
public $id; public $id;