User: alex clicked save for execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn

This commit is contained in:
demo 2022-10-21 16:39:00 +00:00
parent 88dc9640b2
commit 4f0e37bdb6
1 changed files with 2 additions and 3 deletions

View File

@ -175,11 +175,10 @@ invoiceAmount_str = str(invoice.invoiceAmount)
d = decimal.Decimal(invoiceAmount_str)
d_cnt = d.as_tuple().exponent
# Get number of decimal places
decimal_cnt = abs(d_cnt)
if decimal_cnt < 2:
invoice.invoiceAmount = f'{invoice.invoiceAmount:.2f}'
#Delete unneeded variables
del d
del d_cnt
del decimal</bpmn:script>