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

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 8623

Trending Articles