From 37809a05b4bdf4f22a2f03c7286816df51b239a9 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Sat, 24 Aug 2024 17:12:46 +0300 Subject: [PATCH] cleanup code,define node for showing invalid date formats --- services/registration/{enter_loca => enter_location} | 0 .../registration/{enter_loca.vis => enter_location.vis} | 1 + .../registration/{enter_loca_swa => enter_location_swa} | 0 services/registration/{enter_off => enter_offerings} | 0 .../registration/{enter_off_swa => enter_offerings_swa} | 0 services/registration/enter_yob.vis | 1 + services/registration/incorrect_date_format | 2 ++ services/registration/incorrect_date_format.vis | 6 ++++++ services/registration/incorrect_date_format_swa | 0 9 files changed, 10 insertions(+) rename services/registration/{enter_loca => enter_location} (100%) rename services/registration/{enter_loca.vis => enter_location.vis} (67%) rename services/registration/{enter_loca_swa => enter_location_swa} (100%) rename services/registration/{enter_off => enter_offerings} (100%) rename services/registration/{enter_off_swa => enter_offerings_swa} (100%) create mode 100644 services/registration/incorrect_date_format create mode 100644 services/registration/incorrect_date_format.vis create mode 100644 services/registration/incorrect_date_format_swa diff --git a/services/registration/enter_loca b/services/registration/enter_location similarity index 100% rename from services/registration/enter_loca rename to services/registration/enter_location diff --git a/services/registration/enter_loca.vis b/services/registration/enter_location.vis similarity index 67% rename from services/registration/enter_loca.vis rename to services/registration/enter_location.vis index effecb0..9245bb1 100644 --- a/services/registration/enter_loca.vis +++ b/services/registration/enter_location.vis @@ -1,3 +1,4 @@ +CATCH incorrect_date_format 21 1 LOAD save_yob 0 MOUT back 0 HALT diff --git a/services/registration/enter_loca_swa b/services/registration/enter_location_swa similarity index 100% rename from services/registration/enter_loca_swa rename to services/registration/enter_location_swa diff --git a/services/registration/enter_off b/services/registration/enter_offerings similarity index 100% rename from services/registration/enter_off rename to services/registration/enter_offerings diff --git a/services/registration/enter_off_swa b/services/registration/enter_offerings_swa similarity index 100% rename from services/registration/enter_off_swa rename to services/registration/enter_offerings_swa diff --git a/services/registration/enter_yob.vis b/services/registration/enter_yob.vis index d169e05..0a5b778 100644 --- a/services/registration/enter_yob.vis +++ b/services/registration/enter_yob.vis @@ -2,4 +2,5 @@ LOAD save_gender 0 MOUT back 0 HALT INCMP _ 0 +LOAD verify_yob 8 INCMP enter_location * diff --git a/services/registration/incorrect_date_format b/services/registration/incorrect_date_format new file mode 100644 index 0000000..517ea52 --- /dev/null +++ b/services/registration/incorrect_date_format @@ -0,0 +1,2 @@ +Unsuported date format +Please provide date format as 12/01/1972 diff --git a/services/registration/incorrect_date_format.vis b/services/registration/incorrect_date_format.vis new file mode 100644 index 0000000..e94db5d --- /dev/null +++ b/services/registration/incorrect_date_format.vis @@ -0,0 +1,6 @@ +LOAD reset_incorrect_date_format 8 +MOUT retry 1 +MOUT quit 9 +HALT +INCMP enter_yob 1 +INCMP quit 9 diff --git a/services/registration/incorrect_date_format_swa b/services/registration/incorrect_date_format_swa new file mode 100644 index 0000000..e69de29