show a balance of 0 and prevent sending when no voucher exists
This commit is contained in:
1
services/registration/no_voucher
Normal file
1
services/registration/no_voucher
Normal file
@@ -0,0 +1 @@
|
||||
You need a voucher to send
|
||||
5
services/registration/no_voucher.vis
Normal file
5
services/registration/no_voucher.vis
Normal file
@@ -0,0 +1,5 @@
|
||||
MOUT back 0
|
||||
MOUT quit 9
|
||||
HALT
|
||||
INCMP ^ 0
|
||||
INCMP quit 9
|
||||
1
services/registration/no_voucher_swa
Normal file
1
services/registration/no_voucher_swa
Normal file
@@ -0,0 +1 @@
|
||||
Unahitaji sarafu kutuma
|
||||
@@ -15,4 +15,5 @@ flag,flag_allow_update,21,this is set to allow a user to update their profile da
|
||||
flag,flag_single_edit,22,this is set to allow a user to edit a single profile item such as year of birth
|
||||
flag,flag_incorrect_date_format,23,this is set when the given year of birth is invalid
|
||||
flag,flag_incorrect_voucher,24,this is set when the selected voucher is invalid
|
||||
flag,flag_api_call_error,25,this is set when communication to an external service fails
|
||||
flag,flag_api_call_error,25,this is set when communication to an external service fails
|
||||
flag,flag_no_active_voucher,26,this is set when a user does not have an active voucher
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
LOAD transaction_reset 0
|
||||
CATCH no_voucher flag_no_active_voucher 1
|
||||
MOUT back 0
|
||||
HALT
|
||||
LOAD validate_recipient 20
|
||||
|
||||
Reference in New Issue
Block a user