Modif calcul prix de la propale
This commit is contained in:
parent
f06fee38b7
commit
38d10dd150
@ -25,7 +25,7 @@ require("./lib.inc.php");
|
||||
|
||||
function propals ($db, $year, $month) {
|
||||
global $bc;
|
||||
$sql = "SELECT s.nom, s.idp, p.rowid as propalid, p.price, p.ref,".$db->pdate("p.datep")." as dp, c.label as statut, c.id as statutid";
|
||||
$sql = "SELECT s.nom, s.idp, p.rowid as propalid, p.price - p.remise as price, p.ref,".$db->pdate("p.datep")." as dp, c.label as statut, c.id as statutid";
|
||||
$sql .= " FROM llx_societe as s, llx_propal as p, c_propalst as c WHERE p.fk_soc = s.idp AND p.fk_statut = c.id";
|
||||
$sql .= " AND c.id in (1,2,4)";
|
||||
$sql .= " AND date_format(p.datep, '%Y') = $year ";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user