graph problem for investors #3082
This commit is contained in:
parent
9b8501b35e
commit
ee749ce245
@ -129,7 +129,9 @@ class Crunchbutton_Chart_Order extends Crunchbutton_Chart {
|
|||||||
INNER JOIN user u ON u.id_user = o.id_user
|
INNER JOIN user u ON u.id_user = o.id_user
|
||||||
LEFT JOIN community c ON o.id_community = c.id_community {$this->queryExcludeCommunties}
|
LEFT JOIN community c ON o.id_community = c.id_community {$this->queryExcludeCommunties}
|
||||||
WHERE
|
WHERE
|
||||||
o.date >= '{$this->monthFrom}-01' AND o.date <= LAST_DAY( STR_TO_DATE( '{$this->monthTo}', '%Y-%m' ) )
|
o.date >= '{$this->monthFrom}-01'
|
||||||
|
AND
|
||||||
|
DATE_FORMAT( o.date ,'%Y-%m') <= '{$this->monthTo}'
|
||||||
{$this->queryExcludeUsers}
|
{$this->queryExcludeUsers}
|
||||||
GROUP BY DATE_FORMAT(o.date ,'%Y-%m') HAVING Month BETWEEN '{$this->monthFrom}' AND '{$this->monthTo}'";
|
GROUP BY DATE_FORMAT(o.date ,'%Y-%m') HAVING Month BETWEEN '{$this->monthFrom}' AND '{$this->monthTo}'";
|
||||||
$parsedData = $this->parseDataMonthSimple( $query, $this->description );
|
$parsedData = $this->parseDataMonthSimple( $query, $this->description );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user