added a node for credit voucher selection
This commit is contained in:
parent
2d6e7e81dd
commit
108d5bdc3e
@ -154,6 +154,7 @@ func (ls *LocalHandlerService) GetHandler(accountService remote.AccountService)
|
|||||||
ls.DbRs.AddLocalFunc("pool_deposit_max_amount", appHandlers.PoolDepositMaxAmount)
|
ls.DbRs.AddLocalFunc("pool_deposit_max_amount", appHandlers.PoolDepositMaxAmount)
|
||||||
ls.DbRs.AddLocalFunc("confirm_pool_deposit", appHandlers.ConfirmPoolDeposit)
|
ls.DbRs.AddLocalFunc("confirm_pool_deposit", appHandlers.ConfirmPoolDeposit)
|
||||||
ls.DbRs.AddLocalFunc("initiate_pool_deposit", appHandlers.InitiatePoolDeposit)
|
ls.DbRs.AddLocalFunc("initiate_pool_deposit", appHandlers.InitiatePoolDeposit)
|
||||||
|
ls.DbRs.AddLocalFunc("validate_credit_voucher", appHandlers.ValidateCreditVoucher)
|
||||||
|
|
||||||
ls.first = appHandlers.Init
|
ls.first = appHandlers.Init
|
||||||
|
|
||||||
|
|||||||
@ -3,10 +3,13 @@ RELOAD transaction_reset
|
|||||||
CATCH no_voucher flag_no_active_voucher 1
|
CATCH no_voucher flag_no_active_voucher 1
|
||||||
MOUT back 0
|
MOUT back 0
|
||||||
HALT
|
HALT
|
||||||
|
LOAD clear_trans_type_flag 6
|
||||||
|
RELOAD clear_trans_type_flag
|
||||||
LOAD validate_recipient 50
|
LOAD validate_recipient 50
|
||||||
RELOAD validate_recipient
|
RELOAD validate_recipient
|
||||||
CATCH api_failure flag_api_call_error 1
|
CATCH api_failure flag_api_call_error 1
|
||||||
CATCH invalid_recipient flag_invalid_recipient 1
|
CATCH invalid_recipient flag_invalid_recipient 1
|
||||||
CATCH invite_recipient flag_invalid_recipient_with_invite 1
|
CATCH invite_recipient flag_invalid_recipient_with_invite 1
|
||||||
|
CATCH credit_vouchers flag_multiple_voucher 1
|
||||||
INCMP _ 0
|
INCMP _ 0
|
||||||
INCMP credit_amount *
|
INCMP credit_amount *
|
||||||
|
|||||||
1
services/registration/credit_vouchers
Normal file
1
services/registration/credit_vouchers
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{.get_ordered_vouchers}}
|
||||||
15
services/registration/credit_vouchers.vis
Normal file
15
services/registration/credit_vouchers.vis
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
LOAD get_ordered_vouchers 0
|
||||||
|
MAP get_ordered_vouchers
|
||||||
|
MOUT back 0
|
||||||
|
MOUT quit 99
|
||||||
|
MNEXT next 88
|
||||||
|
MPREV prev 98
|
||||||
|
HALT
|
||||||
|
INCMP > 88
|
||||||
|
INCMP < 98
|
||||||
|
INCMP _ 0
|
||||||
|
INCMP quit 99
|
||||||
|
LOAD validate_credit_voucher 67
|
||||||
|
RELOAD validate_credit_voucher
|
||||||
|
CATCH . flag_incorrect_voucher 1
|
||||||
|
INCMP credit_amount *
|
||||||
Loading…
Reference in New Issue
Block a user