diff --git a/manage-procurement/procurement/core-contributor-invoice-management/cc-invoice-approval/cc-invoice-approval-process-v2.bpmn b/manage-procurement/procurement/core-contributor-invoice-management/cc-invoice-approval/cc-invoice-approval-process-v2.bpmn index 468a6c63..c401e79d 100644 --- a/manage-procurement/procurement/core-contributor-invoice-management/cc-invoice-approval/cc-invoice-approval-process-v2.bpmn +++ b/manage-procurement/procurement/core-contributor-invoice-management/cc-invoice-approval/cc-invoice-approval-process-v2.bpmn @@ -35,6 +35,7 @@ Gateway_0wk5se9 Activity_show_errors Activity_10p5t0r + Activity_0twki30 Gateway_0dqj39f Activity_07oyzdx Event_15y55nw @@ -63,7 +64,6 @@ Activity_0gkpa9s Activity_0gkejaj Waku_Message_Pending_Payment - Activity_0twki30 Activity_1t8wi0r @@ -119,6 +119,7 @@ + @@ -246,6 +247,21 @@ isCurTest = False Flow_1x4rtop Flow_06amgv2 + + Flow_18cic3h + Flow_1pefcgv + # CLear Contributor Name if contains number +if svc_is_num_in_name: + invoice["contributorName"] = None + +# Clear Invoice Anount if more than 2 decimals +if svc_decimal_cnt > 2: + invoice["invoiceAmount"] = None + +# Clear Invocie Due Date if before Today's Date +if not(svc_is_due_date_after): + invoice["dueDate"] = None + Flow_0z51hpb Flow_1xvt99y @@ -437,7 +453,7 @@ else: Flow_0hrln7l Flow_14glsqd - + Flow_0a9w301 Flow_0cj1m0h del(filesAccept) @@ -449,11 +465,12 @@ else: Flow_0hws1pe - Flow_0n6znyl + + Flow_1cwebky - Flow_0n6znyl + Flow_1fvtcqt @@ -505,14 +522,14 @@ ___ DataObjectReference_1g4gzsx - + Flow_1xvt99y Flow_0hrln7l timedelta(seconds=1) - + Flow_1qf14hx Flow_1xo0lvm @@ -1036,48 +1053,21 @@ isCurTest = False Flow_18i75ep - - Flow_1v8dszb - - timedelta(minutes=5) - - - - - - - # Set Invoice Status to Approved and Pending Payment invoice["invoiceStatus"] = "Approved and Pending Payment" + Flow_1fvtcqt Flow_0hws1pe - - - DataObjectReference_0br9o6c - Property_1hsvamz - Flow_1j5eznh - # Set Task Id and Project Lead comments length -if isMatch: - task_id = "waku_payment_pending_ismatch" - len_project_lead_comments = 0 -else: - task_id = "waku_payment_pending_not_ismatch" - len_project_lead_comments = len(invoice["commentsProjectLead"].strip()) - -# Set Message in Call Activity -isSetMessage = True - -# Set Time Zone -timezone = current_user_extras["time_zone"] + - Flow_1j5eznh + Flow_0781nlm Flow_1w7kqay @@ -1099,25 +1089,35 @@ timezone = current_user_extras["time_zone"] Flow_1buk0a2 - + + + + Flow_1j5eznh + Flow_0781nlm + # Set Task Id and Project Lead comments length +if isMatch: + task_id = "waku_payment_pending_ismatch" +else: + task_id = "waku_payment_pending_not_ismatch" + len_project_lead_comments = len(invoice["commentsProjectLead"].strip()) + +# Set Message in Call Activity +isSetMessage = True + +# Set Time Zone +timezone = current_user_extras["time_zone"] + - - Flow_18cic3h - Flow_1pefcgv - # CLear Contributor Name if contains number -if svc_is_num_in_name: - invoice["contributorName"] = None - -# Clear Invoice Anount if more than 2 decimals -if svc_decimal_cnt > 2: - invoice["invoiceAmount"] = None - -# Clear Invocie Due Date if before Today's Date -if not(svc_is_due_date_after): - invoice["dueDate"] = None - - - + + Flow_1v8dszb + + timedelta(minutes=5) + + + + + + @@ -1210,6 +1210,9 @@ if not(svc_is_due_date_after): + + + @@ -1306,12 +1309,11 @@ if not(svc_is_due_date_after): - + - @@ -1322,6 +1324,12 @@ if not(svc_is_due_date_after): + + + + + + @@ -1344,27 +1352,18 @@ if not(svc_is_due_date_after): - + - + - - - - - - - - - @@ -1385,16 +1384,16 @@ if not(svc_is_due_date_after): + + + + - - - - @@ -1464,7 +1463,7 @@ if not(svc_is_due_date_after): - + @@ -1564,7 +1563,7 @@ if not(svc_is_due_date_after): - + @@ -1577,6 +1576,10 @@ if not(svc_is_due_date_after): + + + + @@ -1629,9 +1632,7 @@ if not(svc_is_due_date_after): - - - + @@ -1647,10 +1648,6 @@ if not(svc_is_due_date_after): - - - - @@ -1716,17 +1713,13 @@ if not(svc_is_due_date_after): - + - - - - @@ -1937,9 +1930,6 @@ if not(svc_is_due_date_after): - - - @@ -1951,6 +1941,12 @@ if not(svc_is_due_date_after): + + + + + + @@ -1960,7 +1956,11 @@ if not(svc_is_due_date_after): - + + + + +