Can sombody confirm that the following query will give me the sales order numbers that have been invoiced but no money collected on yet?
for each ih_hist
where ih_domain = "us1"
no-lock:
find first ar_mstr where ar_domain = "us1" and ar_nbr = ih_inv_nbr
no-lock no-error.
if not avail ar_mstr then
display "no money collected yet from " ih_nbr ih_nbr ih_inv_nbr .
end. /* for each ih_hist */
for each ih_hist
where ih_domain = "us1"
no-lock:
find first ar_mstr where ar_domain = "us1" and ar_nbr = ih_inv_nbr
no-lock no-error.
if not avail ar_mstr then
display "no money collected yet from " ih_nbr ih_nbr ih_inv_nbr .
end. /* for each ih_hist */