gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-merchant] branch master updated: correctly compare refund amount


From: gnunet
Subject: [taler-merchant] branch master updated: correctly compare refund amount in GET /private/orders
Date: Tue, 04 Aug 2020 10:02:18 +0200

This is an automated email from the git hooks/post-receive script.

jonathan-buchanan pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 5649cdf  correctly compare refund amount in GET /private/orders
5649cdf is described below

commit 5649cdfde6b82a7fe7c023bb9cb3c124cbe7221c
Author: Jonathan Buchanan <jonathan.russ.buchanan@gmail.com>
AuthorDate: Tue Aug 4 04:02:07 2020 -0400

    correctly compare refund amount in GET /private/orders
---
 src/backend/taler-merchant-httpd_private-get-orders.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-httpd_private-get-orders.c 
b/src/backend/taler-merchant-httpd_private-get-orders.c
index 41f5be4..1b245b8 100644
--- a/src/backend/taler-merchant-httpd_private-get-orders.c
+++ b/src/backend/taler-merchant-httpd_private-get-orders.c
@@ -355,7 +355,7 @@ add_order (void *cls,
         json_decref (contract_terms);
         return;
       }
-      if (0 < TALER_amount_cmp (&refund_amount,
+      if (0 > TALER_amount_cmp (&refund_amount,
                                 &order_amount))
         refundable = true;
     }

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]