summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/modules/Voucher.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/modules/Voucher.sql b/sql/modules/Voucher.sql
index 31de0bae..59c1df6c 100644
--- a/sql/modules/Voucher.sql
+++ b/sql/modules/Voucher.sql
@@ -170,7 +170,7 @@ BEGIN
) AS payment_total
FROM batch b
JOIN batch_class c ON (b.batch_class_id = c.id)
- JOIN users u ON (u.entity_id = b.created_by)
+ LEFT JOIN users u ON (u.entity_id = b.created_by)
JOIN voucher v ON (v.batch_id = b.id)
JOIN batch_class vc ON (v.batch_class = vc.id)
LEFT JOIN ar ON (vc.id = 2 AND v.trans_id = ar.id)