Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8491

Re: change in formula based on quantity

$
0
0

ok - I was able to fix the question with the missing ) ....but now something else seems to be entirely wrong because all my results are 0...

 

here is how I updated it:

 

if isnull({ServiceInfo.ThirdPartyServiceProvider}) or {ServiceInfo.ThirdPartyServiceProvider}= 'None' and {ServiceCode.LineOfBusiness} = "FRONTLOAD" then

(if {ServiceInfo_vw_CurrentServices.Quantity} = 1 then  5.5*4.33/60*{@TruckCost}*{@servicefrequency} else
if {ServiceInfo_vw_CurrentServices.Quantity} > 1 then  (5.5*4.33/60*{@TruckCost}*1*{@servicefrequency})+(.5*4.33/60*{@TruckCost}*{@servicefrequency}*({ServiceInfo_vw_CurrentServices.Quantity}-1)))

else

if isnull({ServiceInfo.ThirdPartyServiceProvider}) or {ServiceInfo.ThirdPartyServiceProvider}= 'None' and {ServiceCode.LineOfBusiness} = "REARLOAD" then

(if {ServiceInfo_vw_CurrentServices.Quantity} = 1 then  6*4.33/60*{@TruckCost}*{@servicefrequency} else
if {ServiceInfo_vw_CurrentServices.Quantity} > 1 then  (6*4.33/60*{@TruckCost}*{@servicefrequency})+(.5*4.33/60*{@TruckCost}*{@servicefrequency}*({ServiceInfo_vw_CurrentServices.Quantity}-1)))

else

if isnull({ServiceInfo.ThirdPartyServiceProvider}) or {ServiceInfo.ThirdPartyServiceProvider}= 'None' and {ServiceCode.LineOfBusiness} = "RECYCLING" then

(if {ServiceInfo_vw_CurrentServices.Quantity} = 1 then  6*4.33/60*{@TruckCost}*{@servicefrequency} else
if {ServiceInfo_vw_CurrentServices.Quantity} > 1 then  (6*4.33/60*{@TruckCost}*{@servicefrequency})+(.5*4.33/60*{@TruckCost}*{@servicefrequency}*({ServiceInfo_vw_CurrentServices.Quantity}-1)))


Viewing all articles
Browse latest Browse all 8491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>