?
Solved

Early Payment Discounts

Posted on 2013-01-30
2
Medium Priority
?
204 Views
Last Modified: 2013-02-28
I'm looking for some advice on how to store early payment discounts in a database table.

Some customers offer 10 net 30 2% some offer 10 net 21 5%, etc.

I was thinking about creating a discounts table, but structuring it is where I'm lost at.

I have a vendors table which would store the ID of the discount, but exactly how would I structure the discounts table to hold all of these different possibilities?
0
Comment
Question by:t3chguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 79

Expert Comment

by:arnold
ID: 38836337
Presumably your table includes an internal discount field along with a payment field.
You would then determine whether the payment is early and what discount applies to populate the discount column while entering the amount paid into the ament column.
0
 
LVL 79

Accepted Solution

by:
arnold earned 2000 total points
ID: 38836387
Missed the question, you would associate a vendor id with a discountid. Presumably you can not group discounts
I.e. have a shared discounts. The dilemma is which will have more rows, the population of every possible discount option that each vendor will select.
I.e. if you only have a limited set of discount options, you can limit the vendor to selecting one of the discount options.
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating and Managing Databases with phpMyAdmin in cPanel.
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question