Looks like you realized the same thing as I did:
… which is what I was trying to experiment with …
For testing, this is what I did:
- removed the Calculations from the Payment Processors.
- changed the Calculation Types to Custom so that I can apply any value that I want.
- created an Action for
Update Ticket Calculation - created a Rule for
Payment Processedto fire the Action when[:RemainingAmount] != 0 - calculate the Rounding Amount using a JS function as:
[=TN('{CALL:round.nearest([:RemainingAmount],1,1)}') - [:RemainingAmount]]
But my experiment is not working. By that I mean, no Calculation is being applied for some reason - at least, not that I can tell…
