Problème : 
Lorsque que l'on créé une propal, la TVA est déduite 2 fois du total


Localisation du pb dans le fichier propal.class.php Ligne 504 :

$resql = $this->addline(
                                                $this->id,
                                                $this->products[$i]->desc,
                                                $this->products[$i]->subprice,
                                                $this->products[$i]->qty,
                                                $this->products[$i]->tva_tx,
                                                $this->products[$i]->fk_product,
                                                
$this->products[$i]->remise_percent,
                                                $this->products[$i]->date_start,
                                                $this->products[$i]->date_end
                                                );

alors que la fonction réclame :
function addline($propalid, $desc, $pu, $qty, $txtva, $fk_product=0,
$remise_percent=0, $price_base_type='HT')


il faut donc mettre:
$resql = $this->addline(
                                                $this->id,
                                                $this->products[$i]->desc,
                                                $this->products[$i]->subprice,
                                                $this->products[$i]->qty,
                                                $this->products[$i]->tva_tx,
                                                $this->products[$i]->fk_product,
                                                
$this->products[$i]->remise_percent
                                                );

Cordialement,


________________________________________________________________________

Ludovic MAINIE



4 imp. du puits
27370 LE THUIT-SIGNOL
Tel :    06.24.31.88.85
Mèl:    [EMAIL PROTECTED]
Web:   www.ordilem.net


<<attachment: LogoPetit.jpeg>>

_______________________________________________
Dolibarr-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Répondre à