reordered vis statements to match updated menu flow

This commit is contained in:
Alfred Kamanda 2026-02-13 14:50:39 +03:00
parent 5c1b4ab002
commit 47a14555fb
Signed by: Alfred-mk
GPG Key ID: E60B2165A97F4D41
8 changed files with 34 additions and 11 deletions

View File

@ -0,0 +1 @@
{{.calculate_max_pay_debt}}

View File

@ -0,0 +1,10 @@
LOAD reset_transaction_amount 10
RELOAD reset_transaction_amount
MAP calculate_max_pay_debt
MOUT back 0
HALT
LOAD confirm_debt_removal 140
RELOAD confirm_debt_removal
CATCH invalid_pay_debt_amount flag_invalid_amount 1
INCMP _ 0
INCMP confirm_debt_removal *

View File

@ -1,7 +1,4 @@
LOAD confirm_debt_removal 0
MAP confirm_debt_removal
CATCH api_failure flag_api_call_error 1
CATCH invalid_credit_send_amount flag_invalid_amount 1
MOUT back 0
MOUT quit 9
HALT

View File

@ -0,0 +1 @@
Amount {{.confirm_debt_removal}} is invalid, please try again:

View File

@ -0,0 +1,7 @@
MAP confirm_debt_removal
RELOAD reset_transaction_amount
MOUT retry 1
MOUT quit 9
HALT
INCMP _ 1
INCMP quit 9

View File

@ -0,0 +1 @@
Kiwango {{.confirm_debt_removal}} sio sahihi, tafadhali weka tena:

View File

@ -1 +1 @@
{{.calculate_max_pay_debt}}
{{.get_vouchers}}

View File

@ -1,10 +1,16 @@
CATCH no_voucher flag_no_active_voucher 1
CATCH no_stable_voucher flag_no_stable_vouchers 1
LOAD get_vouchers 0
MAP get_vouchers
MOUT back 0
MOUT quit 99
MNEXT next 88
MPREV prev 98
HALT
INCMP > 88
INCMP < 98
INCMP _ 0
INCMP quit 99
LOAD calculate_max_pay_debt 0
RELOAD calculate_max_pay_debt
MAP calculate_max_pay_debt
CATCH low_pay_debt_amount flag_low_swap_amount 1
MOUT back 0
HALT
INCMP _ 0
INCMP confirm_debt_removal *
CATCH . flag_incorrect_voucher 1
INCMP calculate_max_pay_debt *