mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-25 14:15:14 +00:00
User: alex clicked save for manage-procurement/procurement/core-contributor-invoice-management/cc-invoice-approval/cc-invoice-approval-process-v2.bpmn
This commit is contained in:
parent
d7a3a58d4e
commit
0a97949dbc
@ -285,11 +285,15 @@ val_list = [is_num_in_name, is_decimal_cnt, is_due_date_before]
|
|||||||
|
|
||||||
val_list_cnt = val_list.count(True)
|
val_list_cnt = val_list.count(True)
|
||||||
|
|
||||||
if val_list_cnt > 1:
|
if val_list_cnt == 1:
|
||||||
if val_list_cnt == 2:
|
if is_num_in_name:
|
||||||
val_list_cnt_str = "Two"
|
single_validation_error = "Numbers are not allowed in the Submitter's Name"
|
||||||
if val_list_cnt == 3:
|
single_validation_title =
|
||||||
val_list_cnt_str = "Three"
|
single_validation_value = invoice["contributorName"]
|
||||||
|
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"
|
||||||
|
|
||||||
# Set Invoice Status
|
# Set Invoice Status
|
||||||
if svc_is_invoice_submit_pass:
|
if svc_is_invoice_submit_pass:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user