[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] 01/03: -fix direction of check
From: |
gnunet |
Subject: |
[taler-merchant] 01/03: -fix direction of check |
Date: |
Wed, 21 Apr 2021 01:01:49 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
commit e9f29d84b6993d51e352d505042f948e8be00a59
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Apr 21 00:23:13 2021 +0200
-fix direction of check
---
src/backend/taler-merchant-httpd_private-patch-products-ID.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/taler-merchant-httpd_private-patch-products-ID.c
b/src/backend/taler-merchant-httpd_private-patch-products-ID.c
index cc4678a7..47f695af 100644
--- a/src/backend/taler-merchant-httpd_private-patch-products-ID.c
+++ b/src/backend/taler-merchant-httpd_private-patch-products-ID.c
@@ -84,7 +84,7 @@ determine_cause (struct MHD_Connection *connection,
ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_LOST_REDUCED;
if (pdx.total_stock > pd->total_stock)
ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_STOCKED_REDUCED;
- if (pd->total_stock - pdx.total_sold > pd->total_lost)
+ if (pd->total_stock - pdx.total_sold < pd->total_lost)
ec = TALER_EC_MERCHANT_PRIVATE_PATCH_PRODUCTS_TOTAL_LOST_EXCEEDS_STOCKS;
TALER_MERCHANTDB_product_details_free (&pdx);
return TALER_MHD_reply_with_error (connection,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.