hi,
have following situation:
1st table has the informations about my order positions
2nd table has all my item informations, like base.item-unit
3rd table has the infos about how the sales unit and the standard item unit are connected to eachother, like 1 meter is 100 cm and so on.
Table 3 has an index item, base-item-unit, other unit, conversion factor. There can be 2 possible situations.
the 1st one would have a conversion factor for the specific item, and the second on would be global and would have an empty field item.
Now if in my orderposition the unit is meter and the price is 200 I have to find what the price would be for me item-table unit which would be 200/100 if my item unit would be 1 cm.
That means, that I have a select like follows:
select table3.conversion_factor
from table3
where
table3.item = table1.item and
table3.basic_unit = table2.unit and
table3.unit = table1.unit
selectdo
do whatso ever
selectempty
select table3.conversion_factor
from table3
where
table3.item = "" and
table3.basic_unit = table2.unit and
table3.unit = table1.unit
How could I do something like this in Crystal???
Any help would be very appreciated.
Many Thanks in advance
Hal
have following situation:
1st table has the informations about my order positions
2nd table has all my item informations, like base.item-unit
3rd table has the infos about how the sales unit and the standard item unit are connected to eachother, like 1 meter is 100 cm and so on.
Table 3 has an index item, base-item-unit, other unit, conversion factor. There can be 2 possible situations.
the 1st one would have a conversion factor for the specific item, and the second on would be global and would have an empty field item.
Now if in my orderposition the unit is meter and the price is 200 I have to find what the price would be for me item-table unit which would be 200/100 if my item unit would be 1 cm.
That means, that I have a select like follows:
select table3.conversion_factor
from table3
where
table3.item = table1.item and
table3.basic_unit = table2.unit and
table3.unit = table1.unit
selectdo
do whatso ever
selectempty
select table3.conversion_factor
from table3
where
table3.item = "" and
table3.basic_unit = table2.unit and
table3.unit = table1.unit
How could I do something like this in Crystal???
Any help would be very appreciated.
Many Thanks in advance
Hal