merge
This commit is contained in:
@@ -10,7 +10,7 @@ class QinvoiceMonthOverview {
|
|||||||
|
|
||||||
public static function fire( $projectID, $year )
|
public static function fire( $projectID, $year )
|
||||||
{
|
{
|
||||||
$sql = "SELECT MNT.id,
|
$sql = "SELECT MNT.id,
|
||||||
month,
|
month,
|
||||||
COALESCE(forecastamount, 0) AS forecastamount,
|
COALESCE(forecastamount, 0) AS forecastamount,
|
||||||
COALESCE(paymentamount, 0) AS paymentamount
|
COALESCE(paymentamount, 0) AS paymentamount
|
||||||
@@ -33,8 +33,8 @@ class QinvoiceMonthOverview {
|
|||||||
GROUP BY month_id
|
GROUP BY month_id
|
||||||
) AS PAY
|
) AS PAY
|
||||||
ON MNT.id = PAY.month_id
|
ON MNT.id = PAY.month_id
|
||||||
LEFT JOIN projects PRJ
|
JOIN projects PRJ
|
||||||
GROUP BY MNT.id
|
GROUP BY MNT.id
|
||||||
ORDER BY MNT.id ";
|
ORDER BY MNT.id ";
|
||||||
|
|
||||||
return $sql;
|
return $sql;
|
||||||
|
|||||||
Reference in New Issue
Block a user