This commit is contained in:
Laurent Destailleur 2012-10-13 13:03:39 +02:00
parent 091966902e
commit 7385ea15db
3 changed files with 37 additions and 37 deletions

View File

@ -168,7 +168,7 @@ class Propal extends CommonObject
if (! $qty) $qty = 1; if (! $qty) $qty = 1;
dol_syslog("Propal::add_product $idproduct, $qty, $remise_percent"); dol_syslog(get_class($this)."::add_product $idproduct, $qty, $remise_percent");
if ($idproduct > 0) if ($idproduct > 0)
{ {
$prod=new Product($this->db); $prod=new Product($this->db);
@ -314,7 +314,7 @@ class Propal extends CommonObject
{ {
global $conf; global $conf;
dol_syslog("Propal::Addline propalid=$propalid, desc=$desc, pu_ht=$pu_ht, qty=$qty, txtva=$txtva, fk_product=$fk_product, remise_except=$remise_percent, price_base_type=$price_base_type, pu_ttc=$pu_ttc, info_bits=$info_bits, type=$type"); dol_syslog(get_class($this)."::addline propalid=$propalid, desc=$desc, pu_ht=$pu_ht, qty=$qty, txtva=$txtva, fk_product=$fk_product, remise_except=$remise_percent, price_base_type=$price_base_type, pu_ttc=$pu_ttc, info_bits=$info_bits, type=$type");
include_once DOL_DOCUMENT_ROOT.'/core/lib/price.lib.php'; include_once DOL_DOCUMENT_ROOT.'/core/lib/price.lib.php';
// Clean parameters // Clean parameters
@ -458,10 +458,10 @@ class Propal extends CommonObject
* @param double $price_base_type HT ou TTC * @param double $price_base_type HT ou TTC
* @param int $info_bits Miscellanous informations * @param int $info_bits Miscellanous informations
* @param int $special_code Set special code ('' = we don't change it) * @param int $special_code Set special code ('' = we don't change it)
* @param int $fk_parent_line Id of line parent * @param int $fk_parent_line Id of parent line (0 in most cases, used by modules adding sublevels into lines).
* @param int $skip_update_total Skip update total * @param int $skip_update_total Keep fields total_xxx to 0 (used for special lines by some modules)
* @param int $fk_fournprice Id supplier price * @param int $fk_fournprice Id of origin supplier price
* @param int $pa_ht Buying price without tax * @param int $pa_ht Price (without tax) of product when it was bought
* @param string $label ??? * @param string $label ???
* @param int $type 0/1=Product/service * @param int $type 0/1=Product/service
* @return int 0 if OK, <0 if KO * @return int 0 if OK, <0 if KO
@ -567,13 +567,13 @@ class Propal extends CommonObject
{ {
$this->error=$this->db->error(); $this->error=$this->db->error();
$this->db->rollback(); $this->db->rollback();
dol_syslog("Propal::UpdateLine Error=".$this->error, LOG_ERR); dol_syslog(get_class($this)."::updateline Error=".$this->error, LOG_ERR);
return -1; return -1;
} }
} }
else else
{ {
dol_syslog("Propal::UpdateLigne Erreur -2 Propal en mode incompatible pour cette action"); dol_syslog(get_class($this)."::updateline Erreur -2 Propal en mode incompatible pour cette action");
return -2; return -2;
} }
} }
@ -1342,7 +1342,7 @@ class Propal extends CommonObject
else else
{ {
$this->error=$this->db->error(); $this->error=$this->db->error();
dol_syslog("Propal::set_availability Erreur SQL"); dol_syslog(get_class($this)."::set_availability Erreur SQL");
return -1; return -1;
} }
} }
@ -1371,7 +1371,7 @@ class Propal extends CommonObject
else else
{ {
$this->error=$this->db->error(); $this->error=$this->db->error();
dol_syslog("Propal::set_demand_reason Erreur SQL"); dol_syslog(get_class($this)."::set_demand_reason Erreur SQL");
return -1; return -1;
} }
} }
@ -1437,7 +1437,7 @@ class Propal extends CommonObject
else else
{ {
$this->error=$this->db->error(); $this->error=$this->db->error();
dol_syslog("Propal::set_remise_percent Error sql=$sql"); dol_syslog(get_class($this)."::set_remise_percent Error sql=$sql");
return -1; return -1;
} }
} }
@ -1472,7 +1472,7 @@ class Propal extends CommonObject
else else
{ {
$this->error=$this->db->error(); $this->error=$this->db->error();
dol_syslog("Propal::set_remise_absolue Error sql=$sql"); dol_syslog(get_class($this)."::set_remise_absolue Error sql=$sql");
return -1; return -1;
} }
} }
@ -1755,7 +1755,7 @@ class Propal extends CommonObject
$sql.= " FROM ".MAIN_DB_PREFIX."facture"; $sql.= " FROM ".MAIN_DB_PREFIX."facture";
$sql.= " WHERE rowid IN (".implode(',',$linkedInvoices).")"; $sql.= " WHERE rowid IN (".implode(',',$linkedInvoices).")";
dol_syslog("Propal::InvoiceArrayList sql=".$sql); dol_syslog(get_class($this)."::InvoiceArrayList sql=".$sql);
$resql=$this->db->query($sql); $resql=$this->db->query($sql);
if ($resql) if ($resql)

View File

@ -2156,10 +2156,10 @@ class Commande extends CommonOrder
* @param timestamp $date_start Start date of the line * @param timestamp $date_start Start date of the line
* @param timestamp $date_end End date of the line * @param timestamp $date_end End date of the line
* @param int $type Type of line (0=product, 1=service) * @param int $type Type of line (0=product, 1=service)
* @param int $fk_parent_line Parent line id * @param int $fk_parent_line Id of parent line (0 in most cases, used by modules adding sublevels into lines).
* @param int $skip_update_total Skip update of total * @param int $skip_update_total Keep fields total_xxx to 0 (used for special lines by some modules)
* @param int $fk_fournprice Id supplier price * @param int $fk_fournprice Id of origin supplier price
* @param int $pa_ht Buying price (without tax) * @param int $pa_ht Price (without tax) of product when it was bought
* @param string $label Label * @param string $label Label
* @return int < 0 if KO, > 0 if OK * @return int < 0 if KO, > 0 if OK
*/ */

View File

@ -2032,10 +2032,10 @@ class Facture extends CommonInvoice
* @param string $price_base_type HT or TTC * @param string $price_base_type HT or TTC
* @param int $info_bits Miscellanous informations * @param int $info_bits Miscellanous informations
* @param int $type Type of line (0=product, 1=service) * @param int $type Type of line (0=product, 1=service)
* @param int $fk_parent_line ??? * @param int $fk_parent_line Id of parent line (0 in most cases, used by modules adding sublevels into lines).
* @param int $skip_update_total ??? * @param int $skip_update_total Keep fields total_xxx to 0 (used for special lines by some modules)
* @param int $fk_fournprice To calculate margin * @param int $fk_fournprice Id of origin supplier price
* @param int $pa_ht Buying price of line * @param int $pa_ht Price (without tax) of product when it was bought
* @param string $label Label of the line * @param string $label Label of the line
* @return int < 0 if KO, > 0 if OK * @return int < 0 if KO, > 0 if OK
*/ */