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

Re: Multiple sections in detail

$
0
0

I guess I need to capture previous:

 

     @SumBOM

     if not (Inv = PrevInv and Line = PrevLine and BOM = PrevBOM)

     then SumBOM = SumBOM + BOMAmt

     PrevInv := Inv

     PrevLine :=  Line

     PrevBOM := BOM

 

and

 

     @SumLine

     if not (Inv = PrevInv and Line = PrevLine)

     then SumLine = LineAmt + SumBOM

     PrevInv := Inv

     PrevLine :=  Line

 

Anything more elegant come to mind?


Viewing all articles
Browse latest Browse all 8411

Trending Articles



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