Designware
Technical User
- Sep 24, 2002
- 202
Hi,
I have a single table report that is sorted by PO# then Item#. The data looks something like:
Line ---PO ---- Item ----- Qty ----- Cost ---- Ext Cost
1 ------ 1 ------ A -------- 2 ------- 3.20 ------- 6.40
2 ------ 1 ------ A ------- -2 ------- 3.20 ------ -6.40
3 ------ 1 ------ A -------- 2 ------- 3.50 ------- 7.00
4 ------ 2 ------ B -------- 4 ------- 2.15 ------- 8.60
5 ------ 2 ------ B ------- -4 ------- 2.05 ------ -8.20
6 ------ 2 ------ B -------- 4 ------- 2.00 ------- 8.00
This is an error report, so I only want to pull out POs where the original cost in is NOT exactly backed out by the following negative entry. And the 3rd entry I don't care about. So:
Line 1 brings in $6.40 in product for PO 1 Item A
Line 2 backs out $6.40 in product for PO 1 Item A ... line 1 and line 2 match ... all is well so not an error, don't report on this PO
Line 3 ... I don't care
Line 4 brings in $8.60 in product for PO 2 Item B
Line 5 backs out $8.20 in product for PO 2 Item B ... line 4 and line 5 do not match ... list PO 2 on the report as a problem
Line 6 .... I don't care
I am trying to figure out how I can do this with Crystal Reports 10 running on a MS SQL database.
Thank you for your help. I am stumped.
I have a single table report that is sorted by PO# then Item#. The data looks something like:
Line ---PO ---- Item ----- Qty ----- Cost ---- Ext Cost
1 ------ 1 ------ A -------- 2 ------- 3.20 ------- 6.40
2 ------ 1 ------ A ------- -2 ------- 3.20 ------ -6.40
3 ------ 1 ------ A -------- 2 ------- 3.50 ------- 7.00
4 ------ 2 ------ B -------- 4 ------- 2.15 ------- 8.60
5 ------ 2 ------ B ------- -4 ------- 2.05 ------ -8.20
6 ------ 2 ------ B -------- 4 ------- 2.00 ------- 8.00
This is an error report, so I only want to pull out POs where the original cost in is NOT exactly backed out by the following negative entry. And the 3rd entry I don't care about. So:
Line 1 brings in $6.40 in product for PO 1 Item A
Line 2 backs out $6.40 in product for PO 1 Item A ... line 1 and line 2 match ... all is well so not an error, don't report on this PO
Line 3 ... I don't care
Line 4 brings in $8.60 in product for PO 2 Item B
Line 5 backs out $8.20 in product for PO 2 Item B ... line 4 and line 5 do not match ... list PO 2 on the report as a problem
Line 6 .... I don't care
I am trying to figure out how I can do this with Crystal Reports 10 running on a MS SQL database.
Thank you for your help. I am stumped.