This commit is contained in:
2018-05-27 16:04:29 +02:00
parent 3e22cdb270
commit 8fe98e6ccb
@@ -14,8 +14,7 @@ class ReservationTotals {
$sql = "SELECT Q5.project_id AS projectID, external_id AS externalID,
Q5.costs, reservation, payed, (reservation - payed) AS saldo,
(Q5.costs - payed) AS saldoToPay, PRJ.projectnumber, EXT.contactperson,
ROUND(( (other_revenue * (100 + (SELECT vatrate from vats where active='T' LIMIT 1))) / 100 ), 0) other_revenue
SELECT vatrate
ROUND(( (other_revenue * (100 + (SELECT vatrate
FROM vats VTS
JOIN projects P
ON VTS.id = P.vat_id