Fix: Bad value for specimen

This commit is contained in:
Laurent Destailleur 2008-05-12 23:12:36 +00:00
parent 2ba58df6da
commit 25ebedf895

View File

@ -2420,7 +2420,7 @@ class Facture extends CommonObject
$ligne->tva_tx=19.6; $ligne->tva_tx=19.6;
$ligne->remise_percent=10; $ligne->remise_percent=10;
$ligne->total_ht=90; $ligne->total_ht=90;
$ligne->total_ttc=107.64; $ligne->total_ttc=107.64; // 90 * 1.196
$ligne->total_tva=17.64; $ligne->total_tva=17.64;
$prodid = rand(1, $num_prods); $prodid = rand(1, $num_prods);
$ligne->produit_id=$prodids[$prodid]; $ligne->produit_id=$prodids[$prodid];
@ -2428,10 +2428,10 @@ class Facture extends CommonObject
$xnbp++; $xnbp++;
} }
$this->amount_ht = $xnbp*100; $this->amount_ht = $xnbp*90;
$this->total_ht = $xnbp*100; $this->total_ht = $xnbp*90;
$this->total_tva = $xnbp*19.6; $this->total_tva = $xnbp*90*0.196;
$this->total_ttc = $xnbp*119.6; $this->total_ttc = $xnbp*90*1.196;
} }
/** /**