commit 490ab7ea22887a2316fa287f00bedbe2ddddc26e parent 0ac4cb1a4b32d622008bf8e145580df6a3c8ff95 Author: Christian Grothoff <christian@grothoff.org> Date: Tue, 30 Jun 2026 20:27:40 +0200 fix 'above' refund selection logic Diffstat:
| M | src/exchangedb/select_refunds_above_serial_id.c | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/exchangedb/select_refunds_above_serial_id.c b/src/exchangedb/select_refunds_above_serial_id.c @@ -136,8 +136,9 @@ refunds_serial_helper_cb (void *cls, /* normalize */ s_v += s_f / TALER_AMOUNT_FRAC_BASE; s_f %= TALER_AMOUNT_FRAC_BASE; - full_refund = (s_v >= amount_with_fee.value) && - (s_f >= amount_with_fee.fraction); + full_refund = (s_v > amount_with_fee.value) || + ( (s_v == amount_with_fee.value) && + (s_f >= amount_with_fee.fraction) ); } ret = rsc->cb (rsc->cb_cls, rowid,