forked from Wavyzz/dolibarr
Qual: Spelling fixes that newly appeared. (#27495)
* Qual: Spelling fixes that newly appeared. # Qual: Fix spelling erros that appeared since the bulk updates. These issues mostly appeared since the bulk updates (a few ones were postponed to make sure no real spelling errors were missed.) * Update modulebuilder.lib.php * Update pdf_standard.modules.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -298,7 +298,7 @@ class Commande extends CommonOrder
|
||||
* 'noteditable' says if field is not editable (1 or 0)
|
||||
* 'default' is a default value for creation (can still be overwrote by the Setup of Default Values if field is editable in creation form). Note: If default is set to '(PROV)' and field is 'ref', the default value will be set to '(PROVid)' where id is rowid when a new record is created.
|
||||
* 'index' if we want an index in database.
|
||||
* 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommanded to name the field fk_...).
|
||||
* 'foreignkey'=>'tablename.field' if the field is a foreign key (it is recommended to name the field fk_...).
|
||||
* 'searchall' is 1 if we want to search in this field when making a search from the quick search button.
|
||||
* 'isameasure' must be set to 1 if you want to have a total on list for this field. Field type must be summable like integer or double(24,8).
|
||||
* 'css' is the CSS style to use on field. For example: 'maxwidth200'
|
||||
@@ -475,7 +475,7 @@ class Commande extends CommonOrder
|
||||
|
||||
// Protection
|
||||
if ($this->statut == self::STATUS_VALIDATED) {
|
||||
dol_syslog(get_class($this)."::valid action abandonned: already validated", LOG_WARNING);
|
||||
dol_syslog(get_class($this)."::valid action abandoned: already validated", LOG_WARNING);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -766,7 +766,7 @@ class Commande extends CommonOrder
|
||||
/**
|
||||
* Close order
|
||||
*
|
||||
* @param User $user Objet user that close
|
||||
* @param User $user Object user that close
|
||||
* @param int $notrigger 1=Does not execute triggers, 0=Execute triggers
|
||||
* @return int Return integer <0 if KO, >0 if OK
|
||||
*/
|
||||
@@ -899,7 +899,7 @@ class Commande extends CommonOrder
|
||||
* Create order
|
||||
* Note that this->ref can be set or empty. If empty, we will use "(PROV)"
|
||||
*
|
||||
* @param User $user Objet user that make creation
|
||||
* @param User $user Object user that make creation
|
||||
* @param int $notrigger Disable all triggers
|
||||
* @return int Return integer <0 if KO, >0 if OK
|
||||
*/
|
||||
@@ -1453,7 +1453,7 @@ class Commande extends CommonOrder
|
||||
}
|
||||
|
||||
if (!$error) {
|
||||
// Validate immediatly the order
|
||||
// Validate immediately the order
|
||||
if (getDolGlobalString('ORDER_VALID_AFTER_CLOSE_PROPAL')) {
|
||||
$this->fetch($ret);
|
||||
$this->valid($user);
|
||||
@@ -1503,7 +1503,7 @@ class Commande extends CommonOrder
|
||||
*
|
||||
* @see add_product()
|
||||
*
|
||||
* Les parametres sont deja cense etre juste et avec valeurs finales a l'appel
|
||||
* Les parameters sont deja cense etre juste et avec valeurs finales a l'appel
|
||||
* de cette methode. Aussi, pour le taux tva, il doit deja avoir ete defini
|
||||
* par l'appelant par la methode get_default_tva(societe_vendeuse,societe_acheteuse,produit)
|
||||
* et le desc doit deja avoir la bonne valeur (a l'appelant de gerer le multilangue)
|
||||
@@ -1722,7 +1722,7 @@ class Commande extends CommonOrder
|
||||
}
|
||||
}
|
||||
|
||||
// Mise a jour informations denormalisees au niveau de la commande meme
|
||||
// Mise a jour information denormalisees au niveau de la commande meme
|
||||
if (empty($noupdateafterinsertline)) {
|
||||
$result = $this->update_price(1, 'auto', 0, $mysoc); // This method is designed to add line from user input so total calculation must be done using 'auto' mode.
|
||||
}
|
||||
@@ -1759,7 +1759,7 @@ class Commande extends CommonOrder
|
||||
* @param int|string $date_end End date of the line
|
||||
* @return void
|
||||
*
|
||||
* TODO Remplacer les appels a cette fonction par generation objet Ligne
|
||||
* TODO Remplacer les appels a cette fonction par generation object Ligne
|
||||
*/
|
||||
public function add_product($idproduct, $qty, $remise_percent = 0.0, $date_start = '', $date_end = '')
|
||||
{
|
||||
@@ -1885,7 +1885,7 @@ class Commande extends CommonOrder
|
||||
if ($id) {
|
||||
$sql .= " WHERE c.rowid=".((int) $id);
|
||||
} else {
|
||||
$sql .= " WHERE c.entity IN (".getEntity('commande').")"; // Dont't use entity if you use rowid
|
||||
$sql .= " WHERE c.entity IN (".getEntity('commande').")"; // Don't use entity if you use rowid
|
||||
}
|
||||
|
||||
if ($ref) {
|
||||
@@ -2001,10 +2001,10 @@ class Commande extends CommonOrder
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Adding line of fixed discount in the order in DB
|
||||
* Add line of fixed discount in the order in DB
|
||||
*
|
||||
* @param int $idremise Id de la remise fixe
|
||||
* @return int >0 si ok, <0 si ko
|
||||
* @param int $idremise Id for the fixed discount
|
||||
* @return int >0 if OK, <0 if KO
|
||||
*/
|
||||
public function insert_discount($idremise)
|
||||
{
|
||||
@@ -2661,7 +2661,7 @@ class Commande extends CommonOrder
|
||||
/**
|
||||
* Set the planned delivery date
|
||||
*
|
||||
* @param User $user Objet utilisateur qui modifie
|
||||
* @param User $user Object utilisateur qui modifie
|
||||
* @param int $delivery_date Delivery date
|
||||
* @param int $notrigger 1=Does not execute triggers, 0= execute triggers
|
||||
* @return int Return integer <0 si ko, >0 si ok
|
||||
@@ -2720,8 +2720,8 @@ class Commande extends CommonOrder
|
||||
*
|
||||
* @param int $shortlist 0=Return array[id]=ref, 1=Return array[](id=>id,ref=>ref,name=>name)
|
||||
* @param int $draft 0=not draft, 1=draft
|
||||
* @param User $excluser Objet user to exclude
|
||||
* @param int $socid Id third pary
|
||||
* @param User $excluser Object user to exclude
|
||||
* @param int $socid Id third party
|
||||
* @param int $limit For pagination
|
||||
* @param int $offset For pagination
|
||||
* @param string $sortfield Sort criteria
|
||||
@@ -3091,7 +3091,7 @@ class Commande extends CommonOrder
|
||||
* @param float $txlocaltax1 Local tax 1 rate
|
||||
* @param float $txlocaltax2 Local tax 2 rate
|
||||
* @param string $price_base_type HT or TTC
|
||||
* @param int $info_bits Miscellaneous informations on line
|
||||
* @param int $info_bits Miscellaneous information on line
|
||||
* @param int|string $date_start Start date of the line
|
||||
* @param int|string $date_end End date of the line
|
||||
* @param int $type Type of line (0=product, 1=service)
|
||||
@@ -3929,7 +3929,7 @@ class Commande extends CommonOrder
|
||||
|
||||
|
||||
/**
|
||||
* Charge les informations d'ordre info dans l'objet commande
|
||||
* Charge les information d'ordre info dans l'objet commande
|
||||
*
|
||||
* @param int $id Id of order
|
||||
* @return void
|
||||
@@ -4002,7 +4002,7 @@ class Commande extends CommonOrder
|
||||
}
|
||||
}
|
||||
|
||||
// Initialise parametres
|
||||
// Initialise parameters
|
||||
$this->id = 0;
|
||||
$this->ref = 'SPECIMEN';
|
||||
$this->specimen = 1;
|
||||
@@ -4064,9 +4064,9 @@ class Commande extends CommonOrder
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Charge indicateurs this->nb de tableau de bord
|
||||
* Load the indicators this->nb for the state board
|
||||
*
|
||||
* @return int Return integer <0 si ko, >0 si ok
|
||||
* @return int Return integer <0 if KO, >0 if OK
|
||||
*/
|
||||
public function load_state_board()
|
||||
{
|
||||
@@ -4114,7 +4114,7 @@ class Commande extends CommonOrder
|
||||
* Create a document onto disk according to template module.
|
||||
*
|
||||
* @param string $modele Force template to use ('' to not force)
|
||||
* @param Translate $outputlangs objet lang a utiliser pour traduction
|
||||
* @param Translate $outputlangs object lang a utiliser pour traduction
|
||||
* @param int $hidedetails Hide details of lines
|
||||
* @param int $hidedesc Hide description
|
||||
* @param int $hideref Hide ref
|
||||
|
||||
Reference in New Issue
Block a user