benedictine191
New Member
hi all,may i ask about ih_hist....
i build a report which display sales output per period...
but when i display it to page..their invoice date has duplicate from 1 item to 8 same items.
to make it clearly....here i add the printscreen as attachment
the question is : how to make it right (1 invoice date as output only)..sory if my english so bad...thanks
i build a report which display sales output per period...
but when i display it to page..their invoice date has duplicate from 1 item to 8 same items.
Code:
FOR EACH ih_hist WHERE ih_domain = GLOBAL_domain AND ih_nbr >= nbr AND ih_nbr <= nbr1 AND ih_ship >= shto and ih_ship <= shto1
and ih_inv_date >= ord and ih_inv_date <= ord1 NO-LOCK BREAK BY ih_ship :
FIND FIRST ad_mstr WHERE ad_domain = GLOBAL_domain AND ad_addr = ih_ship NO-LOCK NO-ERROR.
CREATE det.
ASSIGN
ihnbr = ih_nbr.
****o = ih_ship.
nmstor = ad_name .
ord = ih_inv_date.
ord1 = ih_inv_date.
END.
PUT SKIP(2).
PUT "LAPORAN KOMISI GAJI" AT 50 SKIP
"===================" at 50 skip(2).
PUT "STORE :" at 9 SPACE(2) nmstor FORMAT "x(50)"
"Periode : " at 96 ord format "99/99/9999" "Sampai : " at 96 ord1 format "99/99/9999" SKIP.
PUT "ATAS NAMA :" at 9 SPACE(2) dibuat FORMAT "x(30)".
PUT SKIP(1).
FOR EACH ih_hist WHERE ih_domain = GLOBAL_domain AND ih_nbr >= nbr AND ih_nbr <= nbr1
and ih_ship >= shto and ih_ship <= shto1
and ih_inv_date >= ord and ih_inv_date <= ord1 NO-LOCK :
for each idh_hist where idh_domain = global_domain and idh_nbr = ih_nbr no-lock :
DISPLAY
space(8)
ih_inv_date LABEL "TGL."
ih_invoicetotal FORMAT "->>>,>>>,>>9.99" LABEL "SALES" WITH width 120.
end.
jml = jml + ih_invoicetotal.
tot = totc + tran.
end.
the question is : how to make it right (1 invoice date as output only)..sory if my english so bad...thanks