Merge pull request #24599 from frederic34/commonobjectclassdoc

add doc
This commit is contained in:
Laurent Destailleur 2023-04-26 21:20:05 +02:00 committed by GitHub
commit 98efea14cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,6 +117,11 @@ abstract class CommonObject
*/ */
public $array_options = array(); public $array_options = array();
/**
* @var array Array with all fields and their property. Do not use it as a static var. It may be modified by constructor.
*/
public $fields = array();
/** /**
* @var mixed Array to store alternative languages values of object * @var mixed Array to store alternative languages values of object
*/ */
@ -2637,6 +2642,8 @@ abstract class CommonObject
switch ($this->element) { switch ($this->element) {
case 'propal': case 'propal':
/** @var Propal $this */
/** @var PropaleLigne $line */
$this->updateline( $this->updateline(
$line->id, $line->id,
$line->subprice, $line->subprice,
@ -2663,6 +2670,8 @@ abstract class CommonObject
); );
break; break;
case 'commande': case 'commande':
/** @var Commande $this */
/** @var OrderLine $line */
$this->updateline( $this->updateline(
$line->id, $line->id,
($line->description ? $line->description : $line->desc), ($line->description ? $line->description : $line->desc),
@ -2689,6 +2698,8 @@ abstract class CommonObject
); );
break; break;
case 'facture': case 'facture':
/** @var Facture $this */
/** @var FactureLigne $line */
$this->updateline( $this->updateline(
$line->id, $line->id,
($line->description ? $line->description : $line->desc), ($line->description ? $line->description : $line->desc),
@ -2716,6 +2727,8 @@ abstract class CommonObject
); );
break; break;
case 'supplier_proposal': case 'supplier_proposal':
/** @var SupplierProposal $this */
/** @var SupplierProposalLine $line */
$this->updateline( $this->updateline(
$line->id, $line->id,
$line->subprice, $line->subprice,
@ -2740,6 +2753,8 @@ abstract class CommonObject
); );
break; break;
case 'order_supplier': case 'order_supplier':
/** @var CommandeFournisseur $this */
/** @var CommandeFournisseurLigne $line */
$this->updateline( $this->updateline(
$line->id, $line->id,
($line->description ? $line->description : $line->desc), ($line->description ? $line->description : $line->desc),
@ -2762,6 +2777,8 @@ abstract class CommonObject
); );
break; break;
case 'invoice_supplier': case 'invoice_supplier':
/** @var FactureFournisseur $this */
/** @var SupplierInvoiceLine $line */
$this->updateline( $this->updateline(
$line->id, $line->id,
($line->description ? $line->description : $line->desc), ($line->description ? $line->description : $line->desc),