Skip to content

Commit

Permalink
fix(cashflow): do not filter reversals
Browse files Browse the repository at this point in the history
This commit fixes the cashflow report by not filtering by reversals.  If
the reversal query is NULL, it will simply print it inline.  However,
previously the NULL killed the entire report.

This should be investigated... but at least our clients can use the
report.
  • Loading branch information
Jonathan Niles authored and jniles committed Feb 26, 2017
1 parent ca68de6 commit da2bc77
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/controllers/finance/reports/cashflow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,6 @@ function reportByService(req, res, next) {
JOIN service ON invoice.service_id = service.id
WHERE cash.is_caution = 0
AND cash.date >= DATE(?) AND cash.date <= DATE(?)
AND cash.uuid NOT IN
(SELECT DISTINCT voucher.reference_uuid FROM voucher WHERE voucher.type_id = ${CASH_RETURN_ID})
ORDER BY cash.date;
`;

Expand Down

0 comments on commit da2bc77

Please sign in to comment.