Update propal.class.php

This commit is contained in:
BENKE Charlene 2018-07-05 12:11:20 +02:00 committed by GitHub
parent 5a6cfd5efe
commit bfe7cd0d9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3137,7 +3137,7 @@ class Propal extends CommonObject
$clause = " WHERE";
$sql = "SELECT p.rowid, p.ref, p.datec as datec, p.fin_validite as datefin";
$sql = "SELECT p.rowid, p.ref, p.datec as datec, p.fin_validite as datefin, p.total_ht";
$sql.= " FROM ".MAIN_DB_PREFIX."propal as p";
if (!$user->rights->societe->client->voir && !$user->societe_id)
{
@ -3181,6 +3181,8 @@ class Propal extends CommonObject
while ($obj=$this->db->fetch_object($resql))
{
$response->nbtodo++;
$response->total+=$obj->total_ht;
if ($mode == 'opened')
{
$datelimit = $this->db->jdate($obj->datefin);