Move declaration into common
This commit is contained in:
parent
cff2b923f9
commit
762d82f2fe
@ -110,9 +110,6 @@ class Facture extends CommonInvoice
|
||||
public $fk_user_valid;
|
||||
|
||||
public $date; // Date invoice
|
||||
public $date_creation; // Creation date
|
||||
public $date_validation; // Validation date
|
||||
public $date_modification; // Validation date
|
||||
public $datem;
|
||||
public $ref_client;
|
||||
public $ref_int;
|
||||
|
||||
@ -399,6 +399,12 @@ abstract class CommonObject
|
||||
public $firstname;
|
||||
public $civility_id;
|
||||
|
||||
// Dates
|
||||
public $date_creation; // Date creation
|
||||
public $date_validation; // Date validation
|
||||
public $date_modification; // Date last change (tms field)
|
||||
|
||||
|
||||
|
||||
// No constructor as it is an abstract class
|
||||
|
||||
|
||||
@ -93,7 +93,7 @@ class MyObject extends CommonObject
|
||||
'note_private' =>array('type'=>'html', 'label'=>'NotePrivate', 'enabled'=>1, 'visible'=>0, 'position'=>62),
|
||||
'date_creation' =>array('type'=>'datetime', 'label'=>'DateCreation', 'enabled'=>1, 'visible'=>-2, 'notnull'=>1, 'position'=>500),
|
||||
'tms' =>array('type'=>'timestamp', 'label'=>'DateModification', 'enabled'=>1, 'visible'=>-2, 'notnull'=>1, 'position'=>501),
|
||||
//'date_valid' =>array('type'=>'datetime', 'label'=>'DateCreation', 'enabled'=>1, 'visible'=>-2, 'position'=>502),
|
||||
//'date_validation' =>array('type'=>'datetime', 'label'=>'DateCreation', 'enabled'=>1, 'visible'=>-2, 'position'=>502),
|
||||
'fk_user_creat' =>array('type'=>'integer', 'label'=>'UserAuthor', 'enabled'=>1, 'visible'=>-2, 'notnull'=>1, 'position'=>510, 'foreignkey'=>'llx_user.rowid'),
|
||||
'fk_user_modif' =>array('type'=>'integer', 'label'=>'UserModif', 'enabled'=>1, 'visible'=>-2, 'notnull'=>-1, 'position'=>511),
|
||||
//'fk_user_valid' =>array('type'=>'integer', 'label'=>'UserValidation', 'enabled'=>1, 'visible'=>-1, 'position'=>512),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user