debt-menu #115
1
services/registration/calculate_max_pay_debt
Normal file
1
services/registration/calculate_max_pay_debt
Normal file
@ -0,0 +1 @@
|
||||
{{.calculate_max_pay_debt}}
|
||||
10
services/registration/calculate_max_pay_debt.vis
Normal file
10
services/registration/calculate_max_pay_debt.vis
Normal 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 *
|
||||
@ -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
|
||||
|
||||
1
services/registration/invalid_pay_debt_amount
Normal file
1
services/registration/invalid_pay_debt_amount
Normal file
@ -0,0 +1 @@
|
||||
Amount {{.confirm_debt_removal}} is invalid, please try again:
|
||||
7
services/registration/invalid_pay_debt_amount.vis
Normal file
7
services/registration/invalid_pay_debt_amount.vis
Normal 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
|
||||
1
services/registration/invalid_pay_debt_amount_swa
Normal file
1
services/registration/invalid_pay_debt_amount_swa
Normal file
@ -0,0 +1 @@
|
||||
Kiwango {{.confirm_debt_removal}} sio sahihi, tafadhali weka tena:
|
||||
@ -1 +1 @@
|
||||
{{.calculate_max_pay_debt}}
|
||||
{{.get_vouchers}}
|
||||
|
||||
@ -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 *
|
||||
|
||||
Loading…
Reference in New Issue
Block a user