Hello,
I am new to the forums. I was hoping someone could help me with this Crystal report issue.
I have 3 data fields in a MySQL database that are stored as comma delimited array. These three fields represent the product grade, the quantity and the dollar value of the input side of a work order.
(grade array) = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
(volume array) = 391, 1548, 0, 2548, 241, 0, 0, 0, 0, 0
(cost array) = 1300.000, 1290.000, 1290.000, 650.000, 360.000, 0.000, 0.000, 1200.000, 0.000, 0.000
What I need to do is calculate Position1 391*1300 - Position2 1548*1290 - through Position10
I also need to do an if then else with the first set of data where
if G-ARRAY = 1 then "FAS"
ELSE IF G-ARRAY = 2 THEN "1F"
ELSE IF G-ARRAY = 3 THEN "SEL"
OR
If G-ARRAY = grade.table.ID then grade.table.gradename
I also need to use the results of these calculated fields to calculate the difference between the input of the work order and the output of the work order.
The output I am looking for would be like this:
GRADE VOLUME PRICE VALUE
FAS 391 $1300 $508.30
1F 1548 1290 $1996.92
Thanks in advance!
I am new to the forums. I was hoping someone could help me with this Crystal report issue.
I have 3 data fields in a MySQL database that are stored as comma delimited array. These three fields represent the product grade, the quantity and the dollar value of the input side of a work order.
(grade array) = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
(volume array) = 391, 1548, 0, 2548, 241, 0, 0, 0, 0, 0
(cost array) = 1300.000, 1290.000, 1290.000, 650.000, 360.000, 0.000, 0.000, 1200.000, 0.000, 0.000
What I need to do is calculate Position1 391*1300 - Position2 1548*1290 - through Position10
I also need to do an if then else with the first set of data where
if G-ARRAY = 1 then "FAS"
ELSE IF G-ARRAY = 2 THEN "1F"
ELSE IF G-ARRAY = 3 THEN "SEL"
OR
If G-ARRAY = grade.table.ID then grade.table.gradename
I also need to use the results of these calculated fields to calculate the difference between the input of the work order and the output of the work order.
The output I am looking for would be like this:
GRADE VOLUME PRICE VALUE
FAS 391 $1300 $508.30
1F 1548 1290 $1996.92
Thanks in advance!