SeaninSeattle
IS-IT--Management
Help -
I'm working on a nested If-Then-Else statement, so it knocks out the cost shown on a certain type of inventory product. Can someone look at the formula below and tell me where I'm going wrong?
The first part of the statement (the inner and first statement) looks at the type and zeros the cost if it's that type. The second, outer part of the statement looks to see the order type and reverses the values if it's a return (we're a distributor of broadcast equipment).
Thanks,
Sean in Seattle
-------------
((If {IV00101.ITEMTYPE} = 3 Then {SlsRptResc.UNITCOST} = 0.00 Else {SlsRptResc.UNITCOST})
If {SlsRptResc.SOPTYPE} = 4 Then {SlsRptResc.UNITCOST} *-1 Else {SlsRptResc.UNITCOST})
I'm working on a nested If-Then-Else statement, so it knocks out the cost shown on a certain type of inventory product. Can someone look at the formula below and tell me where I'm going wrong?
The first part of the statement (the inner and first statement) looks at the type and zeros the cost if it's that type. The second, outer part of the statement looks to see the order type and reverses the values if it's a return (we're a distributor of broadcast equipment).
Thanks,
Sean in Seattle
-------------
((If {IV00101.ITEMTYPE} = 3 Then {SlsRptResc.UNITCOST} = 0.00 Else {SlsRptResc.UNITCOST})
If {SlsRptResc.SOPTYPE} = 4 Then {SlsRptResc.UNITCOST} *-1 Else {SlsRptResc.UNITCOST})