How to approve bank transfer base on functional currency amount ?
Hi All,
I tried to set the BPM task of bank transfer 'BankAcctTransferRequestForAction' as following rules:
If the bank transfer amount is less than 100 HKD, then approver A others approver B.
But if I entered 99 USD which is much than 100 HKD. it will still assign to A.
May I know how to approve bank transfer base on functional currency amount ?
I tried
1.Task.payload.getFinCeBatTransferApprovalResponse.result.paymentAmount * Task.payload.getFinCeBatTransferApprovalResponse.result.conversionRate
2.(new BigDecimal(Task.payload.getFinCeBatTransferApprovalResponse.result.paymentAmount))*CurrencyConversion.getRate(Task.payload.getFinCeBatTransferApprovalResponse.result.paymentCurrencyCode,"HKD",Task.systemAttributes.createdDate,"Corporate",0)
Both of them shows approval failed.
Thanks in advance!