Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8332

Re: Need a Logic for balance

$
0
0

The proposed solution won't work, because it does not aggregate.

You need a global variable and a custom function F with three parameters ($balance, $paid and $rank) to resolve this.

The custom function logic:

     if ($rank = 1)

         $GV = $balance;

     else

          $GV = $GV - $paid;

     return ($GV);

In the mapping for new_balance specify:

     F(balance, paid, rank)


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>