This commit is contained in:
Rodolphe Quiedeville 2003-09-09 17:02:49 +00:00
parent 5bcac71667
commit 730dd8f937

View File

@ -478,13 +478,15 @@ class Facture
$lprice = $obj->qty * $obj->price;
$amount = $amount + $lprice;
if ($this->remise_percent > 0)
{
$lremise = ($lprice * $this->remise_percent / 100);
$lprice = $lprice - $lremise;
$total_remise = $total_remise + $lremise;
}
$amount = $amount + $lprice;
$total_ht = $amount - $total_remise;
$total_tva = $total_tva + tva($lprice, $obj->tva_taux);
$i++;