Rangoon Posted July 22, 2000 Posted July 22, 2000 I have been using "repeating fields" for the following calc. I am now switching to "Line Items" and my problem is this. The calc works fine for individual item pricing, but I need it to give me the Lb. Price for each item based upon the entire pounds of the order, not just the one line item. (each line item also has an order number unique to each order". Your help would be very appreciated as I'm a little over my head here. Pound Sell Price If(CasesOrderedSum = 0, TextToNum(""), If(Extend(Sales Detail::OrderType) = "Direct", If(NetWtCalcSum <= Lb1 , SellLbCalc1, If(NetWtCalcSum >= Lb1 + 1 and NetWtCalcSum <= Lb2 , SellLbCalc2, If(NetWtCalcSum >= Lb2 + 1 and NetWtCalcSum <= Lb3 , SellLbCalc3, If(NetWtCalcSum >= Lb3 + 1 and NetWtCalcSum <= Lb4 , SellLbCalc4, If(NetWtCalcSum >= Lb4 + 1 and NetWtCalcSum <= Lb5 , SellLbCalc5, "Weight not Found!"))))), If(Extend(Sales Detail::OrderType) = "FOB", PriceLbFOB,If(Extend(Sales Detail::OrderType) = "Warehouse" and PriceLbWhse = 0, SellLbCalc1,PriceLbWhse)))) Thank you, Harry
FMPierce Posted September 23, 2011 Posted September 23, 2011 I believe that you should be using semi-colins instead of commas. Hope it helps.
Christine Sephton Posted September 23, 2011 Posted September 23, 2011 If you are no longer using repeating fields, you no longer need the extend function. Christine
comment Posted September 23, 2011 Posted September 23, 2011 I need it to give me the Lb. Price for each item based upon the entire pounds of the order, Please explain the logic behind the calculation (your formula is incomprehensible, because we don't know what's what).
LaRetta Posted September 24, 2011 Posted September 24, 2011 Well, we are thorough even though we are 11 years slow in our response. :yep:
bcooney Posted September 24, 2011 Posted September 24, 2011 LOL! @FMPierce - your enthusiasm for FM calcs is wonderful, but please pay attention to the date of the original post!
Recommended Posts
This topic is 5149 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now