i have shipment report with return order in report :
this is shipment report with return order(all values in table sales shippment line table) as following:
doc no order no quantity
12 15 50
12 15 50-
11 20 30
19 21 50
20 32 25
20 32 -25
WHAT I NEED IS :
1-i want to show shipment report without return order as following:
doc no order no quantity
11 20 30
19 21 50
20 32 25
meaning i don’t want any document no returned because returned order must be negative value to cancelled order that make by wrong so that i don’t want to display returned document no in report.
this report based on sales shipment header and sales shipment line table how i write code to make this result .
i try to write this code but not result
on view-sections-highlight header of sales shipment header
Sales Shipment Header, Body (1) - OnPreSection()
SalesShipmentLine.SetRange(“Document No.”,“No.”);
SalesShipmentLine.SetFilter(Quantity,’<%1’,0);
If SalesShipmentLine.FindFirst then
If Not ShowNeg then
CurrReport.SHOWOUTPUT(False);
Else
If ShowNeg then
CurrReport.SHOWOUTPUT(False);
but no result
the logic i want to write code with it is:
1-filter out those lines (and the origin) place a filter on quantity: >0
2-For those other lines (the positive ones), use another rec var to check if a similar line exist within the same document with the quantity = quantity *-1
please help me
thanks