Clean dead code
This commit is contained in:
parent
30d22378ac
commit
6cf97a7317
@ -1930,16 +1930,6 @@ class Facture extends CommonInvoice
|
||||
$rangtouse = $rangmax + 1;
|
||||
}
|
||||
|
||||
// TODO A virer
|
||||
// Anciens indicateurs: $price, $remise (a ne plus utiliser)
|
||||
//$price = $pu;
|
||||
//$remise = 0;
|
||||
//if ($remise_percent > 0)
|
||||
//{
|
||||
// $remise = round(($pu * $remise_percent / 100),2);
|
||||
// $price = ($pu - $remise);
|
||||
//}
|
||||
|
||||
$product_type=$type;
|
||||
if ($fk_product)
|
||||
{
|
||||
@ -1980,10 +1970,6 @@ class Facture extends CommonInvoice
|
||||
$this->line->fk_fournprice = $fk_fournprice;
|
||||
$this->line->pa_ht = $pa_ht;
|
||||
|
||||
// TODO Ne plus utiliser
|
||||
//$this->line->price=($this->type==2?-1:1)*abs($price);
|
||||
//$this->line->remise=($this->type==2?-1:1)*abs($remise);
|
||||
|
||||
$result=$this->line->insert();
|
||||
if ($result > 0)
|
||||
{
|
||||
|
||||
@ -2189,11 +2189,6 @@ abstract class CommonObject
|
||||
{
|
||||
$nb=0;
|
||||
|
||||
//if (empty($this->table_element_line)) dol_print_error('Call hasPredefinedProducts on a class with no table_element_line property');
|
||||
|
||||
//$sql ='SELECT COUNT(rowid) FROM '.MAIN_DB_PREFIX.$this->table_element_line;
|
||||
//$sql.='WHERE ...';
|
||||
//var_dump($this->lines);
|
||||
foreach($this->lines as $key => $val)
|
||||
{
|
||||
$qualified=0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user