Merge pull request #27710 from frederic34/patch-7
fix incorrect default value
This commit is contained in:
commit
4a5a109ebc
1 changed files with 3 additions and 3 deletions
|
|
@ -849,7 +849,7 @@ class FactureFournisseur extends CommonInvoice
|
|||
* @param string $ref_ext External reference of invoice
|
||||
* @return int Return integer <0 if KO, >0 if OK, 0 if not found
|
||||
*/
|
||||
public function fetch($id = '', $ref = '', $ref_ext = '')
|
||||
public function fetch($id = 0, $ref = '', $ref_ext = '')
|
||||
{
|
||||
if (empty($id) && empty($ref) && empty($ref_ext)) {
|
||||
return -1;
|
||||
|
|
@ -2069,7 +2069,7 @@ class FactureFournisseur extends CommonInvoice
|
|||
* @param int $fk_remise_except Id discount used
|
||||
* @return int >0 if OK, <0 if KO
|
||||
*/
|
||||
public function addline($desc, $pu, $txtva, $txlocaltax1, $txlocaltax2, $qty, $fk_product = 0, $remise_percent = 0, $date_start = '', $date_end = '', $ventil = 0, $info_bits = '', $price_base_type = 'HT', $type = 0, $rang = -1, $notrigger = 0, $array_options = 0, $fk_unit = null, $origin_id = 0, $pu_devise = 0, $ref_supplier = '', $special_code = '', $fk_parent_line = 0, $fk_remise_except = 0)
|
||||
public function addline($desc, $pu, $txtva, $txlocaltax1, $txlocaltax2, $qty, $fk_product = 0, $remise_percent = 0, $date_start = '', $date_end = '', $ventil = 0, $info_bits = '', $price_base_type = 'HT', $type = 0, $rang = -1, $notrigger = 0, $array_options = [], $fk_unit = null, $origin_id = 0, $pu_devise = 0, $ref_supplier = '', $special_code = '', $fk_parent_line = 0, $fk_remise_except = 0)
|
||||
{
|
||||
global $langs, $mysoc, $conf;
|
||||
|
||||
|
|
@ -2332,7 +2332,7 @@ class FactureFournisseur extends CommonInvoice
|
|||
* @param integer $rang line rank
|
||||
* @return int Return integer <0 if KO, >0 if OK
|
||||
*/
|
||||
public function updateline($id, $desc, $pu, $vatrate, $txlocaltax1 = 0, $txlocaltax2 = 0, $qty = 1, $idproduct = 0, $price_base_type = 'HT', $info_bits = 0, $type = 0, $remise_percent = 0, $notrigger = 0, $date_start = '', $date_end = '', $array_options = 0, $fk_unit = null, $pu_devise = 0, $ref_supplier = '', $rang = 0)
|
||||
public function updateline($id, $desc, $pu, $vatrate, $txlocaltax1 = 0, $txlocaltax2 = 0, $qty = 1, $idproduct = 0, $price_base_type = 'HT', $info_bits = 0, $type = 0, $remise_percent = 0, $notrigger = 0, $date_start = '', $date_end = '', $array_options = [], $fk_unit = null, $pu_devise = 0, $ref_supplier = '', $rang = 0)
|
||||
{
|
||||
global $mysoc, $langs;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue