quand j'ai ajouté un article qui n'est pas dans la base d'article dans une propale et que je transforme la propale en facture, le prix de cet article est perdu dans la transaction ... la requete SQL était incomplète

This commit is contained in:
erics 2004-01-09 00:01:57 +00:00
parent 4f4f0bc11b
commit de08ca9526

View File

@ -1,5 +1,6 @@
<?PHP <?PHP
/* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Éric Seigne <eric.seigne@ryxeo.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -385,7 +386,7 @@ class Propal
/* /*
* Lignes génériques * Lignes génériques
*/ */
$sql = "SELECT d.qty, d.description, d.price, d.tva_tx, d.rowid, d.remise_percent"; $sql = "SELECT d.qty, d.description, d.price, d.subprice, d.tva_tx, d.rowid, d.remise_percent";
$sql .= " FROM llx_propaldet as d"; $sql .= " FROM llx_propaldet as d";
$sql .= " WHERE d.fk_propal = ".$this->id ." AND d.fk_product = 0"; $sql .= " WHERE d.fk_propal = ".$this->id ." AND d.fk_product = 0";