Invoiced report
This commit is contained in:
@@ -11,7 +11,8 @@ class ReservationTotals {
|
||||
public static function fire()
|
||||
{
|
||||
// UNION ALL wordt gebruikt voor een full outer join
|
||||
$sql = " SELECT PRJ.id AS projectID, external_id AS externalID,
|
||||
$sql = "SELECT PRJ.id AS projectID, external_id AS externalID,
|
||||
PRJ.projectname,
|
||||
COALESCE(fromreservation, 0) AS fromreservation,
|
||||
COALESCE(Q5.costs, 0) AS costs, COALESCE(reservation, 0) AS reservation,
|
||||
COALESCE(payed, 0) AS payed, (COALESCE(reservation, 0) - COALESCE(fromreservation, 0)) AS saldo,
|
||||
|
||||
Reference in New Issue
Block a user