mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-24 10:21:32 +01:00
Merge pull request #12176 from Ahuahuachi/develop
Translation of some function documentation
This commit is contained in:
@@ -219,9 +219,9 @@ abstract class CommonInvoice extends CommonObject
|
||||
}
|
||||
|
||||
/**
|
||||
* Renvoie tableau des ids de facture avoir issus de la facture
|
||||
* Returns array of credit note ids from the invoice
|
||||
*
|
||||
* @return array Tableau d'id de factures avoirs
|
||||
* @return array Array of credit note ids
|
||||
*/
|
||||
public function getListIdAvoirFromInvoice()
|
||||
{
|
||||
@@ -251,10 +251,10 @@ abstract class CommonInvoice extends CommonObject
|
||||
}
|
||||
|
||||
/**
|
||||
* Renvoie l'id de la facture qui la remplace
|
||||
* Returns the id of the invoice that replaces it
|
||||
*
|
||||
* @param string $option filtre sur statut ('', 'validated', ...)
|
||||
* @return int <0 si KO, 0 si aucune facture ne remplace, id facture sinon
|
||||
* @param string $option status filter ('', 'validated', ...)
|
||||
* @return int <0 si KO, 0 if no invoice replaces it, id of invoice otherwise
|
||||
*/
|
||||
public function getIdReplacingInvoice($option = '')
|
||||
{
|
||||
@@ -264,10 +264,10 @@ abstract class CommonInvoice extends CommonObject
|
||||
$sql.= ' AND type < 2';
|
||||
if ($option == 'validated') $sql.= ' AND fk_statut = 1';
|
||||
// PROTECTION BAD DATA
|
||||
// Au cas ou base corrompue et qu'il y a une facture de remplacement validee
|
||||
// et une autre non, on donne priorite a la validee.
|
||||
// Ne devrait pas arriver (sauf si acces concurrentiel et que 2 personnes
|
||||
// ont cree en meme temps une facture de remplacement pour la meme facture)
|
||||
// In case the database is corrupted and there is a valid replectement invoice
|
||||
// and another no, priority is given to the valid one.
|
||||
// Should not happen (unless concurrent access and 2 people have created a
|
||||
// replacement invoice for the same invoice at the same time)
|
||||
$sql.= ' ORDER BY fk_statut DESC';
|
||||
|
||||
$resql=$this->db->query($sql);
|
||||
@@ -276,12 +276,12 @@ abstract class CommonInvoice extends CommonObject
|
||||
$obj = $this->db->fetch_object($resql);
|
||||
if ($obj)
|
||||
{
|
||||
// Si il y en a
|
||||
// If there is any
|
||||
return $obj->rowid;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Si aucune facture ne remplace
|
||||
// If no invoice replaces it
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -544,8 +544,8 @@ abstract class CommonInvoice extends CommonObject
|
||||
|
||||
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
|
||||
/**
|
||||
* Renvoi une date limite de reglement de facture en fonction des
|
||||
* conditions de reglements de la facture et date de facturation.
|
||||
* Returns an invoice payment deadline based on the invoice settlement
|
||||
* conditions and billing date.
|
||||
*
|
||||
* @param integer $cond_reglement Condition of payment (code or id) to use. If 0, we use current condition.
|
||||
* @return integer Date limite de reglement si ok, <0 si ko
|
||||
@@ -589,14 +589,14 @@ abstract class CommonInvoice extends CommonObject
|
||||
|
||||
/* Definition de la date limite */
|
||||
|
||||
// 0 : ajout du nombre de jours
|
||||
// 0 : adding the number of days
|
||||
if ($cdr_type == 0)
|
||||
{
|
||||
$datelim = $this->date + ($cdr_nbjour * 3600 * 24);
|
||||
|
||||
$datelim += ($cdr_decalage * 3600 * 24);
|
||||
}
|
||||
// 1 : application de la regle "fin de mois"
|
||||
// 1 : application of the "end of the month" rule
|
||||
elseif ($cdr_type == 1)
|
||||
{
|
||||
$datelim = $this->date + ($cdr_nbjour * 3600 * 24);
|
||||
@@ -612,13 +612,13 @@ abstract class CommonInvoice extends CommonObject
|
||||
{
|
||||
$mois += 1;
|
||||
}
|
||||
// On se deplace au debut du mois suivant, et on retire un jour
|
||||
// We move at the beginning of the next month, and we take a day off
|
||||
$datelim=dol_mktime(12, 0, 0, $mois, 1, $annee);
|
||||
$datelim -= (3600 * 24);
|
||||
|
||||
$datelim += ($cdr_decalage * 3600 * 24);
|
||||
}
|
||||
// 2 : application de la règle, le N du mois courant ou suivant
|
||||
// 2 : application of the rule, the N of the current or next month
|
||||
elseif ($cdr_type == 2 && !empty($cdr_decalage))
|
||||
{
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
|
||||
@@ -733,7 +733,7 @@ abstract class CommonInvoiceLine extends CommonObjectLine
|
||||
public $total_ttc;
|
||||
|
||||
/**
|
||||
* Liste d'options cumulables:
|
||||
* List of cumulative options:
|
||||
* Bit 0: 0 si TVA normal - 1 si TVA NPR
|
||||
* Bit 1: 0 si ligne normal - 1 si bit discount (link to line into llx_remise_except)
|
||||
* @var int
|
||||
|
||||
@@ -7129,8 +7129,8 @@ class Form
|
||||
// Left part of banner
|
||||
if ($morehtmlleft)
|
||||
{
|
||||
if ($conf->browser->layout == 'phone') $ret.='<!-- morehmltleft --><div class="floatleft">'.$morehtmlleft.'</div>'; // class="center" to have photo in middle
|
||||
else $ret.='<!-- morehmltleft --><div class="inline-block floatleft">'.$morehtmlleft.'</div>';
|
||||
if ($conf->browser->layout == 'phone') $ret.='<!-- morehtmlleft --><div class="floatleft">'.$morehtmlleft.'</div>'; // class="center" to have photo in middle
|
||||
else $ret.='<!-- morehtmlleft --><div class="inline-block floatleft">'.$morehtmlleft.'</div>';
|
||||
}
|
||||
|
||||
//if ($conf->browser->layout == 'phone') $ret.='<div class="clearboth"></div>';
|
||||
|
||||
@@ -45,9 +45,9 @@ include_once DOL_DOCUMENT_ROOT .'/core/lib/json.lib.php';
|
||||
*
|
||||
* @param string $type Type of database (mysql, pgsql...)
|
||||
* @param string $host Address of database server
|
||||
* @param string $user Nom de l'utilisateur autorise
|
||||
* @param string $pass Mot de passe
|
||||
* @param string $name Nom de la database
|
||||
* @param string $user Authorized username
|
||||
* @param string $pass Password
|
||||
* @param string $name Name of database
|
||||
* @param int $port Port of database server
|
||||
* @return DoliDB A DoliDB instance
|
||||
*/
|
||||
@@ -3390,7 +3390,7 @@ function img_edit_remove($titlealt = 'default', $other = '')
|
||||
* Show logo editer/modifier fiche
|
||||
*
|
||||
* @param string $titlealt Text on alt and title of image. Alt only if param notitle is set to 1. If text is "TextA:TextB", use Text A on alt and Text B on title.
|
||||
* @param integer $float Si il faut y mettre le style "float: right"
|
||||
* @param integer $float If you have to put the style "float: right"
|
||||
* @param string $other Add more attributes on img
|
||||
* @return string Return tag img
|
||||
*/
|
||||
@@ -3407,7 +3407,7 @@ function img_edit($titlealt = 'default', $float = 0, $other = '')
|
||||
* Show logo view card
|
||||
*
|
||||
* @param string $titlealt Text on alt and title of image. Alt only if param notitle is set to 1. If text is "TextA:TextB", use Text A on alt and Text B on title.
|
||||
* @param integer $float Si il faut y mettre le style "float: right"
|
||||
* @param integer $float If you have to put the style "float: right"
|
||||
* @param string $other Add more attributes on img
|
||||
* @return string Return tag img
|
||||
*/
|
||||
@@ -3765,10 +3765,9 @@ function info_admin($text, $infoonimgalt = 0, $nodiv = 0, $admin = '1', $morecss
|
||||
|
||||
|
||||
/**
|
||||
* Affiche message erreur system avec toutes les informations pour faciliter le diagnostic et la remontee des bugs.
|
||||
* On doit appeler cette fonction quand une erreur technique bloquante est rencontree.
|
||||
* Toutefois, il faut essayer de ne l'appeler qu'au sein de pages php, les classes devant
|
||||
* renvoyer leur erreur par l'intermediaire de leur propriete "error".
|
||||
* Displays error message system with all the information to facilitate the diagnosis and the escalation of the bugs.
|
||||
* This function must be called when a blocking technical error is encountered.
|
||||
* However, one must try to call it only within php pages, classes must return their error through their property "error".
|
||||
*
|
||||
* @param DoliDB $db Database handler
|
||||
* @param mixed $error String or array of errors strings to show
|
||||
|
||||
Reference in New Issue
Block a user