From ea9875584fd2666193fb56a0456fe78f46e4324a Mon Sep 17 00:00:00 2001 From: Alfred Kamanda Date: Thu, 29 Jan 2026 16:59:02 +0300 Subject: [PATCH] added the calc_credit_debt to the main.vis and local handler --- handlers/local.go | 1 + services/registration/main.vis | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/handlers/local.go b/handlers/local.go index b3204a1..4c13794 100644 --- a/handlers/local.go +++ b/handlers/local.go @@ -81,6 +81,7 @@ func (ls *LocalHandlerService) GetHandler(accountService remote.AccountService) ls.DbRs.AddLocalFunc("check_account_status", appHandlers.CheckAccountStatus) ls.DbRs.AddLocalFunc("authorize_account", appHandlers.Authorize) ls.DbRs.AddLocalFunc("quit", appHandlers.Quit) + ls.DbRs.AddLocalFunc("calc_credit_debt", appHandlers.CalculateCreditAndDebt) ls.DbRs.AddLocalFunc("check_balance", appHandlers.CheckBalance) ls.DbRs.AddLocalFunc("validate_recipient", appHandlers.ValidateRecipient) ls.DbRs.AddLocalFunc("transaction_reset", appHandlers.TransactionReset) diff --git a/services/registration/main.vis b/services/registration/main.vis index d23ae05..2ce38f3 100644 --- a/services/registration/main.vis +++ b/services/registration/main.vis @@ -3,7 +3,10 @@ RELOAD clear_temporary_value LOAD manage_vouchers 160 RELOAD manage_vouchers CATCH api_failure flag_api_call_error 1 -LOAD check_balance 128 +LOAD calc_credit_debt 60 +RELOAD calc_credit_debt +CATCH api_failure flag_api_call_error 1 +LOAD check_balance 148 RELOAD check_balance MAP check_balance MOUT send 1