Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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