Update and standardize code

This commit is contained in:
Philippe GRAND 2018-08-22 12:04:50 +02:00
parent e0462b975b
commit 6542dcf0bd
8 changed files with 38 additions and 6 deletions

View File

@ -34,7 +34,11 @@ class AccountancyCategory // extends CommonObject
public $error; //!< To return error code (or message)
public $errors=array(); //!< To return several error codes (or messages)
public $element='c_accounting_category'; //!< Id that identify managed objects
public $table_element='c_accounting_category'; //!< Name of table without prefix where object is stored
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='c_accounting_category';
public $id;
public $code;

View File

@ -31,7 +31,12 @@
class AccountingAccount extends CommonObject
{
public $element='accounting_account';
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='accounting_account';
public $picto = 'billr';
/**

View File

@ -27,7 +27,12 @@
class AccountingJournal extends CommonObject
{
public $element='accounting_journal';
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='accounting_journal';
public $fk_element = '';
public $ismultientitymanaged = 0; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
public $picto = 'generic';

View File

@ -48,7 +48,10 @@ class AdvanceTargetingMailing extends CommonObject
*/
public $element='advtargetemailing';
var $table_element='advtargetemailing'; //!< Name of table without prefix where object is stored
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='advtargetemailing';
/**
* @var int ID

View File

@ -1648,7 +1648,11 @@ class AccountLine extends CommonObject
*/
public $element='bank';
var $table_element='bank';
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='bank';
var $picto = 'generic';
/**

View File

@ -38,7 +38,11 @@ class ExpenseReport extends CommonObject
*/
public $element='expensereport';
var $table_element='expensereport';
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='expensereport';
var $table_element_line = 'expensereport_det';
var $fk_element = 'fk_expensereport';
var $picto = 'trip';

View File

@ -33,7 +33,11 @@ class Productcustomerprice extends CommonObject
*/
public $element = 'product_customer_price';
var $table_element = 'product_customer_price'; // !< Name of table without prefix where object is stored
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element = 'product_customer_price';
var $entity;
var $datec = '';
var $tms = '';

View File

@ -36,7 +36,10 @@ class Propalmergepdfproduct extends CommonObject
*/
public $element='propal_merge_pdf_product';
var $table_element='propal_merge_pdf_product'; //!< Name of table without prefix where object is stored
/**
* @var string Name of table without prefix where object is stored
*/
public $table_element='propal_merge_pdf_product';
var $fk_product;
var $file_name;