Merge pull request #15660 from Ahuahuachi/develop

Translate phpDocs
This commit is contained in:
Laurent Destailleur 2020-12-07 22:41:51 +01:00 committed by GitHub
commit c6d253ba94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,7 +336,7 @@ class FactureFournisseur extends CommonInvoice
/** /**
* Create supplier invoice into database * Create supplier invoice into database
* *
* @param User $user object utilisateur qui cree * @param User $user user object that creates
* @return int Id invoice created if OK, < 0 if KO * @return int Id invoice created if OK, < 0 if KO
*/ */
public function create($user) public function create($user)
@ -1251,8 +1251,8 @@ class FactureFournisseur extends CommonInvoice
* Tag invoice as a payed invoice * Tag invoice as a payed invoice
* *
* @param User $user Object user * @param User $user Object user
* @param string $close_code Code renseigne si on classe a payee completement alors que paiement incomplet. Not implementd yet. * @param string $close_code Code indicates whether the class has paid in full while payment is incomplete. Not implementd yet.
* @param string $close_note Commentaire renseigne si on classe a payee alors que paiement incomplet. Not implementd yet. * @param string $close_note Comment informs if the class has been paid while payment is incomplete. Not implementd yet.
* @return int <0 si ko, >0 si ok * @return int <0 si ko, >0 si ok
*/ */
public function set_paid($user, $close_code = '', $close_note = '') public function set_paid($user, $close_code = '', $close_note = '')
@ -1294,9 +1294,9 @@ class FactureFournisseur extends CommonInvoice
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/** /**
* Tag la facture comme non payee completement + appel trigger BILL_UNPAYED * Tag the invoice as not fully paid + trigger call BILL_UNPAYED
* Fonction utilisee quand un paiement prelevement est refuse, * Function used when a direct debit payment is refused,
* ou quand une facture annulee et reouverte. * or when the invoice was canceled and reopened.
* *
* @param User $user Object user that change status * @param User $user Object user that change status
* @return int <0 si ok, >0 si ok * @return int <0 si ok, >0 si ok
@ -1579,25 +1579,25 @@ class FactureFournisseur extends CommonInvoice
/** /**
* Ajoute une ligne de facture (associe a aucun produit/service predefini) * Adds an invoice line (associated with no predefined product/service)
* Les parametres sont deja cense etre juste et avec valeurs finales a l'appel * The parameters are already supposed to be correct and with final values when calling
* de cette methode. Aussi, pour le taux tva, il doit deja avoir ete defini * this method. Also, for the VAT rate, it must already have been defined by the caller by
* par l'appelant par la methode get_default_tva(societe_vendeuse,societe_acheteuse,idprod) * by the get_default_tva method(vendor_company, buying company, idprod) and the desc must
* et le desc doit deja avoir la bonne valeur (a l'appelant de gerer le multilangue). * already have the right value (the caller has to manage the multilanguage).
* *
* @param string $desc Description de la ligne * @param string $desc Description of the line
* @param double $pu Prix unitaire (HT ou TTC selon price_base_type, > 0 even for credit note) * @param double $pu Unit price (HT or TTC according to price_base_type, > 0 even for credit note)
* @param double $txtva Force Vat rate to use, -1 for auto. * @param double $txtva Force Vat rate to use, -1 for auto.
* @param double $txlocaltax1 LocalTax1 Rate * @param double $txlocaltax1 LocalTax1 Rate
* @param double $txlocaltax2 LocalTax2 Rate * @param double $txlocaltax2 LocalTax2 Rate
* @param double $qty Quantite * @param double $qty Quantity
* @param int $fk_product Product/Service ID predefined * @param int $fk_product Product/Service ID predefined
* @param double $remise_percent Percentage discount of the line * @param double $remise_percent Percentage discount of the line
* @param integer $date_start Date de debut de validite du service * @param integer $date_start Service start date
* @param integer $date_end Date de fin de validite du service * @param integer $date_end Service expiry date
* @param string $ventil Code de ventilation comptable * @param string $ventil Accounting breakdown code
* @param int $info_bits Bits de type de lines * @param int $info_bits Line type bits
* @param string $price_base_type HT ou TTC * @param string $price_base_type HT or TTC
* @param int $type Type of line (0=product, 1=service) * @param int $type Type of line (0=product, 1=service)
* @param int $rang Position of line * @param int $rang Position of line
* @param int $notrigger Disable triggers * @param int $notrigger Disable triggers
@ -2046,9 +2046,9 @@ class FactureFournisseur extends CommonInvoice
/** /**
* Charge les informations d'ordre info dans l'objet facture * Loads the info order information into the invoice object
* *
* @param int $id Id de la facture a charger * @param int $id Id of the invoice to load
* @return void * @return void
*/ */
public function info($id) public function info($id)
@ -2095,11 +2095,11 @@ class FactureFournisseur extends CommonInvoice
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/** /**
* Renvoi liste des factures remplacables * Return list of replaceable invoices
* Statut validee ou abandonnee pour raison autre + non payee + aucun paiement + pas deja remplacee * Status valid or abandoned for other reason + not paid + no payment + not already replaced
* *
* @param int $socid Id societe * @param int $socid Thirdparty id
* @return array|int Tableau des factures ('id'=>id, 'ref'=>ref, 'status'=>status, 'paymentornot'=>0/1) * @return array|int Table of invoices ('id'=>id, 'ref'=>ref, 'status'=>status, 'paymentornot'=>0/1)
* <0 if error * <0 if error
*/ */
public function list_replacable_supplier_invoices($socid = 0) public function list_replacable_supplier_invoices($socid = 0)
@ -2144,12 +2144,12 @@ class FactureFournisseur extends CommonInvoice
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/** /**
* Renvoi liste des factures qualifiables pour correction par avoir * Return list of qualifying invoices for correction by credit note
* Les factures qui respectent les regles suivantes sont retournees: * Invoices that respect the following rules are returned:
* (validee + paiement en cours) ou classee (payee completement ou payee partiellement) + pas deja remplacee + pas deja avoir * (validated + payment in progress) or classified (paid in full or paid in part) + not already replaced + not already having
* *
* @param int $socid Id societe * @param int $socid Thirdparty id
* @return array|int Tableau des factures ($id => array('ref'=>,'paymentornot'=>,'status'=>,'paye'=>) * @return array|int Table of invoices ($id => array('ref'=>,'paymentornot'=>,'status'=>,'paye'=>)
* <0 if error * <0 if error
*/ */
public function list_qualified_avoir_supplier_invoices($socid = 0) public function list_qualified_avoir_supplier_invoices($socid = 0)