taler-mdb

GNU Taler Extensions and Integrations
Log | Files | Refs | Submodules | README | LICENSE

commit 57c757d1d5ec3604525739b5eb4aa1ce3d560542
parent 2cc7b72a47890e42a5d8e2a69716ac6fcf5666cc
Author: Dominik Hofer <dominik.hofer@bfh.ch>
Date:   Mon, 30 Dec 2019 15:28:15 +0100

sold out resetted when machine open

Diffstat:
Msrc/main.c | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -2268,6 +2268,19 @@ handle_command (const char *hex, cleanup_payment (payment_activity); payment_activity = NULL; } + for (unsigned int i = 0; i < products_length; i++) + { + if ( (sold_out_enabled) && + (0 != strcmp (products[i].description, + "empty")) && + (GNUNET_YES == products[i].sold_out) ) + { + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Resetting sold out state of product %s\n", + products[i].description); + products[i].sold_out = GNUNET_NO; + } + } break; case VMC_READER_ENABLE: GNUNET_log (GNUNET_ERROR_TYPE_INFO,