Flow_1wvtd9f
Flow_1wvtd9f
Flow_0e4vc4s
is_num_in_name = True
is_decimal_cnt = False
is_due_date_after = True
val_list = [is_num_in_name, is_decimal_cnt, is_due_date_after]
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"
{% if val_list_cnt == 1 %}
{{ single_validation }}
{% else %}
{% if is_num_in_name %}
- Numbers are not allowed in the Submitter's Name
{% endif %}
{% if is_decimal_cnt %}
- The involce amount must not have more than two decimal places
{% endif %}
{% if is_due_date_after %}
- The invoice due date must be after today's date.
{% endif %}
{% endif %}
Flow_0e4vc4s
Flow_1g2gsjj
Flow_1g2gsjj