summaryrefslogtreecommitdiff
path: root/sql/modules/Payment.sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql/modules/Payment.sql')
-rw-r--r--sql/modules/Payment.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/modules/Payment.sql b/sql/modules/Payment.sql
index 34d506cc..6e7ddc4d 100644
--- a/sql/modules/Payment.sql
+++ b/sql/modules/Payment.sql
@@ -279,7 +279,7 @@ BEGIN
e.control_code, c.description
HAVING (in_meta_number IS NULL
OR in_meta_number = c.meta_number) AND
- (sum(p.due) > c.threshold
+ (sum(p.due) >= c.threshold
OR sum(case when a.batch_id = in_batch_id then 1
else 0 END) > 0)
ORDER BY c.meta_number ASC