Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to roll up, even 1 cent

Avatar

Level 3

Hi,

I want to roll up even 1 cent in the box that I marked below (in red rectangle). At the moment as default behaviour it rolling up or down which ever close. If the result amount is $137.04 it should be rolled up $138. How can I do that? I also uploaded the file below link.

Regards

http://teomanefendi.fileave.com/adobe/schoolfeeB.pdf

rollup.jpg


1 Accepted Solution

Avatar

Correct answer by
Level 5

Hi,

On the text field you have the following script

if (debitamount ne 0) then

     $ = debitamount / termnumber

else

     $ = 0

endif

if you change that to this does that not do what you want

if (debitamount ne 0) then

     $ = Ceil (debitamount / termnumber)

else

     $ = 0

endif

Hope this helps.

Malcolm

View solution in original post

2 Replies

Avatar

Correct answer by
Level 5

Hi,

On the text field you have the following script

if (debitamount ne 0) then

     $ = debitamount / termnumber

else

     $ = 0

endif

if you change that to this does that not do what you want

if (debitamount ne 0) then

     $ = Ceil (debitamount / termnumber)

else

     $ = 0

endif

Hope this helps.

Malcolm