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:
demo 2022-11-26 04:44:45 +00:00
parent 7848556fe5
commit 3b2a1d62e8
1 changed files with 10 additions and 18 deletions

View File

@ -277,27 +277,19 @@ del decimal</bpmn:script>
<bpmn:scriptTask id="Activity_1j8k6mb" name="Set Invoice Status">
<bpmn:incoming>Flow_0tzjowk</bpmn:incoming>
<bpmn:outgoing>Flow_04odmtl</bpmn:outgoing>
<bpmn:script>is_num_in_name = True
is_decimal_cnt = False
is_due_date_after = True
<bpmn:script>is_num_in_name = svc_is_num_in_name
is_decimal_cnt = (svc_decimal_cnt &gt;= 2)
is_due_date_before - not(svc_is_due_date_after)
val_list = [is_num_in_name, is_decimal_cnt, is_due_date_after]
val_list = [is_num_in_name, is_decimal_cnt, is_due_date_before]
val_list_cnt = val_list.count(True)
if val_list_cnt == 2:
val_list_cnt_str = "Two"
if val_list_cnt == 3:
val_list_cnt_str = "Three"
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 &gt; 1:
if val_list_cnt == 2:
val_list_cnt_str = "Two"
if val_list_cnt == 3:
val_list_cnt_str = "Three"
# Set Invoice Status
if svc_is_invoice_submit_pass:
@ -325,7 +317,7 @@ else:
<spiffworkflow:instructionsForEndUser>{{ submitInvoiceValidationMessage }}
**Please fix when resubmitting.** </spiffworkflow:instructionsForEndUser>
<spiffworkflow:preScript></spiffworkflow:preScript>
<spiffworkflow:preScript />
</bpmn:extensionElements>
<bpmn:incoming>Flow_13ng1f4</bpmn:incoming>
<bpmn:outgoing>Flow_18cic3h</bpmn:outgoing>