i want to see only returned order(order that have negative value)

I send sample report to you teressa

hi prajeesh what i need not negative value only i want returned order so that to show what i need see this example when i make order like this

doc no order no quantity

12 3 5

after i returned this order he will make as

12 3 -5

to select returned order by writing code the result will be order and returned order(what i need)

12 3 5

12 3 -5

so i want to tell him in coding select any doc no his quantity positive and negative to same doc no

Seems overcomplicated.

Do you apply the return order directly to the order?
If so can’t you used the apply-to Doc number to get the info from the order.