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
7848556fe5
commit
3b2a1d62e8
|
@ -277,28 +277,20 @@ 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 >= 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 > 1:
|
||||
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"
|
||||
|
||||
|
||||
# Set Invoice Status
|
||||
if svc_is_invoice_submit_pass:
|
||||
invoice["invoiceStatus"] = "Awaiting approval"
|
||||
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue