Code comment

This commit is contained in:
Laurent Destailleur 2017-10-27 00:42:44 +02:00
parent 9283aaf6aa
commit 740c89365d

View File

@ -1582,7 +1582,7 @@ class Facture extends CommonInvoice
/** /**
* Add a discount line into invoice using an existing absolute discount * Add a discount line into an invoice (as an invoice line) using an existing absolute discount (Consume the discount)
* *
* @param int $idremise Id of absolute discount * @param int $idremise Id of absolute discount
* @return int >0 if OK, <0 if KO * @return int >0 if OK, <0 if KO
@ -1648,7 +1648,7 @@ class Facture extends CommonInvoice
$result=$this->update_price(1); $result=$this->update_price(1);
if ($result > 0) if ($result > 0)
{ {
// Create linke between discount and invoice line // Create link between discount and invoice line
$result=$remise->link_to_invoice($lineid,0); $result=$remise->link_to_invoice($lineid,0);
if ($result < 0) if ($result < 0)
{ {
@ -3552,12 +3552,12 @@ class Facture extends CommonInvoice
/** /**
* Renvoi liste des factures qualifiables pour correction par avoir * Return list of invoices qualified to be corrected by a credit note.
* Les factures qui respectent les regles suivantes sont retournees: * Invoices matching the following rules are returned
* (validee + paiement en cours) ou classee (payee completement ou payee partiellement) + pas deja remplacee + pas deja avoir * (validated + payment on process) or classified (payed completely or payed partiely) + not already replaced + not already a credit note
* *
* @param int $socid Id societe * @param int $socid Id thirdparty
* @return array Tableau des factures ($id => array('ref'=>,'paymentornot'=>,'status'=>,'paye'=>) * @return array Array of invoices ($id => array('ref'=>,'paymentornot'=>,'status'=>,'paye'=>)
*/ */
function list_qualified_avoir_invoices($socid=0) function list_qualified_avoir_invoices($socid=0)
{ {