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-24 20:49:31 +00:00
parent ef9dabdfba
commit d0fa8dfd20

View File

@ -324,12 +324,17 @@ isCurrentUser = True</spiffworkflow:preScript>
<spiffworkflow:property name="formJsonSchemaFilename" value="invoice-approval_JSONSchema.json" /> <spiffworkflow:property name="formJsonSchemaFilename" value="invoice-approval_JSONSchema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="invoice-approval_UISchema.json" /> <spiffworkflow:property name="formUiSchemaFilename" value="invoice-approval_UISchema.json" />
</spiffworkflow:properties> </spiffworkflow:properties>
<spiffworkflow:postScript># Set Finance comments <spiffworkflow:postScript># Check if commenet field was initialized
invoice["commentsFinance"] = approvalComment if 'commentFinance' not in invoice:
invoice['commentFinance'] = ''
else:
invoice["commentFinance"] = approvalComment
# Reset Approval Comment
approvalComment = "" approvalComment = ""
# Check for Finance comments # Check for Finance comments
len_finance_comments = len(invoice["commentsFinance"].strip()) len_finance_comments = len(invoice["commentFinance"].strip())
# Set Invoice Status # Set Invoice Status
if isInvoiceApproved: if isInvoiceApproved: