Jump to content
  • 0
rizkiolivia

Request About Exchanger

Question

5 answers to this question

Recommended Posts

  • 0


.rate = 1000;        // Exchange rate (1 point * rate = total PoDs)

 

Share this post


Link to post
Share on other sites
  • 0

 

.rate = 1000;        // Exchange rate (1 point * rate = total PoDs)
 

.rate = 1000;   <<< for PoDs.. if 1000 PoDs only 1 cash points.

Share this post


Link to post
Share on other sites
  • 0

Well.. You can make some modification.

Example:

input .@amount;
if (.rate > 0) {
    .@total = .@amount / .rate;
    .@remainder = .@amount % .rate;
} else {
    .@total = .@amount * .rate * -1;
}

OTHER CODE HERE

.rate = -1000; // if rate < 0 than total = amount * rate

Edited by kenik

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.