From 3a4f824ab9eddde1388d9670f6fd97b7ec1385c3 Mon Sep 17 00:00:00 2001 From: Alfred Kamanda Date: Wed, 4 Feb 2026 16:31:32 +0300 Subject: [PATCH] added a CATCH when no stable voucher exists during the pay debt --- services/registration/no_stable_voucher | 1 + services/registration/no_stable_voucher.vis | 5 +++++ services/registration/no_stable_voucher_swa | 1 + services/registration/pay_debt.vis | 1 + 4 files changed, 8 insertions(+) create mode 100644 services/registration/no_stable_voucher create mode 100644 services/registration/no_stable_voucher.vis create mode 100644 services/registration/no_stable_voucher_swa diff --git a/services/registration/no_stable_voucher b/services/registration/no_stable_voucher new file mode 100644 index 0000000..2988bb3 --- /dev/null +++ b/services/registration/no_stable_voucher @@ -0,0 +1 @@ +No stable voucher found \ No newline at end of file diff --git a/services/registration/no_stable_voucher.vis b/services/registration/no_stable_voucher.vis new file mode 100644 index 0000000..832ef22 --- /dev/null +++ b/services/registration/no_stable_voucher.vis @@ -0,0 +1,5 @@ +MOUT back 0 +MOUT quit 9 +HALT +INCMP ^ 0 +INCMP quit 9 diff --git a/services/registration/no_stable_voucher_swa b/services/registration/no_stable_voucher_swa new file mode 100644 index 0000000..ab8cbf2 --- /dev/null +++ b/services/registration/no_stable_voucher_swa @@ -0,0 +1 @@ +Hakuna sarafu thabiti iliyopatikana \ No newline at end of file diff --git a/services/registration/pay_debt.vis b/services/registration/pay_debt.vis index 94fcc99..147fe06 100644 --- a/services/registration/pay_debt.vis +++ b/services/registration/pay_debt.vis @@ -1,4 +1,5 @@ CATCH no_voucher flag_no_active_voucher 1 +CATCH no_stable_voucher flag_no_pay_debt_vouchers 1 LOAD calculate_max_pay_debt 0 RELOAD calculate_max_pay_debt MAP calculate_max_pay_debt