diff --git a/misc/category_number_one/validation-text/validation-text.bpmn b/misc/category_number_one/validation-text/validation-text.bpmn index 257278f5..321cf24b 100644 --- a/misc/category_number_one/validation-text/validation-text.bpmn +++ b/misc/category_number_one/validation-text/validation-text.bpmn @@ -14,7 +14,15 @@ is_due_date_after = False val_list = [is_num_in_name, is_decimal_cnt, is_due_date_after] -val_list_cnt = val_list.count(True) +val_list_cnt = val_list.count(True) + +if val_list_cnt == 1: + if is_num_in_name: + single_validation = "Numbers are not allowed in the Submitter's Name" + elif is_decimal_cnt: + single_validation = "The involce amount must not have more than two decimal places" + elif is_due_date_after: + single_validation = "The invoice due date must be after today's date"