Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculation needed...

Featured Replies

If a product costs $1.00 if you buy 1-100, but costs $0.85 if you buy 101-250 and so fourth.... what calculation would I use here.

Any help or advice appreciated!

Thanks,

Mike

Depends on the "so forth". How many pricing breaks could there be? Could the quantities for each product break be different or are they always the same?

  • Author

Someone could orders thousands... and there may be as many as 5 price breaks.

I don't know how your current pricing is structured, Mike. Ideally, you should have a Products table WITHOUT a price field. An attached table (to Products) called Prices would hold multiple price breaks (sometimes many records for one product; sometimes only one record). This allows flexibility for special sales, grouping products, and using RECORDS to hold each specific 'price break' group. Pricing for the fields can use either 'cents' to discount or percentages, and you specify the break points. When quantity is ordered, the correct charge is pulled into your LineItem.

If you hard-code these percentage discounts into a calculation then you will always have to modify it. Might this vary product-to-product, year-to-year, customer-to-customer and so forth? Flexibility is the key to good pricing and that can only be accomplished with a good relational structure. Otherwise, you will be continually adding fields and tweaking your calcs.

"If you hard-code these percentage discounts into a calculation then you will always have to modify it."

Unless the calculation is in a text field that is processed using the Evaluate() function... I've always thought Evaluate would be ideal for situation like this. Gets rid of a whole table.

Case(amt<50;150;amt<101;140;amt<401;130;amt<801;120;amt<1001;110;amt<2000;100;amt<4000;90;amt<10000;70;amt<20000;50;amt>20000;30)

and so forth

Stu

  • 2 weeks later...
  • Author

THANKS!!!!! This is helpful!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.