Qual: id of an instance should not be provided into method of instance
This commit is contained in:
parent
6750987dcb
commit
980901b557
@ -959,7 +959,6 @@ class Product extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* Modify price of a product/Service
|
* Modify price of a product/Service
|
||||||
*
|
*
|
||||||
* @param int $id Id of product/service to change
|
|
||||||
* @param double $newprice New price
|
* @param double $newprice New price
|
||||||
* @param string $newpricebase HT or TTC
|
* @param string $newpricebase HT or TTC
|
||||||
* @param User $user Object user that make change
|
* @param User $user Object user that make change
|
||||||
@ -970,10 +969,12 @@ class Product extends CommonObject
|
|||||||
* @param int $newpsq 1 if it has price by quantity
|
* @param int $newpsq 1 if it has price by quantity
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function updatePrice($id, $newprice, $newpricebase, $user, $newvat='',$newminprice='', $level=0, $newnpr=0, $newpsq=0)
|
function updatePrice($newprice, $newpricebase, $user, $newvat='',$newminprice='', $level=0, $newnpr=0, $newpsq=0)
|
||||||
{
|
{
|
||||||
global $conf,$langs;
|
global $conf,$langs;
|
||||||
|
|
||||||
|
$id=$this->id;
|
||||||
|
|
||||||
dol_syslog(get_class($this)."update_price id=".$id." newprice=".$newprice." newpricebase=".$newpricebase." newminprice=".$newminprice." level=".$level." npr=".$newnpr);
|
dol_syslog(get_class($this)."update_price id=".$id." newprice=".$newprice." newpricebase=".$newpricebase." newminprice=".$newminprice." level=".$level." npr=".$newnpr);
|
||||||
|
|
||||||
// Clean parameters
|
// Clean parameters
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user