This commit is contained in:
Laurent Destailleur 2022-02-10 11:15:59 +01:00
parent 40f0aa45c8
commit a40f76c1d8

View File

@ -228,10 +228,10 @@ class FactureFournisseurRec extends CommonInvoice
/** /**
* Create a predefined supplier invoice * Create a predefined supplier invoice
* *
* @param User $user User object * @param User $user User object
* @param int $facFournId * @param int $facFournId Id invoice
* @param int $notrigger No trigger * @param int $notrigger No trigger
* @return int <0 if KO, id of invoice created if OK * @return int <0 if KO, id of invoice created if OK
*/ */
public function create($user, $facFournId, $notrigger = 0) public function create($user, $facFournId, $notrigger = 0)
{ {
@ -833,26 +833,26 @@ class FactureFournisseurRec extends CommonInvoice
* Add a line to recursive supplier invoice * Add a line to recursive supplier invoice
* *
* @param int $fk_product Product/Service ID predefined * @param int $fk_product Product/Service ID predefined
* @param string $ref * @param string $ref Ref
* @param string $label * @param string $label Label
* @param string $desc Description de la ligne * @param string $desc Description de la ligne
* @param double $pu_ht * @param double $pu_ht Unit price
* @param int $pu_ttc * @param double $pu_ttc Unit price with tax
* @param double $qty Quantite * @param double $qty Quantity
* @param int $remise_percent Percentage discount of the line * @param int $remise_percent Percentage discount of the line
* @param double $txtva Taux de tva force, sinon -1 * @param double $txtva Taux de tva force, sinon -1
* @param int $txlocaltax1 Local tax 1 rate (deprecated) * @param int $txlocaltax1 Local tax 1 rate (deprecated)
* @param int $txlocaltax2 Local tax 2 rate (deprecated) * @param int $txlocaltax2 Local tax 2 rate (deprecated)
* @param string $price_base_type HT or 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 $date_start * @param int $date_start Date start
* @param int $date_end * @param int $date_end Date end
* @param int $info_bits VAT npr or not ? * @param int $info_bits VAT npr or not ?
* @param int $special_code Special code * @param int $special_code Special code
* @param int $rang Position of line * @param int $rang Position of line
* @param string $fk_unit Unit * @param string $fk_unit Unit
* @param int $pu_ht_devise Unit price in currency * @param int $pu_ht_devise Unit price in currency
* @return int <0 if KO, Id of line if OK * @return int <0 if KO, Id of line if OK
* @throws Exception * @throws Exception
*/ */
public function addline($fk_product, $ref, $label, $desc, $pu_ht, $pu_ttc, $qty, $remise_percent, $txtva, $txlocaltax1 = 0, $txlocaltax2 = 0, $price_base_type = 'HT', $type = 0, $date_start = 0, $date_end = 0, $info_bits = 0, $special_code = 0, $rang = -1, $fk_unit = null, $pu_ht_devise = 0) public function addline($fk_product, $ref, $label, $desc, $pu_ht, $pu_ttc, $qty, $remise_percent, $txtva, $txlocaltax1 = 0, $txlocaltax2 = 0, $price_base_type = 'HT', $type = 0, $date_start = 0, $date_end = 0, $info_bits = 0, $special_code = 0, $rang = -1, $fk_unit = null, $pu_ht_devise = 0)
@ -1020,27 +1020,27 @@ class FactureFournisseurRec extends CommonInvoice
/** /**
* Update a line to supplier invoice template * Update a line to supplier invoice template
* *
* @param $rowid * @param $rowid ID
* @param int $fk_product Product/Service ID predefined * @param int $fk_product Product/Service ID predefined
* @param $ref * @param $ref Ref
* @param string $label Label of the line * @param string $label Label of the line
* @param string $desc Description de la ligne * @param string $desc Description de la ligne
* @param double $pu_ht Prix unitaire HT (> 0 even for credit note) * @param double $pu_ht Prix unitaire HT (> 0 even for credit note)
* @param double $qty Quantite * @param double $qty Quantity
* @param int $remise_percent Percentage discount of the line * @param int $remise_percent Percentage discount of the line
* @param double $txtva Taux de tva force, sinon -1 * @param double $txtva Taux de tva force, sinon -1
* @param int $txlocaltax1 Local tax 1 rate (deprecated) * @param int $txlocaltax1 Local tax 1 rate (deprecated)
* @param int $txlocaltax2 Local tax 2 rate (deprecated) * @param int $txlocaltax2 Local tax 2 rate (deprecated)
* @param string $price_base_type HT or 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 $date_start * @param int $date_start Date start
* @param int $date_end * @param int $date_end Date end
* @param int $info_bits Bits of type of lines * @param int $info_bits Bits of type of lines
* @param int $special_code Special code * @param int $special_code Special code
* @param int $rang Position of line * @param int $rang Position of line
* @param string $fk_unit Unit * @param string $fk_unit Unit
* @param int $pu_ht_devise Unit price in currency * @param int $pu_ht_devise Unit price in currency
* @return int <0 if KO, Id of line if OK * @return int <0 if KO, Id of line if OK
* @throws Exception * @throws Exception
*/ */
public function updateline($rowid, $fk_product, $ref, $label, $desc, $pu_ht, $qty, $remise_percent, $txtva, $txlocaltax1 = 0, $txlocaltax2 = 0, $price_base_type = 'HT', $type = 0, $date_start = 0, $date_end = 0, $info_bits = 0, $special_code = 0, $rang = -1, $fk_unit = null, $pu_ht_devise = 0) public function updateline($rowid, $fk_product, $ref, $label, $desc, $pu_ht, $qty, $remise_percent, $txtva, $txlocaltax1 = 0, $txlocaltax2 = 0, $price_base_type = 'HT', $type = 0, $date_start = 0, $date_end = 0, $info_bits = 0, $special_code = 0, $rang = -1, $fk_unit = null, $pu_ht_devise = 0)