Remove unnecessary code

This commit is contained in:
simnandez
2013-09-12 09:59:23 +02:00
parent 6c47ee22b4
commit b36dc08e00
4 changed files with 14 additions and 43 deletions

View File

@@ -1123,11 +1123,8 @@ class Commande extends CommonOrder
$this->line->tva_tx=$txtva;
$this->line->localtax1_tx=$txlocaltax1;
$this->line->localtax2_tx=$txlocaltax2;
if(count($localtaxes_type))
{
$this->line->localtax1_type = $localtaxes_type[0];
$this->line->localtax2_type = $localtaxes_type[2];
}
$this->line->localtax1_type = $localtaxes_type[0];
$this->line->localtax2_type = $localtaxes_type[2];
$this->line->fk_product=$fk_product;
$this->line->fk_remise_except=$fk_remise_except;
$this->line->remise_percent=$remise_percent;
@@ -2331,13 +2328,8 @@ class Commande extends CommonOrder
$this->line->tva_tx=$txtva;
$this->line->localtax1_tx=$txlocaltax1;
$this->line->localtax2_tx=$txlocaltax2;
if(count($localtaxes_type))
{
$this->line->localtax1_type = $localtaxes_type[0];
$this->line->localtax2_type = $localtaxes_type[2];
}
$this->line->localtax1_type = $localtaxes_type[0];
$this->line->localtax2_type = $localtaxes_type[2];
$this->line->remise_percent=$remise_percent;
$this->line->subprice=$subprice;
$this->line->info_bits=$info_bits;