diff options
-rw-r--r-- | sql/modules/Payment.sql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/modules/Payment.sql b/sql/modules/Payment.sql index 1af67e9b..2a7e6e56 100644 --- a/sql/modules/Payment.sql +++ b/sql/modules/Payment.sql @@ -269,7 +269,7 @@ BEGIN (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 DESC + ORDER BY c.meta_number ASC LOOP RETURN NEXT payment_item; END LOOP; |