Standardize and update code
This commit is contained in:
parent
215677c972
commit
87067b2bc9
@ -34,7 +34,10 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
||||
*/
|
||||
class Don extends CommonObject
|
||||
{
|
||||
public $element='don'; // Id that identify managed objects
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='don';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
|
||||
@ -29,7 +29,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
||||
*/
|
||||
class PaymentDonation extends CommonObject
|
||||
{
|
||||
public $element='payment_donation'; //!< Id that identify managed objects
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='payment_donation';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
|
||||
@ -27,7 +27,10 @@
|
||||
*/
|
||||
class EcmDirectory // extends CommonObject
|
||||
{
|
||||
public $element='ecm_directories'; //!< Id that identify managed objects
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='ecm_directories';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
|
||||
@ -44,7 +44,11 @@ if (! empty($conf->productbatch->enabled)) require_once DOL_DOCUMENT_ROOT.'/expe
|
||||
*/
|
||||
class Expedition extends CommonObject
|
||||
{
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element="shipping";
|
||||
|
||||
public $fk_element="fk_expedition";
|
||||
|
||||
/**
|
||||
@ -2272,6 +2276,9 @@ class Expedition extends CommonObject
|
||||
*/
|
||||
class ExpeditionLigne extends CommonObjectLine
|
||||
{
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='expeditiondet';
|
||||
|
||||
/**
|
||||
|
||||
@ -29,6 +29,9 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/coreobject.class.php';
|
||||
*/
|
||||
class ExpenseReportIk extends CoreObject
|
||||
{
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='expenseik';
|
||||
|
||||
/**
|
||||
|
||||
@ -29,6 +29,9 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/coreobject.class.php';
|
||||
*/
|
||||
class ExpenseReportRule extends CoreObject
|
||||
{
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='expenserule';
|
||||
|
||||
/**
|
||||
|
||||
@ -30,7 +30,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
||||
*/
|
||||
class PaymentExpenseReport extends CommonObject
|
||||
{
|
||||
public $element='payment_expensereport'; //!< Id that identify managed objects
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='payment_expensereport';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
|
||||
@ -35,6 +35,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobjectline.class.php';
|
||||
*/
|
||||
class Fichinter extends CommonObject
|
||||
{
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='fichinter';
|
||||
|
||||
/**
|
||||
@ -1331,6 +1334,9 @@ class FichinterLigne extends CommonObjectLine
|
||||
var $duration; // Duree de l'intervention
|
||||
var $rang = 0;
|
||||
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='fichinterdet';
|
||||
|
||||
/**
|
||||
|
||||
@ -40,7 +40,10 @@ require_once DOL_DOCUMENT_ROOT.'/multicurrency/class/multicurrency.class.php';
|
||||
*/
|
||||
class CommandeFournisseur extends CommonOrder
|
||||
{
|
||||
public $element='order_supplier';
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='order_supplier';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
@ -3092,7 +3095,10 @@ class CommandeFournisseur extends CommonOrder
|
||||
*/
|
||||
class CommandeFournisseurLigne extends CommonOrderLine
|
||||
{
|
||||
public $element='commande_fournisseurdet';
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='commande_fournisseurdet';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
|
||||
@ -49,7 +49,10 @@ class CommandeFournisseurDispatch extends CommonObject
|
||||
*/
|
||||
public $errors = array();
|
||||
|
||||
public $element='commandefournisseurdispatch'; //!< Id that identify managed objects
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='commandefournisseurdispatch';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
|
||||
@ -41,7 +41,10 @@ require_once DOL_DOCUMENT_ROOT.'/multicurrency/class/multicurrency.class.php';
|
||||
*/
|
||||
class FactureFournisseur extends CommonInvoice
|
||||
{
|
||||
public $element='invoice_supplier';
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='invoice_supplier';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
@ -2565,6 +2568,9 @@ class FactureFournisseur extends CommonInvoice
|
||||
*/
|
||||
class SupplierInvoiceLine extends CommonObjectLine
|
||||
{
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='facture_fourn_det';
|
||||
|
||||
/**
|
||||
|
||||
@ -35,6 +35,9 @@ require_once DOL_DOCUMENT_ROOT.'/multicurrency/class/multicurrency.class.php';
|
||||
*/
|
||||
class PaiementFourn extends Paiement
|
||||
{
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='payment_supplier';
|
||||
|
||||
/**
|
||||
|
||||
@ -32,6 +32,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
||||
*/
|
||||
class Holiday extends CommonObject
|
||||
{
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='holiday';
|
||||
|
||||
/**
|
||||
|
||||
@ -28,6 +28,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
|
||||
*/
|
||||
class Establishment extends CommonObject
|
||||
{
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='establishment';
|
||||
|
||||
/**
|
||||
|
||||
@ -39,7 +39,11 @@ if (! empty($conf->commande->enabled)) require_once DOL_DOCUMENT_ROOT.'/commande
|
||||
*/
|
||||
class Livraison extends CommonObject
|
||||
{
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element="delivery";
|
||||
|
||||
public $fk_element="fk_livraison";
|
||||
|
||||
/**
|
||||
@ -1095,6 +1099,9 @@ class LivraisonLigne extends CommonObjectLine
|
||||
public $product_ref;
|
||||
public $product_label;
|
||||
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='livraisondet';
|
||||
|
||||
/**
|
||||
|
||||
@ -29,7 +29,11 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
||||
*/
|
||||
class Loan extends CommonObject
|
||||
{
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='loan';
|
||||
|
||||
public $table='loan';
|
||||
|
||||
/**
|
||||
|
||||
@ -29,7 +29,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
||||
*/
|
||||
class LoanSchedule extends CommonObject
|
||||
{
|
||||
public $element='loan_schedule'; //!< Id that identify managed objects
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='loan_schedule';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
|
||||
@ -30,7 +30,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
||||
*/
|
||||
class PaymentLoan extends CommonObject
|
||||
{
|
||||
public $element='payment_loan'; //!< Id that identify managed objects
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='payment_loan';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
|
||||
@ -34,7 +34,10 @@ require_once DOL_DOCUMENT_ROOT."/core/class/commonobject.class.php";
|
||||
*/
|
||||
class Opensurveysondage extends CommonObject
|
||||
{
|
||||
public $element='opensurvey_sondage'; //!< Id that identify managed objects
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='opensurvey_sondage';
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
|
||||
@ -43,6 +43,9 @@ require_once DOL_DOCUMENT_ROOT.'/product/stock/class/entrepot.class.php';
|
||||
*/
|
||||
class Product extends CommonObject
|
||||
{
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='product';
|
||||
|
||||
/**
|
||||
|
||||
@ -33,6 +33,9 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/commonobject.class.php';
|
||||
*/
|
||||
class Entrepot extends CommonObject
|
||||
{
|
||||
/**
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='stock';
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user