Ok, here is my field names/data types.
Group 1 ABC {@Bus Unit} (formula) ((if left({TICKETS.DIVISION},1)="1"
then "CORP"
else if left({TICKETS.DIVISION},1)="2"
then "SSG"
else if left({TICKETS.DIVISION},1)="4"
then "BCA"
else if left({TICKETS.DIVISION},1)="8"
then "PW"
else if left({TICKETS.DIVISION},1)="9"
then "IDS"
else if left({TICKETS.DIVISION},1)="B"
then "BCC"
else if left({TICKETS.DIVISION},1)="C"
then "CBB"
else if left({TICKETS.DIVISION},1)="D"
then "IBP"))
Group 3 BAAAME {TICKETS.PNR_LOCATOR} NON REFUNDABLE{@Tkt Type} (formula) ((If {TICKETS.SAVINGS_CODE} = "NR"
then "Non Refundable"
else "Refundable"))
Detail 132456 {TICKETS.TICKET_NO} 640.20 {TICKETS.TOTAL_FARE) 1 {@NR Tickets} (Formula) ((if {@Tkt Type}="Non Refundable"
then 1)) 0 {@R Tickets} (Formula) ((if {TICKETS.SAVINGS_CODE}<>"NR"
then if {TICKETS.SAVINGS_CODE}<>"PX"
then 1))
BAAADG NON REFUNDABLE
123654 246.04 1 0
BAABFP REFUNDABLE
458975 326.60 0 1
CDEFJJ REFUNDABLE
987589 1.00 0 1
UEIRRU NON REFUNDABLE
458796 711.54 1 0
987541 336.27 1 0
I hope this helps cause if not I am lost, in the accum and the above sample I guess I am confused on which fields I need to be putting where. Again, THANKS.