User: alex clicked save for execute-procure-to-pay/cc-invoice-approval-process/cc-invoice-approval-process-v2.bpmn
This commit is contained in:
parent
88dc9640b2
commit
4f0e37bdb6
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue